9
3

JarokFrostpetal.lua 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. --[[
  2. Script Name : SpawnScripts/everfrost_frostfell_new01/JarokFrostpetal.lua
  3. Script Purpose : Jarok Frostpetal
  4. Script Author : vo1d
  5. Script Date : 2019.10.29
  6. Script Notes :
  7. --]]
  8. local ADeepiceMystery = 486
  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 HasCompletedQuest(Spawn, ADeepiceMystery) then
  17. elseif HasQuest(Spawn, ADeepiceMystery) then
  18. if GetQuestStep(Spawn, ADeepiceMystery) == 19 then
  19. DeepiceMysteryChat1(NPC, Spawn)
  20. end
  21. else
  22. Greetings(NPC, Spawn)
  23. end
  24. end
  25. function OutRange(NPC, Spawn)
  26. end
  27. function Greetings(NPC, Spawn)
  28. end
  29. function DeepiceMysteryChat1(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. Conversation = CreateConversation()
  32. AddConversationOption(Conversation, "What are you talking about? Who won't answer you?", "DeepiceMysteryChat2")
  33. StartConversation(Conversation, NPC, Spawn, "That does it. She will never answer my prayers now!")
  34. end
  35. function DeepiceMysteryChat2(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. Conversation = CreateConversation()
  38. AddConversationOption(Conversation, "Was this to glorify E'ci? You were freezing other people.", "DeepiceMysteryChat3")
  39. StartConversation(Conversation, NPC, Spawn, "The Icy Guardian. She has manifested upon Norrath a few times since the return of the gods, but her absence is still felt. How do you not see what I am doing here?")
  40. end
  41. function DeepiceMysteryChat3(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. Conversation = CreateConversation()
  44. AddConversationOption(Conversation, "You thought this could have brought about her return?", "DeepiceMysteryChat4")
  45. StartConversation(Conversation, NPC, Spawn, "We are all her worshipers. All of us within this Wonderland Village carry her trinkets, and are blessed by her touch upon this world! They would have gladly given themselves if it meant her lasting return")
  46. end
  47. function DeepiceMysteryChat4(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. Conversation = CreateConversation()
  50. AddConversationOption(Conversation, "As well intended as that is, I must insist that you stop. What you've done here is beautiful. It is an icy wonderland, worthy of her name. If she wishes to return, she will.", "DeepiceMysteryChat5")
  51. StartConversation(Conversation, NPC, Spawn, "I was hoping a grand sacrifice, and a beautiful temple, all in her name, would gain her attention, and give her a proper place on Norrath to reside.")
  52. end
  53. function DeepiceMysteryChat5(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. Conversation = CreateConversation()
  56. AddConversationOption(Conversation, "Exactly!", "DeepiceMysteryComplete")
  57. StartConversation(Conversation, NPC, Spawn, "And this place will remain a sanctuary for those that wish to be close to her magic.")
  58. end
  59. function DeepiceMysteryComplete(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. Conversation = CreateConversation()
  62. if GetQuestStep(Spawn, ADeepiceMystery) == 19 then
  63. SetStepComplete(Spawn, ADeepiceMystery, 19)
  64. end
  65. AddConversationOption(Conversation, "You're welcome.")
  66. StartConversation(Conversation, NPC, Spawn, "I can live with that, " .. GetName(Spawn).. ". I just had wanted to do more. Thank you.")
  67. end