WatcherCurmoglielKarthal.lua 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. FaceTarget(NPC, Spawn)
  24. PlayFlavor(NPC, "voiceover/english/watcher_curmogliel_kar_thal/qey_village03/watchercurmogliel000.mp3", "", "", 1545523898, 2801793023, Spawn)
  25. if not HasCompletedQuest (Spawn, Rats) and not HasQuest (Spawn, Rats) and GetLevel(Spawn) >=6 then
  26. AddConversationOption(conversation, "Haven't the gods been quiet since The Shattering?", "Gods")
  27. end
  28. if GetQuestStep (Spawn, Rats)==2 then
  29. AddConversationOption(conversation, "I have slain the Bloodsabers. Is that proof enough?", "Finished")
  30. end
  31. AddConversationOption(conversation, "Good to know. Good day to you.")
  32. if not HasCompletedQuest (Spawn, Rats) and not HasQuest (Spawn, Rats) then
  33. AddConversationOption(conversation, "I don't need faith telling me what to do.","NoFaith")
  34. end
  35. StartConversation(conversation, NPC, Spawn, "The Celestial Watch is ever vigilant. Rest will come only after the tyranny of evil can be undone.")
  36. end
  37. function NoFaith(NPC, Spawn)
  38. conversation = CreateConversation()
  39. FaceTarget(NPC, Spawn)
  40. PlayFlavor(NPC, "voiceover/english/watcher_curmogliel_kar_thal/qey_village03/watchercurmogliel004.mp3","","sigh",3442673353,215479191,Spawn)
  41. AddConversationOption(conversation, "Perhaps.")
  42. 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.")
  43. end
  44. function Gods(NPC, Spawn)
  45. conversation = CreateConversation()
  46. FaceTarget(NPC, Spawn)
  47. PlayFlavor(NPC, "voiceover/english/watcher_curmogliel_kar_thal/qey_village03/watchercurmogliel001.mp3","","nod",2796372523,2339729936,Spawn)
  48. AddConversationOption(conversation, "How can I prove my faith?","Prove")
  49. AddConversationOption(conversation, "I don't need faith telling me what to do.","NoFaith")
  50. 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.")
  51. end
  52. function Prove(NPC, Spawn)
  53. conversation = CreateConversation()
  54. FaceTarget(NPC, Spawn)
  55. PlayFlavor(NPC, "voiceover/english/watcher_curmogliel_kar_thal/qey_village03/watchercurmogliel002.mp3","","agree",1937849354,1911529851,Spawn)
  56. AddConversationOption(conversation, "I will prove myself. I will be back.","Prove2")
  57. AddConversationOption(conversation, "I don't need faith telling me what to do.","NoFaith")
  58. 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!")
  59. end
  60. function Prove2(NPC,Spawn)
  61. OfferQuest(NPC,Spawn, Rats)
  62. end
  63. function Finished(NPC, Spawn)
  64. conversation = CreateConversation()
  65. FaceTarget(NPC, Spawn)
  66. PlayFlavor(NPC, "voiceover/english/watcher_curmogliel_kar_thal/qey_village03/watchercurmogliel003.mp3","","thank",2058282306,1196487776,Spawn)
  67. AddConversationOption(conversation, "Thank you.","Finished2")
  68. 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.")
  69. end
  70. function Finished2(NPC,Spawn)
  71. SetStepComplete(Spawn,Rats,2)
  72. end