CoercerZlith.lua 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. --[[
  2. Script Name : SpawnScripts/OutpostoftheOverlord/CoercerZlith.lua
  3. Script Purpose : Coercer Zlith
  4. Script Author : vo1d
  5. Script Date : 2019.10.04
  6. Script Notes :
  7. Modiefied by : premierio015
  8. Modiefeid Notes : Added missing VoiceOvers
  9. --]]
  10. -- Quest ID's
  11. local DisruptionForDistraction = 366
  12. function spawn(NPC)
  13. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function InRange(NPC, Spawn)
  19. end
  20. function LeaveRange(NPC, Spawn)
  21. end
  22. function hailed(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. Conversation = CreateConversation()
  25. if HasCompletedQuest(Spawn, DisruptionForDistraction) then
  26. FaceTarget(NPC, Spawn)
  27. Conversation = CreateConversation()
  28. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/coercer_zlith/tutorial_island02_evil_revamp/quests/citizenship/coercerzlith/coercerzlith008.mp3", "", "", 795927174, 1020947089, Spawn)
  29. AddConversationOption(Conversation, "Goodbye.")
  30. StartConversation(Conversation, NPC, Spawn, "You've done well, " .. GetName(Spawn).. ". The horse sentriesss were spotted moving into the Wilderwood from the north. The Qeynosian forces are thinning.")
  31. elseif HasQuest(Spawn, DisruptionForDistraction) then
  32. if GetQuestStep(Spawn, DisruptionForDistraction) == 1 then
  33. FaceTarget(NPC, Spawn)
  34. Conversation = CreateConversation()
  35. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/coercer_zlith/tutorial_island02_evil_revamp/quests/citizenship/coercerzlith/coercerzlith001.mp3", "", "", 1264555446, 807045303,Spawn)
  36. AddConversationOption(Conversation, "And you want me to...?", "dlg_2")
  37. AddConversationOption(Conversation, "Not right now.")
  38. StartConversation(Conversation, NPC, Spawn, "Sssso ".. GetName(Spawn)..", ready for a little sabotage? The mine is inside the Wilderwood in the far eastern corner.")
  39. elseif GetQuestStep(Spawn, DisruptionForDistraction) == 2 or GetQuestStep(Spawn, DisruptionForDistraction) == 3 then
  40. FaceTarget(NPC, Spawn)
  41. Conversation = CreateConversation()
  42. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/coercer_zlith/tutorial_island02_evil_revamp/quests/citizenship/coercerzlith/coercerzlith003.mp3", "", "", 3347143195, 3837286784, Spawn)
  43. AddConversationOption(Conversation, "Okay, I'll be back.")
  44. StartConversation(Conversation, NPC, Spawn, "The mine is north up the ssslope into the Wilderwood and then eassst. This should definitely cause the disstraction we need for our final attack.")
  45. elseif GetQuestStep(Spawn, DisruptionForDistraction) == 4 then
  46. FaceTarget(NPC, Spawn)
  47. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/coercer_zlith/tutorial_island02_evil_revamp/quests/citizenship/coercerzlith/coercerzlith004.mp3", "", "agree", 2084380659, 1533880588, Spawn)
  48. Conversation = CreateConversation()
  49. AddConversationOption(Conversation, "Yes, those horse sentries have been a thorn in my side.", "dlg_3")
  50. AddConversationOption(Conversation, "Not now.")
  51. StartConversation(Conversation, NPC, Spawn, "Nice work! As you probably noticed, there are additional Tunarian horse sentriesss being sssent into the Wilderwood to check on the mine. We need another distraction to thin out the Qeynosian forces even more. It's time to deal with those meddling sentriesss once and for all.")
  52. elseif GetQuestStep(Spawn, DisruptionForDistraction) == 5 then
  53. FaceTarget(NPC, Spawn)
  54. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/coercer_zlith/tutorial_island02_evil_revamp/quests/citizenship/coercerzlith/coercerzlith003.mp3", "", "", 3347143195, 3837286784, Spawn)
  55. Conversation = CreateConversation()
  56. AddConversationOption(Conversation, "Okay, I'll keep looking.")
  57. StartConversation(Conversation, NPC, Spawn, "The Tunarian horse sentriesss should be patrolling around the Wilderwood to the north. Return to me when you have dealt with them.")
  58. elseif GetQuestStep(Spawn, DisruptionForDistraction) == 6 then
  59. SetStepComplete(Spawn, DisruptionForDistraction, 6)
  60. FaceTarget(NPC, Spawn)
  61. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/coercer_zlith/tutorial_island02_evil_revamp/quests/citizenship/coercerzlith/coercerzlith007.mp3", "", "nod", 4066514211, 2331535845, Spawn)
  62. Conversation = CreateConversation()
  63. AddConversationOption(Conversation, "I won't.")
  64. StartConversation(Conversation, NPC, Spawn, "You have done enough, " .. GetName(Spawn).. ". Tunarian reinforcementsss are on their way to the Wilderwood. Our time for attack is now! Tayil will be glad to hear of your work. Speaking of Tayil, take these sssealed orders. She sssent them for you, and if I were you I would not ignore them.")
  65. end
  66. end
  67. if not CanReceiveQuest(Spawn, DisruptionForDistraction) and not HasQuest(Spawn, DisruptionForDistraction) then
  68. NotReady(NPC, Spawn)
  69. end
  70. end
  71. function dlg_2(NPC, Spawn)
  72. SetStepComplete(Spawn, DisruptionForDistraction, 1)
  73. FaceTarget(NPC, Spawn)
  74. Conversation = CreateConversation()
  75. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/coercer_zlith/tutorial_island02_evil_revamp/quests/citizenship/coercerzlith/coercerzlith002.mp3", "", "", 3880132810, 2976839399, Spawn)
  76. AddConversationOption(Conversation, "Consider it done!")
  77. StartConversation(Conversation, NPC, Spawn, "Head in there and sstir up the hornet's nest. Take out sssome of their miners, and while you're at it, grab some of the loose ore around the mine. Tayil wants to know what it is that they're mining.")
  78. end
  79. function dlg_3(NPC, Spawn)
  80. SetStepComplete(Spawn, DisruptionForDistraction, 4)
  81. FaceTarget(NPC, Spawn)
  82. Conversation = CreateConversation()
  83. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/coercer_zlith/tutorial_island02_evil_revamp/quests/citizenship/coercerzlith/coercerzlith005.mp3", "", "point", 1181638962, 936080191, Spawn)
  84. AddConversationOption(Conversation, "Very well, I'm heading back in.")
  85. StartConversation(Conversation, NPC, Spawn, "Head back into the Wilderwood and take out sssome of these horse sentries. The more you slay, the more Qeynosians will be sent to investigate, which will provide our chance to attack. Return to me when the deed is done. By the way, I'll take those ore samples and make ssssure they find their way to Tayil.")
  86. end
  87. function NotReady(NPC, Spawn)
  88. FaceTarget(NPC, Spawn)
  89. Conversation = CreateConversation()
  90. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/coercer_zlith/tutorial_island02_evil_revamp/quests/citizenship/coercerzlith/coercerzlith009.mp3", "", "no", 2204153066, 1989322276, Spawn)
  91. AddConversationOption(Conversation, "Very well.", "dlg_3_1")
  92. StartConversation(Conversation, NPC, Spawn, "You are not yet ready to take on the tasks I will offer you. Return to Tayil N'Velex outside Sythor's Spire if you are unsure how to prepare yourself.")
  93. end