9
3

PokoZing.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. --[[
  2. Script Name : SpawnScripts/ForestRuins/PokoZing.lua
  3. Script Purpose : Poko Zing
  4. Script Author : Scatman
  5. Script Date : 2009.09.27
  6. Script Notes :
  7. --]]
  8. local GNOME = 5
  9. local QUEST_FROM_NEEZER = 29
  10. local QUEST_1 = 201
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, QUEST_1)
  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, QUEST_FROM_NEEZER) then
  21. AddConversationOption(conversation, "I have a delivery from Neezer Grund.", "dlg_0_1")
  22. end
  23. if HasCompletedQuest(Spawn, QUEST_1) then
  24. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins_revamp/qst_gnome_poko_zing_done_2d84e55b.mp3", "Go on now, I don't need yer help and you don't need mine.", "", 16598543, 2700760297, Spawn)
  25. elseif HasQuest(Spawn, QUEST_1) then
  26. OnQuest1(NPC, Spawn, conversation)
  27. else
  28. if GetRace(Spawn) == GNOME and GetLevel(Spawn) >= 3 then
  29. WhatDoYouNeed(NPC, Spawn, conversation)
  30. else
  31. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins_revamp/qst_gnome_poko_zing_notonquest_f698071.mp3", "I am very, very busy. Please respect that.", "", 2080673395, 1843361681, Spawn)
  32. end
  33. end
  34. --[[
  35. if HasQuest(Spawn, QUEST_FROM_NEEZER) then
  36. AddConversationOption(conversation, "I have a delivery from Neezer Grund.", "dlg_0_1")
  37. end
  38. if HasCompletedQuest(Spawn, QUEST_1) then
  39. Say(NPC, "Go on now, I don't need yer help and you don't need mine.", Spawn)
  40. elseif HasQuest(Spawn, QUEST_1) then
  41. OnQuest1(NPC, Spawn, conversation)
  42. else
  43. --if GetRace(Spawn) == GNOME then
  44. WhatDoYouNeed(NPC, Spawn, conversation)
  45. --else
  46. -- PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins_revamp/qst_gnome_poko_zing_notonquest_f698071.mp3", "I am very, very busy. Please respect that.", "", 2080673395, 1843361681, Spawn)
  47. --end
  48. end
  49. --]]
  50. --[[
  51. if convo==2 then
  52. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko014.mp3", "", "", 1818005855, 2773371212, Spawn)
  53. AddConversationOption(conversation, "No, not yet.", "dlg_2_1")
  54. StartConversation(conversation, NPC, Spawn, "Do you have my requested materials yet?")
  55. end
  56. if convo==9 then
  57. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko010.mp3", "", "", 1396522810, 374675908, Spawn)
  58. AddConversationOption(conversation, "Lieutenant Germain wants you to analyze this leaf.", "dlg_9_1")
  59. StartConversation(conversation, NPC, Spawn, "How come nobody seems to realize how busy I am? Let me guess, you want me to do something very boring for your benefit, am I right?")
  60. end
  61. if convo==10 then
  62. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko014.mp3", "", "", 1818005855, 2773371212, Spawn)
  63. AddConversationOption(conversation, "No, not yet.", "dlg_10_1")
  64. StartConversation(conversation, NPC, Spawn, "Do you have my requested materials yet?")
  65. end
  66. --]]
  67. end
  68. -------------------------------------------------------------------------------------------------------------------
  69. -- QUEST FROM NEEZER
  70. -------------------------------------------------------------------------------------------------------------------
  71. function dlg_0_1(NPC, Spawn)
  72. SetStepComplete(Spawn, QUEST_FROM_NEEZER, 1)
  73. FaceTarget(NPC, Spawn)
  74. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko_neezer001.mp3", "", "", 910537276, 2473499967, Spawn)
  75. if not HasQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_1) then
  76. conversation = CreateConversation()
  77. AddConversationOption(conversation, "Neezer said you might have work for me.", "dlg_0_2")
  78. StartConversation(conversation, NPC, Spawn, "Ah, finally. You're kinda slow, aren't ya? Nevermind, don't answer, I don't wanna waste any more time than we already have. Goodbye.")
  79. else
  80. Say(NPC, "Ah, finally. You're kinda slow, aren't ya? Nevermind, don't answer, I don't wanna waste any more time than we already have. Goodbye.", Spawn)
  81. end
  82. end
  83. function dlg_0_2(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. conversation = CreateConversation()
  86. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko_neezer002.mp3", "", "", 204260728, 3356745328, Spawn)
  87. AddConversationOption(conversation, "Why are things hectic?", "dlg_0_3")
  88. StartConversation(conversation, NPC, Spawn, "He said what? That's horrible, things here are so hectic right now I couldn't possibly take the time to give you some random task.")
  89. end
  90. function dlg_0_3(NPC, Spawn)
  91. FaceTarget(NPC, Spawn)
  92. conversation = CreateConversation()
  93. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko_neezer003.mp3", "", "", 1892489912, 2005975591, Spawn)
  94. AddConversationOption(conversation, "Maybe I can help with that then, help figure out what is going on.", "dlg_0_4")
  95. StartConversation(conversation, NPC, Spawn, "People are showing up here for unknown reasons, and they seem to be hostile. We're not sure what their interest is, but it worries us.")
  96. end
  97. function dlg_0_4(NPC, Spawn)
  98. FaceTarget(NPC, Spawn)
  99. conversation = CreateConversation()
  100. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko_neezer004.mp3", "", "", 233334797, 3276971465, Spawn)
  101. AddConversationOption(conversation, "Well, all right.", "ICanHelp")
  102. StartConversation(conversation, NPC, Spawn, "No, no, no. That is far too important to hand to just anybody! How about I just give you some random task instead, eh?")
  103. end
  104. -------------------------------------------------------------------------------------------------------------------
  105. -- QUEST 1
  106. -------------------------------------------------------------------------------------------------------------------
  107. function WhatDoYouNeed(NPC, Spawn, conversation)
  108. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko_neezer000.mp3", "", "", 1600190149, 86494412, Spawn)
  109. AddConversationOption(conversation, "Is something wrong?", "OnlyEverything")
  110. StartConversation(conversation, NPC, Spawn, "What do you need and want and why did you come to me for it?")
  111. end
  112. function OnlyEverything(NPC, Spawn)
  113. FaceTarget(NPC, Spawn)
  114. conversation = CreateConversation()
  115. AddConversationOption(conversation, "What kinds of reports?", "WhatKindsOfReports")
  116. StartConversation(conversation, NPC, Spawn, "Only everything! Things are happening here and nobody knows what, precisely. We only have random reports, nothing concrete.")
  117. end
  118. function WhatKindsOfReports(NPC, Spawn)
  119. FaceTarget(NPC, Spawn)
  120. conversation = CreateConversation()
  121. AddConversationOption(conversation, "But they didn't send the guard?", "DidntSendGuard")
  122. StartConversation(conversation, NPC, Spawn, "Strange plants, pirates, missing people, dead animals, enough bad things to send the Qeynos Guard--you would think.")
  123. end
  124. function DidntSendGuard(NPC, Spawn)
  125. FaceTarget(NPC, Spawn)
  126. conversation = CreateConversation()
  127. AddConversationOption(conversation, "I can help.", "ICanHelp")
  128. StartConversation(conversation, NPC, Spawn, "They sent Germain here. He's nice, I suppose. He doesn't much care for expediency, though. With all this investigation going on I can't get any of the work done that I came here for originally!")
  129. end
  130. function ICanHelp(NPC, Spawn)
  131. FaceTarget(NPC, Spawn)
  132. conversation = CreateConversation()
  133. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko004.mp3", "", "", 82829705, 492738311, Spawn)
  134. AddConversationOption(conversation, "All right.", "OfferQuest1")
  135. StartConversation(conversation, NPC, Spawn, "All right, let's see. I came here because I wanted to collect junk. Important, life-altering junk. The kind of junk that helps a gnome stay in business while not setting him back financially, you know? Anyway, now you can do that for me. Collect some of the mechanical parts that have been scattered around this place.")
  136. end
  137. function OfferQuest1(NPC, Spawn)
  138. FaceTarget(NPC, Spawn)
  139. OfferQuest(NPC, Spawn, QUEST_1)
  140. end
  141. function OnQuest1(NPC, Spawn, conversation)
  142. if GetQuestStep(Spawn, QUEST_1) == 1 then
  143. AddConversationOption(conversation, "No, not yet.")
  144. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko005.mp3", "", "", 1800972779, 2738310308, Spawn)
  145. StartConversation(conversation, NPC, Spawn, "Have you collected the parts yet?")
  146. elseif GetQuestStep(Spawn, QUEST_1) == 2 then
  147. AddConversationOption(conversation, "Yes, here they are.", "MostPrecise")
  148. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko005.mp3", "", "", 1800972779, 2738310308, Spawn)
  149. StartConversation(conversation, NPC, Spawn, "Have you collected the parts yet?")
  150. elseif GetQuestStep(Spawn, QUEST_1) == 3 then
  151. Say(NPC, "Go on, run away from old Poko and talk to the Lieutenant about the machine you found. After that we can attend to whatever other business in important.", Spawn)
  152. end
  153. end
  154. function MostPrecise(NPC, Spawn)
  155. FaceTarget(NPC, Spawn)
  156. conversation = CreateConversation()
  157. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko006.mp3", "", "", 2355186524, 2969032857, Spawn)
  158. AddConversationOption(conversation, "Yes, I did.", "AllPartsFromHere")
  159. StartConversation(conversation, NPC, Spawn, "Most precise! I- uh- did you get all of these parts from here?")
  160. end
  161. function AllPartsFromHere(NPC, Spawn)
  162. SetStepComplete(Spawn, QUEST_1, 2)
  163. FaceTarget(NPC, Spawn)
  164. conversation = CreateConversation()
  165. AddConversationOption(conversation, "I will bring this to his attention.")
  166. StartConversation(conversation, NPC, Spawn, "This particular piece looks to be Freeportian in design--don't ask how I know that. It seems pretty damaged, almost useless to me, but it looks new enough to have been brought here recently. This is prety... strange. Go speak with Lieutenant Germain, tell him of this. Perhaps now Qeynos will involve herself a bit more eh? We shall see.")
  167. end
  168. function dlg_9_1(NPC, Spawn)
  169. FaceTarget(NPC, Spawn)
  170. conversation = CreateConversation()
  171. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko011.mp3", "", "", 3922758270, 2259936446, Spawn)
  172. AddConversationOption(conversation, "It was off of a plant that had a strange glow surrounding it.", "dlg_9_2")
  173. StartConversation(conversation, NPC, Spawn, "Analyze? Why wo- ooh, is it glowing? This is an amazing find. Where DID you find it?")
  174. end
  175. function dlg_9_2(NPC, Spawn)
  176. FaceTarget(NPC, Spawn)
  177. conversation = CreateConversation()
  178. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko012.mp3", "", "", 2929679035, 2604586682, Spawn)
  179. AddConversationOption(conversation, "What do you need me to do?", "dlg_9_3")
  180. AddConversationOption(conversation, "No way.")
  181. StartConversation(conversation, NPC, Spawn, "How precise! Er, well I can do these tests but I'm going to need you to finish what I was working on in the interim.")
  182. end
  183. function dlg_9_3(NPC, Spawn)
  184. FaceTarget(NPC, Spawn)
  185. conversation = CreateConversation()
  186. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko013.mp3", "", "", 2558023332, 1244993646, Spawn)
  187. AddConversationOption(conversation, "I will get what you need.", "dlg_9_4")
  188. StartConversation(conversation, NPC, Spawn, "I'm looking for a reason for the activity around here lately, the sudden interest. Who knows, maybe this leaf will prove to be that reason. But, I won't abandon my other theories. As such I'd like you to collect bark samples from the trees around here. My theory is--well that's not important. I need bark samples from trees both outside and inside the ruins, as well as from both north and south of the river that runs through them. I would also like some rock samples from the ruins.")
  189. end
  190. --[[ raw_conversations
  191. --]]