9
3

OrnIceheart.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/OrnIceheart.lua
  3. Script Purpose : warlock trainer in Halas
  4. Script Author : theFoof
  5. Script Date : 2013.9.24
  6. Script Notes :
  7. --]]
  8. local WARLOCK = 24
  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) == WARLOCK then
  17. conversation = CreateConversation()
  18. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  19. AddConversationOption(conversation, "Do you have any advice for a fellow warlock then?", "LockChat1")
  20. AddConversationOption(conversation, "Well, you should. Good bye.")
  21. StartConversation(conversation, NPC, Spawn, "My, my! Another warlock within our midst. Do not worry; I do not consider you a threat.")
  22. else
  23. PlayFlavor(NPC, "", "Well met!", "hello", 0, 0, Spawn)
  24. end
  25. end
  26. function LockChat1(NPC, Spawn)
  27. conversation = CreateConversation()
  28. FaceTarget(NPC, Spawn)
  29. AddConversationOption(conversation, "That's useful to know!", "LockChat2")
  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 LockChat2(NPC, Spawn)
  33. conversation = CreateConversation()
  34. FaceTarget(NPC, Spawn)
  35. AddConversationOption(conversation, "That's interesting.", "LockChat3")
  36. StartConversation(conversation, NPC, Spawn, "We are masters of death and decay, inflicting poison and disease upon those that dare to challenge us, particularly on groups of opponents.")
  37. end
  38. function LockChat3(NPC, Spawn)
  39. conversation = CreateConversation()
  40. FaceTarget(NPC, Spawn)
  41. AddConversationOption(conversation, "Thank you for the advice.")
  42. StartConversation(conversation, NPC, Spawn, "There are other adventuring classes that must rely on strong defenses to survive, but we focus on the offense. No need to defend yourself from a foe who is writhing in pain, plagued with disease!")
  43. end