BinnyShortwand.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/BinnyShortwand.lua
  3. Script Purpose : illusionist trainer in Halas
  4. Script Author : theFoof
  5. Script Date : 2013.9.24
  6. Script Notes :
  7. --]]
  8. local ILLUSIONIST = 26
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. if GetClass(Spawn) == ILLUSIONIST then
  17. conversation = CreateConversation()
  18. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  19. AddConversationOption(conversation, "Do you have any advice for a fellow illusionist?", "IlluChat1")
  20. AddConversationOption(conversation, "That's good to know. Good day.")
  21. StartConversation(conversation, NPC, Spawn, "I see you have chosen the path of an illusionist. It may be challenging, but I find it rather rewarding.")
  22. else
  23. PlayFlavor(NPC, "", "Don't let your illusions be shattered!", "hello", 0, 0, Spawn)
  24. end
  25. end
  26. function IlluChat1(NPC, Spawn)
  27. conversation = CreateConversation()
  28. FaceTarget(NPC, Spawn)
  29. AddConversationOption(conversation, "That's useful to know!", "IlluChat2")
  30. StartConversation(conversation, NPC, Spawn, "If you find items that add to your intelligence or stamina, then take them! Intelligence affects your spell focus and increases the damage your spells can cause. Your stamina affects your health. This is crucial.")
  31. end
  32. function IlluChat2(NPC, Spawn)
  33. conversation = CreateConversation()
  34. FaceTarget(NPC, Spawn)
  35. AddConversationOption(conversation, "That's interesting.", "IlluChat3")
  36. StartConversation(conversation, NPC, Spawn, "Know your strengths and hone them! We can mesmerize and otherwise captivate our foes through distraction and mental acuity. This is particularly useful when you are confronted with multiple foes.")
  37. end
  38. function IlluChat3(NPC, Spawn)
  39. conversation = CreateConversation()
  40. FaceTarget(NPC, Spawn)
  41. AddConversationOption(conversation, "Thank you for the advice.")
  42. StartConversation(conversation, NPC, Spawn, "A strong illusionist can bring order to an otherwise chatoic environment, giving themselves and their allies the ability to fight one adversary at a time. And the most advanced have been known to conjure an illusion of themselves to aid in combat!")
  43. end