OlioSaphatho.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/OlioSaphatho.lua
  3. Script Purpose : coercer trainer
  4. Script Author : theFoof
  5. Script Date : 2013.9.24
  6. Script Notes :
  7. --]]
  8. local COERCER = 27
  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) == COERCER then
  17. conversation = CreateConversation()
  18. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  19. AddConversationOption(conversation, "Do you have any advice for a fellow coercer?", "CoecChat1")
  20. AddConversationOption(conversation, "It certainly is! Good day.")
  21. StartConversation(conversation, NPC, Spawn, "I see you have chosen the path of a coercer. It is a challenging path, for sure.")
  22. else
  23. PlayFlavor(NPC, "", "Bending the will of your opponent means lending their strength to your own.", "hello", 0, 0, Spawn)
  24. end
  25. end
  26. function CoecChat1(NPC, Spawn)
  27. conversation = CreateConversation()
  28. FaceTarget(NPC, Spawn)
  29. AddConversationOption(conversation, "That's useful to know!", "CoecChat2")
  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 CoecChat2(NPC, Spawn)
  33. conversation = CreateConversation()
  34. FaceTarget(NPC, Spawn)
  35. AddConversationOption(conversation, "That's interesting.", "CoecChat3")
  36. StartConversation(conversation, NPC, Spawn, "Do not underestimate your ability to dominate the minds of your foes, charming them to carry out your will. There is no need to conjure a pet, when you can force the enemy to fight amongst themselves!")
  37. end
  38. function CoecChat3(NPC, Spawn)
  39. conversation = CreateConversation()
  40. FaceTarget(NPC, Spawn)
  41. AddConversationOption(conversation, "Thank you for the advice.")
  42. StartConversation(conversation, NPC, Spawn, "But do not rely solely on your charmed slaves. You must also hone your offensive and defensive spells! You can inflict magical and mental damage upon your targets through spells, while defending yourself by mesmerizing or stunning them.")
  43. end