PriestIanTurner.lua 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/PriestIanTurner.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.05.16 05:05:10
  5. Script Purpose :
  6. :
  7. --]]
  8. local ForgottenShroud = 528
  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. conversation = CreateConversation()
  17. if HasQuest(Spawn, ForgottenShroud) and GetQuestStep(Spawn, ForgottenShroud) == 1 then
  18. PlayFlavor(NPC, "voiceover/english/priest_ian_turner/qey_north/priestianturner000.mp3", "", "", 3050768414, 1599241603, Spawn)
  19. AddConversationOption(conversation, "I've recovered a shroud from the catacombs, can you help me?", "speak")
  20. StartConversation(conversation, NPC, Spawn, "Raise not your hand in judgment of others, for one day they may be your salvation.")
  21. else
  22. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", "Raise not your hand in judgment of others, for one day they may be your salvation.", "hail", 0, 0, Spawn)
  23. end
  24. function speak(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. conversation = CreateConversation()
  27. PlayFlavor(NPC, "voiceover/english/priest_ian_turner/qey_north/priestianturner003.mp3", "", "", 155358629, 2115296012, Spawn)
  28. AddConversationOption(conversation, "Sir, I found it on one of the denizens of the catacombs. I wanted to know where to return it to.", "apologize")
  29. StartConversation(conversation, NPC, Spawn, "You disturbed a burial chamber? What right do you have to commit such an atrocity? How could you violate someone in death? Speak, before I truly lose my temper!")
  30. end
  31. function apologize(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. conversation = CreateConversation()
  34. PlayFlavor(NPC, "voiceover/english/priest_ian_turner/qey_north/priestianturner004.mp3", "", "", 1886276171, 266052076, Spawn)
  35. AddConversationOption(conversation, "Thank you, I wouldn't ever disturb a crypt.", "takeshroudback")
  36. StartConversation(conversation, NPC, Spawn, "You disturbed a burial chamber? What right do you have to commit such an atrocity? How could you violate someone in death? Speak, before I truly lose my temper!")
  37. end
  38. function takeshroudback(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. PlayFlavor(NPC, "voiceover/english/priest_ian_turner/qey_north/priestianturner005.mp3", "", "", 2152101643, 1181741366, Spawn)
  42. AddConversationOption(conversation, "How will I know which body this should be placed over?", "LordMrallon")
  43. StartConversation(conversation, NPC, Spawn, "This doesn't look like a used burial shroud. It's far too clean. Unless ... no, the undead cannot venture there ... can they? Quickly, take this shroud back to the catacombs, and return it to the position above the tomb whence it came. Take this box with you, and it will open when you replace the shroud.")
  44. end
  45. function LordMrallon(NPC, Spawn)
  46. SetStepComplete(Spawn, ForgottenShroud, 1)
  47. FaceTarget(NPC, Spawn)
  48. conversation = CreateConversation()
  49. PlayFlavor(NPC, "voiceover/english/priest_ian_turner/qey_north/priestianturner006.mp3", "", "", 1072418166, 1690433050, Spawn)
  50. AddConversationOption(conversation, "I will do so.")
  51. StartConversation(conversation, NPC, Spawn, "The site you seek is the tomb of Lord Mrallon. Many times he valiantly proved his worth to the city of Qeynos. You will search for the knight with the green armor and place this shroud over the likeness of his body.")
  52. end
  53. end