PredatorShadur.lua 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. -- on step 2
  29. AddConversationOption(conversation, "I'm still looking.")
  30. PlayAnimation(NPC, 11628)
  31. StartConversation(conversation, NPC, Spawn, "Wraaa! Don't worry, I didn't expect to get my bow and arrows back anyway.")
  32. elseif GetQuestStep(Spawn, IntoTheTaintedForest) == 3 then
  33. -- on step 3
  34. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/predator_sha_dur/tutorial_island02_revamp/quests/citizenship/predatorshadur/predatorshadur005.mp3", "", "", 2074453663, 3037764595, Spawn)
  35. AddConversationOption(conversation, "There were no arrows to be found.", "NoArrowsFound")
  36. 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?")
  37. elseif GetQuestStep(Spawn, IntoTheTaintedForest) == 5 then
  38. Step5Complete(NPC, Spawn)
  39. else
  40. GivenHope(NPC, Spawn)
  41. end
  42. elseif HasCompletedQuest(Spawn, IntoTheTaintedForest) then
  43. GivenHope(NPC, Spawn)
  44. else
  45. 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)
  46. end
  47. end
  48. function AllNotLost(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. conversation = CreateConversation()
  51. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/predator_sha_dur/tutorial_island02_revamp/quests/citizenship/predatorshadur/predatorshadur002.mp3", "", "sigh", 1717533921, 3624025078, Spawn)
  52. AddConversationOption(conversation, "Maybe I can find your bow and arrows?", "FindBowAndArrows")
  53. AddConversationOption(conversation, "I'd rather stay out of this.")
  54. 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.")
  55. end
  56. function FindBowAndArrows(NPC, Spawn)
  57. SetStepComplete(Spawn, IntoTheTaintedForest, 1)
  58. FaceTarget(NPC, Spawn)
  59. conversation = CreateConversation()
  60. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/predator_sha_dur/tutorial_island02_revamp/quests/citizenship/predatorshadur/predatorshadur003.mp3", "", "", 3011492014, 1113535899, Spawn)
  61. AddConversationOption(conversation, "Don't worry, I'll find it.")
  62. 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.")
  63. end
  64. function NoArrowsFound(NPC, Spawn)
  65. SetStepComplete(Spawn, IntoTheTaintedForest, 3)
  66. FaceTarget(NPC, Spawn)
  67. conversation = CreateConversation()
  68. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/predator_sha_dur/tutorial_island02_revamp/quests/citizenship/predatorshadur/predatorshadur006.mp3", "", "frustrated", 2110516952, 1980416532, Spawn)
  69. AddConversationOption(conversation, "Be at ease, friend. I can get the sticks.")
  70. 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!")
  71. end
  72. function Step5Complete(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. conversation = CreateConversation()
  75. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/predator_sha_dur/tutorial_island02_revamp/quests/citizenship/predatorshadur/predatorshadur007.mp3", "", "", 1042822953, 3405333200, Spawn)
  76. AddConversationOption(conversation, "That's the spirit!", "dlg_16_1")
  77. 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!")
  78. end
  79. function dlg_16_1(NPC, Spawn)
  80. FaceTarget(NPC, Spawn)
  81. conversation = CreateConversation()
  82. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/predator_sha_dur/tutorial_island02_revamp/quests/citizenship/predatorshadur/predatorshadur008.mp3", "", "ponder", 985337170, 2895526537, Spawn)
  83. AddConversationOption(conversation, "You've already got some samples? But...", "dlg_16_2")
  84. 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.")
  85. end
  86. function dlg_16_2(NPC, Spawn)
  87. SetStepComplete(Spawn, IntoTheTaintedForest, 5)
  88. FaceTarget(NPC, Spawn)
  89. conversation = CreateConversation()
  90. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/predator_sha_dur/tutorial_island02_revamp/quests/citizenship/predatorshadur/predatorshadur009.mp3", "", "no", 2433535127, 45385354, Spawn)
  91. AddConversationOption(conversation, "Great! I know Murrar's waiting for these.", "dlg_16_3")
  92. 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.")
  93. end
  94. function GivenHope(NPC, Spawn)
  95. FaceTarget(NPC, Spawn)
  96. conversation = CreateConversation()
  97. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/predator_sha_dur/tutorial_island02_revamp/quests/citizenship/predatorshadur/predatorshadur010.mp3", "", "", 140512901, 3193378379, Spawn)
  98. AddConversationOption(conversation, "Good luck.")
  99. StartConversation(conversation, NPC, Spawn, "My arrows are almost ready! You've given me hope friend.")
  100. end