InquisitorIrizan.lua 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/InquisitorIrizan.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.01.02 08:01:27
  5. Script Purpose :
  6. :
  7. --]]
  8. local DoOrDieSaysIrizian = 5226
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, DoOrDieSaysIrizian)
  11. SetPlayerProximityFunction(NPC, 15, "InRange", "LeaveRange", Spawn)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. if not HasQuest(Spawn, DoOrDieSaysIrizian) and not HasCompletedQuest(Spawn, DoOrDieSaysIrizian) then
  16. local conversation = CreateConversation()
  17. AddConversationOption(conversation, "But I'm not nervous.", "Option1")
  18. AddConversationOption(conversation, "I'll be on my way.")
  19. StartConversation(conversation, NPC, Spawn, "I don't believe we've met. I am the Overlord's chief inquisitor. Oh, don't be nervous--that is, unless you have something to be nervous about. ")
  20. PlayFlavor(NPC, "voiceover/english/inquisitor_irizan/commonlands/quests/inquisitor_irizan/inquisitor_irizan001.mp3", "", "", 112205821, 1768556125, Spawn)
  21. elseif GetQuestStep(Spawn, DoOrDieSaysIrizian) == 1 or GetQuestStep(Spawn, DoOrDieSaysIrizian) == 2 or GetQuestStep(Spawn, DoOrDieSaysIrizian) == 3 or GetQuestStep(Spawn, DoOrDieSaysIrizian) == 4 then
  22. QuestProgress(NPC, Spawn)
  23. elseif GetQuestStep(Spawn, DoOrDieSaysIrizian) == 5 then
  24. Option3(NPC, Spawn)
  25. elseif HasCompletedQuest(Spawn, DoOrDieSaysIrizian) then
  26. PlayAnimation(NPC, 11649)
  27. end
  28. end
  29. function Option1(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. local conversation = CreateConversation()
  32. AddConversationOption(conversation, "What's going on here? What do you want?", "Option2")
  33. StartConversation(conversation, NPC, Spawn, "Sure you're not and everyone in Freeport is a perfect angel, downright model citizens they are. I have ways of finding out what I want. Whether it's fact or fiction, that's what I get paid to decide.")
  34. PlayFlavor(NPC, "voiceover/english/inquisitor_irizan/commonlands/quests/inquisitor_irizan/inquisitor_irizan002.mp3", "", "", 2721115178, 3847523392, Spawn)
  35. end
  36. function Option2(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. local conversation = CreateConversation()
  39. AddConversationOption(conversation, "Yeah, I understand. What is it you want me to do?", "offer")
  40. StartConversation(conversation, NPC, Spawn, "Yes! Indeed. What do I want? You're a quick one. You'll serve me well, and if you don't I'll mark you as traitor to Freeport and our Overlord. Is that understood?")
  41. PlayFlavor(NPC, "voiceover/english/inquisitor_irizan/commonlands/quests/inquisitor_irizan/inquisitor_irizan003.mp3", "", "", 1083516611, 4267948589, Spawn)
  42. end
  43. function Option3(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. local conversation = CreateConversation()
  46. AddConversationOption(conversation, "Just this ledger from Edmond.", "Option4")
  47. StartConversation(conversation, NPC, Spawn, "Well, well, well, look who we have here. I take it you have something for me?")
  48. PlayFlavor(NPC, "voiceover/english/inquisitor_irizan/commonlands/quests/inquisitor_irizan/inquisitor_irizan006.mp3", "", "", 2430022477, 361265912, Spawn)
  49. end
  50. function Option4(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. local conversation = CreateConversation()
  53. AddConversationOption(conversation, "What? That's it?", "Option5")
  54. StartConversation(conversation, NPC, Spawn, "Fine, just fine, consider your assignment complete. You served Freeport well.")
  55. PlayFlavor(NPC, "voiceover/english/inquisitor_irizan/commonlands/quests/inquisitor_irizan/inquisitor_irizan007.mp3", "", "", 2613359347, 1903605908, Spawn)
  56. end
  57. function Option5(NPC, Spawn)
  58. SetStepComplete(Spawn, DoOrDieSaysIrizian, 5)
  59. FaceTarget(NPC, Spawn)
  60. local conversation = CreateConversation()
  61. AddConversationOption(conversation, "Yeah, I don't like the sound of that.")
  62. StartConversation(conversation, NPC, Spawn, "Here, I confiscated these items from a traitor. This should more than suffice as payment for services rendered. You've done well. We shall continue to keep an eye on you.")
  63. PlayFlavor(NPC, "voiceover/english/inquisitor_irizan/commonlands/quests/inquisitor_irizan/inquisitor_irizan008.mp3", "", "", 3813370346, 1005179913, Spawn)
  64. end
  65. function QuestProgress(NPC, Spawn)
  66. FaceTarget(NPC, Spawn)
  67. local conversation = CreateConversation()
  68. AddConversationOption(conversation, "Yes Inquisitor.")
  69. StartConversation(conversation, NPC, Spawn, "If you wish to incur the wrath of Freeport's might, by all means, don't do what you're told. Complete these demands or bear the consequences.")
  70. PlayFlavor(NPC, "voiceover/english/inquisitor_irizan/commonlands/quests/inquisitor_irizan/inquisitor_irizan005.mp3", "", "", 972708175, 505118953, Spawn)
  71. end
  72. function offer(NPC, Spawn)
  73. OfferQuest(NPC, Spawn, DoOrDieSaysIrizian)
  74. end
  75. function respawn(NPC)
  76. spawn(NPC)
  77. end
  78. function InRange(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. if not HasCompletedQuest(Spawn, DoOrDieSaysIrizian) then
  81. PlayFlavor(NPC, "voiceover/english/inquisitor_irizan/commonlands/guard/025_inquisitor_irizan_callout_c2c3956c.mp3", "Stop! Get over here, now!", "", 15134358, 3354118545, Spawn)
  82. end
  83. end
  84. function LeaveRange(NPC, Spawn)
  85. end