TykorGiLok.lua 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/TykorGiLok.lua
  3. Script Purpose : Tykor Gi'Lok <Chrykori Village Secondary>
  4. Script Author : John Adams
  5. Script Date : 2009.02.06
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. QUEST_1 = 105
  9. QUEST_2 = 106
  10. QUEST_3 = 107
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, QUEST_1)
  13. ProvidesQuest(NPC, QUEST_2)
  14. ProvidesQuest(NPC, QUEST_3)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. conversation = CreateConversation()
  22. if HasCompletedQuest(Spawn, QUEST_1) then
  23. if HasCompletedQuest(Spawn, QUEST_2) then
  24. if HasCompletedQuest(Spawn, QUSET_3) then
  25. Say(NPC, "Please do not waste time.", Spawn)
  26. elseif HasQuest(Spawn, QUEST_3) then
  27. Say(NPC, "Please do not waste time.", Spawn)
  28. else
  29. DoYouHaveTheOre(NPC, Spawn, conversation)
  30. end
  31. elseif HasQuest(Spawn, QUEST_2) then
  32. DoYouHaveTheOre(NPC, Spawn, conversation)
  33. else
  34. HaveYouSlitGizzards(NPC, Spawn, conversation)
  35. end
  36. elseif HasQuest(Spawn, QUEST_1) then
  37. HaveYouSlitGizzards(NPC, Spawn, conversation)
  38. else
  39. FinallyNewRecruit(NPC, Spawn, conversation)
  40. end
  41. end
  42. --------------------------------------------------------------------------------------------------
  43. -- QUEST 1
  44. --------------------------------------------------------------------------------------------------
  45. function FinallyNewRecruit(NPC, Spawn, conversation)
  46. PlayFlavor(NPC, "voiceover/english/rok_questvo/tykor_gi_lok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/gilok/gilok000.mp3", "", "", 2409590075, 1967179251, Spawn)
  47. AddConversationOption(conversation, "How can this recruit be of use?", "dlg_0_1")
  48. StartConversation(conversation, NPC, Spawn, "Finally, a new recruit! I was beginning to think I'd turn to salt before they sent anyone to this beach. And if I did turn to salt, I suspect the Haoaeran spirocs would have a fine time pecking me to bits. They don't take to our presence on Chrykori Island, you see. And though they have yet to squawk war from those colorful beaks of theirs, they've done everything they can to be a nuisance and prompt us to leave.")
  49. end
  50. function dlg_0_1(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. PlayFlavor(NPC, "voiceover/english/rok_questvo/tykor_gi_lok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/gilok/gilok000a.mp3", "", "", 2545146439, 3743717142, Spawn)
  54. AddConversationOption(conversation, "I will kill the poachers.", "OfferQuest1")
  55. StartConversation(conversation, NPC, Spawn, "Eager! That's good! Perhaps they've sent me more than the usual giblets this time. To think I thought my appointment here was a subtle suggestion that I'm no longer of use to the army of Gorowyn! We'll show them I'm not so inept as they may think... You see, the spirocs have sent poachers to hunt the sand snappers to near extinction, taking from us one of our prime food sources. But you'll show them, won't you?")
  56. end
  57. function OfferQuest1(NPC, Spawn)
  58. OfferQuest(NPC, Spawn)
  59. OfferQuest(NPC, Spawn, QUEST_1)
  60. end
  61. function HaveYouSlitGizzards(NPC, Spawn, conversation)
  62. PlayFlavor(NPC, "voiceover/english/rok_questvo/tykor_gi_lok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/gilok/gilok002.mp3", "", "", 2250402818, 734088714, Spawn)
  63. if (HasCompletedQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_2)) or (HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2) then
  64. AddConversationOption(conversation, "I've taken some of them out.", "dlg_1_1")
  65. else
  66. AddConversationOption(conversation, "Not yet. More need to fall to see this work done.")
  67. end
  68. StartConversation(conversation, NPC, Spawn, "Have you slit their gizzards?")
  69. end
  70. function dlg_1_1(NPC, Spawn)
  71. if HasQuest(Spawn, QUEST_1) then
  72. SetStepComplete(Spawn, QUEST_1, 2)
  73. end
  74. FaceTarget(NPC, Spawn)
  75. conversation = CreateConversation()
  76. PlayFlavor(NPC, "voiceover/english/rok_questvo/tykor_gi_lok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/gilok/gilok003.mp3", "", "", 1572650022, 3969849806, Spawn)
  77. AddConversationOption(conversation, "What do you think is so special about this beach?", "dlg_1_2")
  78. StartConversation(conversation, NPC, Spawn, "A good start! But if you believe my theories, there is more going on down here than my superiors think. They sent me here to baby sit some harmless poachers... but the Haoaerans are up to something on these beaches. The poachers are a diversion, I say. Any fool can see war is coming, " .. GetName(Spawn) .. ". though some may not want to, because the Haoaerans have the advantage here.")
  79. end
  80. --------------------------------------------------------------------------------------------------
  81. -- QUEST 2
  82. --------------------------------------------------------------------------------------------------
  83. function dlg_1_2(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. conversation = CreateConversation()
  86. PlayFlavor(NPC, "voiceover/english/rok_questvo/tykor_gi_lok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/gilok/gilok003a.mp3", "", "", 1948098851, 1635799575, Spawn)
  87. AddConversationOption(conversation, "I'll bring us back samples straight away.", "OfferQuest2")
  88. StartConversation(conversation, NPC, Spawn, "Oh now I haven't gotten so far as figuring out any of that! But maybe you can help me. I've seen them mining ore along the valley walls, and I suspect they mean to make weapons of it. But oh it could also be something so much more nefarious! And wouldn't discovering such a plot earn the both of us promotions. Why don't you bring back some samples of the ore and let us see for ourselves.")
  89. end
  90. function OfferQuest2(NPC, Spawn)
  91. FaceTarget(NPC, Spawn)
  92. OfferQuest(NPC, Spawn, QUEST_2)
  93. end
  94. function DoYouHaveTheOre(NPC, Spawn, conversation)
  95. PlayFlavor(NPC, "voiceover/english/rok_questvo/tykor_gi_lok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/gilok/gilok005.mp3", "", "", 3931269326, 274875962, Spawn)
  96. if (HasCompletedQuest(Spawn, QUEST_2) and not HasCompletedQuest(Spawn, QUEST_3)) or (HasQuest(Spawn, QUEST_2) and GetQuestStep(Spawn, QUEST_2) == 2) then
  97. AddConversationOption(conversation, "Yes, I do and no, they died too quickly for any of that.", "dlg_4_1")
  98. else
  99. AddConversationOption(conversation, "No, they will though.")
  100. end
  101. StartConversation(conversation, NPC, Spawn, "Do you have the ore? Did they molt at seeing you interrupt their plans?")
  102. end
  103. function dlg_4_1(NPC, Spawn)
  104. if HasQuest(Spawn, QUEST_2) then
  105. SetStepComplete(Spawn, QUEST_2, 2)
  106. end
  107. FaceTarget(NPC, Spawn)
  108. conversation = CreateConversation()
  109. PlayFlavor(NPC, "voiceover/english/rok_questvo/tykor_gi_lok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/gilok/gilok006.mp3", "", "", 2948220406, 1046702347, Spawn)
  110. AddConversationOption(conversation, "Very well. ", "OfferQuest3")
  111. StartConversation(conversation, NPC, Spawn, "That's the way to do it! Well now, let's have a look... This is strange. Grrr ... this is mostly rock! There's barely any ore at all... Mighty suspicious, if you ask me. I think it is time to earn our promotions. I'd like you to travel to Chrykori Village, just north of here, and speak with Primary Conzuk Zum'Ha. Show him what we've found, and be sure to mention me.")
  112. end
  113. --------------------------------------------------------------------------------------------------
  114. -- QUEST 3
  115. --------------------------------------------------------------------------------------------------
  116. function OfferQuest3(NPC, Spawn)
  117. FaceTarget(NPC, Spawn)
  118. Say(NPC, "I haven't finished this quest yet.", Spawn)
  119. OfferQuest(NPC, Spawn, QUEST_3)
  120. end