WatcherCurmoglielKarthal.lua 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. --[[
  2. Script Name : SpawnScripts/Graystone/WatcherCurmoglielKarthal.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.03.09
  5. Script Purpose :
  6. :
  7. --]]
  8. local Rats = 5503
  9. function spawn(NPC)
  10. ProvidesQuest(NPC,Rats)
  11. SetPlayerProximityFunction(NPC, 8, "InRange", "LeaveRange")
  12. end
  13. function InRange(NPC, Spawn)
  14. if math.random(1, 100) <= 70 then
  15. if not HasCompletedQuest (Spawn, Rats) and not HasQuest (Spawn, Rats) and GetLevel(Spawn) >=6 then
  16. FaceTarget(NPC, Spawn)
  17. PlayFlavor(NPC, "voiceover/english/watcher_curmogliel_kar_thal/qey_village03/100_customer_highelf_watcher_karthal_callout_b1652e76.mp3", "Step forward citizen! Prove your faith to the Celestial Watch.", "nod", 131916429, 83798577, Spawn)
  18. end
  19. end
  20. end
  21. function hailed(NPC, Spawn)
  22. conversation = CreateConversation()
  23. SetTarget(NPC,Spawn)
  24. FaceTarget(NPC, Spawn)
  25. AddTimer(NPC,30000,"RemoveTarget",1,Spawn)
  26. PlayFlavor(NPC, "voiceover/english/watcher_curmogliel_kar_thal/qey_village03/watchercurmogliel000.mp3", "", "", 1545523898, 2801793023, Spawn)
  27. if not HasCompletedQuest (Spawn, Rats) and not HasQuest (Spawn, Rats) and GetLevel(Spawn) >=6 then
  28. AddConversationOption(conversation, "Haven't the gods been quiet since The Shattering?", "Gods")
  29. end
  30. if GetQuestStep (Spawn, Rats)==2 then
  31. AddConversationOption(conversation, "I have slain the Bloodsabers. Is that proof enough?", "Finished")
  32. end
  33. AddConversationOption(conversation, "Good to know. Good day to you.")
  34. if not HasCompletedQuest (Spawn, Rats) and not HasQuest (Spawn, Rats) then
  35. AddConversationOption(conversation, "I don't need faith telling me what to do.","NoFaith")
  36. end
  37. StartConversation(conversation, NPC, Spawn, "The Celestial Watch is ever vigilant. Rest will come only after the tyranny of evil can be undone.")
  38. end
  39. function RemoveTarget(NPC,Spawn)
  40. if GetTarget(NPC)==Spawn then
  41. SetTarget(NPC,nil)
  42. end
  43. end
  44. function NoFaith(NPC, Spawn)
  45. conversation = CreateConversation()
  46. FaceTarget(NPC, Spawn)
  47. PlayFlavor(NPC, "voiceover/english/watcher_curmogliel_kar_thal/qey_village03/watchercurmogliel004.mp3","","sigh",3442673353,215479191,Spawn)
  48. AddConversationOption(conversation, "Perhaps.")
  49. StartConversation(conversation, NPC, Spawn, "Faith is all that can save us. I am sorry you cannot see this. This fight is not yours. But someday, you shall find your way.")
  50. end
  51. function Gods(NPC, Spawn)
  52. conversation = CreateConversation()
  53. FaceTarget(NPC, Spawn)
  54. PlayFlavor(NPC, "voiceover/english/watcher_curmogliel_kar_thal/qey_village03/watchercurmogliel001.mp3","","nod",2796372523,2339729936,Spawn)
  55. AddConversationOption(conversation, "How can I prove my faith?","Prove")
  56. AddConversationOption(conversation, "I don't need faith telling me what to do.","NoFaith")
  57. StartConversation(conversation, NPC, Spawn, "The Celestial Watch is the bearer of faith in this near faithless world. The powers that be have been silenced for ages, and far too many have lost faith. Now is the time for all to prove their faith.")
  58. end
  59. function Prove(NPC, Spawn)
  60. conversation = CreateConversation()
  61. FaceTarget(NPC, Spawn)
  62. PlayFlavor(NPC, "voiceover/english/watcher_curmogliel_kar_thal/qey_village03/watchercurmogliel002.mp3","","agree",1937849354,1911529851,Spawn)
  63. AddConversationOption(conversation, "I will prove myself. I will be back.","Prove2")
  64. AddConversationOption(conversation, "I don't need faith telling me what to do.","NoFaith")
  65. StartConversation(conversation, NPC, Spawn, "Then seek out the catacombs! You must slay the Bloodsabers in the caverns. May your faith in the righteous bring you victory, or welcome you in the afterlife. The gods are watching!")
  66. end
  67. function Prove2(NPC,Spawn)
  68. OfferQuest(NPC,Spawn, Rats)
  69. end
  70. function Finished(NPC, Spawn)
  71. conversation = CreateConversation()
  72. FaceTarget(NPC, Spawn)
  73. PlayFlavor(NPC, "voiceover/english/watcher_curmogliel_kar_thal/qey_village03/watchercurmogliel003.mp3","","thank",2058282306,1196487776,Spawn)
  74. AddConversationOption(conversation, "Thank you.","Finished2")
  75. StartConversation(conversation, NPC, Spawn, "You've done well. The Celestial Watch salutes you! Take this reward for our gratitude. Use it wisely so that you may aid those in need. You'll be in our prayers. Should your adventures take you to the Temple of Light in Qeynos, please visit us fair traveler. Farewell.")
  76. end
  77. function Finished2(NPC,Spawn)
  78. SetStepComplete(Spawn,Rats,2)
  79. end