PredatorShadur.lua 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/PredatorShadur.lua
  3. Script Purpose : Predator Sha'dur
  4. Script Author : John Adams
  5. Script Date : 2008.09.20
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. Modified Date : 2020.04.04
  8. Modified by : premierio015
  9. Notes : Added Animations
  10. --]]
  11. local IntoTheTaintedForest = 162
  12. function spawn(NPC)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. conversation = CreateConversation()
  20. if HasQuest(Spawn, IntoTheTaintedForest) then
  21. if GetQuestStep(Spawn, IntoTheTaintedForest) == 1 then
  22. -- on step 1
  23. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/predator_sha_dur/tutorial_island02_revamp/quests/citizenship/predatorshadur/predatorshadur001.mp3", "", "frustrated", 974461124, 1688750829, Spawn)
  24. AddConversationOption(conversation, "Easy there, all is not lost. I can help.", "AllNotLost")
  25. AddConversationOption(conversation, "Then I'll just come back later.")
  26. StartConversation(conversation, NPC, Spawn, "Wraaa! The day is grim. Has this world lost all of its goodness and left us with this cold husk? I suppose you were sent by Murrar, but my job has been halted.")
  27. -- elseif GetQuestStep(Spawn, IntoTheTaintedForest) == 2 or GetQuestStep(Spawn, 9) == 4 then
  28. elseif GetQuestStep(Spawn, IntoTheTaintedForest) == 2 then
  29. -- on step 2
  30. AddConversationOption(conversation, "I'm still looking.")
  31. PlayAnimation(NPC, 11628)
  32. StartConversation(conversation, NPC, Spawn, "Wraaa! Don't worry, I didn't expect to get my bow and arrows back anyway.")
  33. elseif GetQuestStep(Spawn, IntoTheTaintedForest) == 3 then
  34. -- on step 3
  35. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/predator_sha_dur/tutorial_island02_revamp/quests/citizenship/predatorshadur/predatorshadur005.mp3", "", "", 2074453663, 3037764595, Spawn)
  36. AddConversationOption(conversation, "There were no arrows to be found.", "NoArrowsFound")
  37. StartConversation(conversation, NPC, Spawn, "Wra... my bow! You did this for me? Maybe this day is not so bad. Maybe you found my arrows too?")
  38. elseif GetQuestStep(Spawn, IntoTheTaintedForest) == 4 then
  39. -- on step 4
  40. AddConversationOption(conversation, "I'm still looking.")
  41. PlayAnimation(NPC, 11628)
  42. StartConversation(conversation, NPC, Spawn, "Wraaa! Don't worry, I didn't expect to get my bow and arrows back anyway.")
  43. elseif GetQuestStep(Spawn, IntoTheTaintedForest) == 5 then
  44. Step5Complete(NPC, Spawn)
  45. else
  46. GivenHope(NPC, Spawn)
  47. end
  48. elseif HasCompletedQuest(Spawn, IntoTheTaintedForest) then
  49. GivenHope(NPC, Spawn)
  50. else
  51. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/predator_sha_dur/tutorial_island02_revamp/quest/citizenship_predator_shadur_notonquest_ace49adb.mp3", "I like your look. I think you may be able to help me. Speak with Murrar Shar, back in the Queen's Colony, if you're interested.", "", 3528725023, 1136267894, Spawn)
  52. end
  53. end
  54. function AllNotLost(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. conversation = CreateConversation()
  57. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/predator_sha_dur/tutorial_island02_revamp/quests/citizenship/predatorshadur/predatorshadur002.mp3", "", "sigh", 1717533921, 3624025078, Spawn)
  58. AddConversationOption(conversation, "Maybe I can find your bow and arrows?", "FindBowAndArrows")
  59. AddConversationOption(conversation, "I'd rather stay out of this.")
  60. StartConversation(conversation, NPC, Spawn, "Help was a word I didn't expect to hear, but I'm most likely beyond helping. See, I was sent here to collect samples from the wildlife that has become tainted, but on my hunt I was ambushed by the nearby goblins. My bow and arrows were lost in the scuffle.")
  61. end
  62. function FindBowAndArrows(NPC, Spawn)
  63. SetStepComplete(Spawn, IntoTheTaintedForest, 1)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/predator_sha_dur/tutorial_island02_revamp/quests/citizenship/predatorshadur/predatorshadur003.mp3", "", "", 3011492014, 1113535899, Spawn)
  67. AddConversationOption(conversation, "Don't worry, I'll find it.")
  68. StartConversation(conversation, NPC, Spawn, "I'm sure my bow is in the hands of those tainted Sapswill tappers that ambushed me. You might try, but I don't except much.")
  69. end
  70. function NoArrowsFound(NPC, Spawn)
  71. SetStepComplete(Spawn, IntoTheTaintedForest, 3)
  72. FaceTarget(NPC, Spawn)
  73. conversation = CreateConversation()
  74. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/predator_sha_dur/tutorial_island02_revamp/quests/citizenship/predatorshadur/predatorshadur006.mp3", "", "frustrated", 2110516952, 1980416532, Spawn)
  75. AddConversationOption(conversation, "Be at ease, friend. I can get the sticks.")
  76. StartConversation(conversation, NPC, Spawn, "Well there goes the day again! What's a bow without arrows? The only good sticks I've found to make arrow shafts are by that spider den! Brrrr!")
  77. end
  78. function Step5Complete(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. conversation = CreateConversation()
  81. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/predator_sha_dur/tutorial_island02_revamp/quests/citizenship/predatorshadur/predatorshadur007.mp3", "", "", 1042822953, 3405333200, Spawn)
  82. AddConversationOption(conversation, "That's the spirit!", "dlg_16_1")
  83. StartConversation(conversation, NPC, Spawn, "You'd do this for me again? I can fletch these sticks into perfect arrows. You, my friend, have turned my eyes. It's a great day. I know we can beat this menace!")
  84. end
  85. function dlg_16_1(NPC, Spawn)
  86. FaceTarget(NPC, Spawn)
  87. conversation = CreateConversation()
  88. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/predator_sha_dur/tutorial_island02_revamp/quests/citizenship/predatorshadur/predatorshadur008.mp3", "", "ponder", 985337170, 2895526537, Spawn)
  89. AddConversationOption(conversation, "You've already got some samples? But...", "dlg_16_2")
  90. StartConversation(conversation, NPC, Spawn, "You know, come to think of it. I did get a few small samples before I lost my bow. Why don't you take them back to Murrar to see if they'll do.")
  91. end
  92. function dlg_16_2(NPC, Spawn)
  93. SetStepComplete(Spawn, IntoTheTaintedForest, 5)
  94. FaceTarget(NPC, Spawn)
  95. conversation = CreateConversation()
  96. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/predator_sha_dur/tutorial_island02_revamp/quests/citizenship/predatorshadur/predatorshadur009.mp3", "", "no", 2433535127, 45385354, Spawn)
  97. AddConversationOption(conversation, "Great! I know Murrar's waiting for these.", "dlg_16_3")
  98. StartConversation(conversation, NPC, Spawn, "No really, go ahead! With your help finding my gear, you've shown that there is light in this dim hour. We will live to fight another day.")
  99. end
  100. function GivenHope(NPC, Spawn)
  101. FaceTarget(NPC, Spawn)
  102. conversation = CreateConversation()
  103. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/predator_sha_dur/tutorial_island02_revamp/quests/citizenship/predatorshadur/predatorshadur010.mp3", "", "", 140512901, 3193378379, Spawn)
  104. AddConversationOption(conversation, "Good luck.")
  105. StartConversation(conversation, NPC, Spawn, "My arrows are almost ready! You've given me hope friend.")
  106. end