9
3

PokoZing.lua 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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. modified by :Ememjr
  8. Modified Date :5/16/2020
  9. Modified Notes : added missing NPC text
  10. --]]
  11. local GNOME = 5
  12. local QUEST_FROM_NEEZER = 29
  13. local QUEST_1 = 30
  14. local QUEST_FROM_GERMAIN = 521
  15. function spawn(NPC)
  16. ProvidesQuest(NPC, QUEST_1)
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function hailed(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. conversation = CreateConversation()
  24. if HasQuest(Spawn, QUEST_FROM_NEEZER) then
  25. AddConversationOption(conversation, "I have a delivery from Neezer Grund.", "dlg_0_1")
  26. end
  27. if HasQuest(Spawn, QUEST_FROM_GERMAIN) then
  28. if GetQuestStep(Spawn, QUEST_FROM_GERMAIN) == 1 then
  29. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko010.mp3", "", "", 1396522810, 374675908, Spawn)
  30. AddConversationOption(conversation, "Lieutenant Germain wants you to analyze this leaf.", "dlg_9_1")
  31. 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?")
  32. elseif GetQuestStep(Spawn, QUEST_FROM_GERMAIN) == 7 then
  33. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko014.mp3", "", "", 1818005855, 2773371212, Spawn)
  34. AddConversationOption(conversation, "Yes, here they are.", "Step7Complete")
  35. --AddConversationOption(conversation, "No, not yet.")
  36. StartConversation(conversation, NPC, Spawn, "Do you have my requested materials yet?")
  37. end
  38. else
  39. if HasCompletedQuest(Spawn, QUEST_1) then
  40. 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)
  41. elseif HasQuest(Spawn, QUEST_1) then
  42. OnQuest1(NPC, Spawn, conversation)
  43. else
  44. if GetRace(Spawn) == GNOME and GetLevel(Spawn) >= 3 then
  45. WhatDoYouNeed(NPC, Spawn, conversation)
  46. else
  47. 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)
  48. end
  49. end
  50. end
  51. --[[
  52. if HasQuest(Spawn, QUEST_FROM_NEEZER) then
  53. AddConversationOption(conversation, "I have a delivery from Neezer Grund.", "dlg_0_1")
  54. end
  55. if HasCompletedQuest(Spawn, QUEST_1) then
  56. Say(NPC, "Go on now, I don't need yer help and you don't need mine.", Spawn)
  57. elseif HasQuest(Spawn, QUEST_1) then
  58. OnQuest1(NPC, Spawn, conversation)
  59. else
  60. --if GetRace(Spawn) == GNOME then
  61. WhatDoYouNeed(NPC, Spawn, conversation)
  62. --else
  63. -- 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)
  64. --end
  65. end
  66. --]]
  67. --[[
  68. if convo==2 then
  69. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko014.mp3", "", "", 1818005855, 2773371212, Spawn)
  70. AddConversationOption(conversation, "No, not yet.", "dlg_2_1")
  71. StartConversation(conversation, NPC, Spawn, "Do you have my requested materials yet?")
  72. end
  73. if convo==10 then
  74. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko014.mp3", "", "", 1818005855, 2773371212, Spawn)
  75. AddConversationOption(conversation, "No, not yet.", "dlg_10_1")
  76. StartConversation(conversation, NPC, Spawn, "Do you have my requested materials yet?")
  77. end
  78. --]]
  79. end
  80. -------------------------------------------------------------------------------------------------------------------
  81. -- QUEST FROM NEEZER
  82. -------------------------------------------------------------------------------------------------------------------
  83. function dlg_0_1(NPC, Spawn)
  84. SetStepComplete(Spawn, QUEST_FROM_NEEZER, 1)
  85. FaceTarget(NPC, Spawn)
  86. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko_neezer001.mp3", "", "", 910537276, 2473499967, Spawn)
  87. if not HasQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_1) then
  88. conversation = CreateConversation()
  89. AddConversationOption(conversation, "Neezer said you might have work for me.", "dlg_0_2")
  90. 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.")
  91. else
  92. 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)
  93. end
  94. end
  95. function dlg_0_2(NPC, Spawn)
  96. FaceTarget(NPC, Spawn)
  97. conversation = CreateConversation()
  98. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko_neezer002.mp3", "", "", 204260728, 3356745328, Spawn)
  99. AddConversationOption(conversation, "Why are things hectic?", "dlg_0_3")
  100. 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.")
  101. end
  102. function dlg_0_3(NPC, Spawn)
  103. FaceTarget(NPC, Spawn)
  104. conversation = CreateConversation()
  105. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko_neezer003.mp3", "", "", 1892489912, 2005975591, Spawn)
  106. AddConversationOption(conversation, "Maybe I can help with that then, help figure out what is going on.", "dlg_0_4")
  107. 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.")
  108. end
  109. function dlg_0_4(NPC, Spawn)
  110. FaceTarget(NPC, Spawn)
  111. conversation = CreateConversation()
  112. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko_neezer004.mp3", "", "", 233334797, 3276971465, Spawn)
  113. AddConversationOption(conversation, "Well, all right.", "ICanHelp")
  114. 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?")
  115. end
  116. -------------------------------------------------------------------------------------------------------------------
  117. -- QUEST 1
  118. -------------------------------------------------------------------------------------------------------------------
  119. function WhatDoYouNeed(NPC, Spawn, conversation)
  120. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko_neezer000.mp3", "", "", 1600190149, 86494412, Spawn)
  121. AddConversationOption(conversation, "Is something wrong?", "OnlyEverything")
  122. StartConversation(conversation, NPC, Spawn, "What do you need and want and why did you come to me for it?")
  123. end
  124. function OnlyEverything(NPC, Spawn)
  125. FaceTarget(NPC, Spawn)
  126. conversation = CreateConversation()
  127. AddConversationOption(conversation, "What kinds of reports?", "WhatKindsOfReports")
  128. StartConversation(conversation, NPC, Spawn, "Only everything! Things are happening here and nobody knows what, precisely. We only have random reports, nothing concrete.")
  129. end
  130. function WhatKindsOfReports(NPC, Spawn)
  131. FaceTarget(NPC, Spawn)
  132. conversation = CreateConversation()
  133. AddConversationOption(conversation, "But they didn't send the guard?", "DidntSendGuard")
  134. StartConversation(conversation, NPC, Spawn, "Strange plants, pirates, missing people, dead animals, enough bad things to send the Qeynos Guard--you would think.")
  135. end
  136. function DidntSendGuard(NPC, Spawn)
  137. FaceTarget(NPC, Spawn)
  138. conversation = CreateConversation()
  139. AddConversationOption(conversation, "I can help.", "ICanHelp")
  140. 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!")
  141. end
  142. function ICanHelp(NPC, Spawn)
  143. FaceTarget(NPC, Spawn)
  144. conversation = CreateConversation()
  145. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko004.mp3", "", "", 82829705, 492738311, Spawn)
  146. AddConversationOption(conversation, "All right.", "OfferQuest1")
  147. 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.")
  148. end
  149. function OfferQuest1(NPC, Spawn)
  150. FaceTarget(NPC, Spawn)
  151. OfferQuest(NPC, Spawn, QUEST_1)
  152. end
  153. function OnQuest1(NPC, Spawn, conversation)
  154. if GetQuestStep(Spawn, QUEST_1) == 1 then
  155. AddConversationOption(conversation, "No, not yet.")
  156. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko005.mp3", "", "", 1800972779, 2738310308, Spawn)
  157. StartConversation(conversation, NPC, Spawn, "Have you collected the parts yet?")
  158. elseif GetQuestStep(Spawn, QUEST_1) == 2 then
  159. AddConversationOption(conversation, "Yes, here they are.", "MostPrecise")
  160. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko005.mp3", "", "", 1800972779, 2738310308, Spawn)
  161. StartConversation(conversation, NPC, Spawn, "Have you collected the parts yet?")
  162. elseif GetQuestStep(Spawn, QUEST_1) == 3 then
  163. 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)
  164. end
  165. end
  166. function MostPrecise(NPC, Spawn)
  167. FaceTarget(NPC, Spawn)
  168. conversation = CreateConversation()
  169. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko006.mp3", "", "", 2355186524, 2969032857, Spawn)
  170. AddConversationOption(conversation, "Yes, I did.", "AllPartsFromHere")
  171. StartConversation(conversation, NPC, Spawn, "Most precise! I- uh- did you get all of these parts from here?")
  172. end
  173. function AllPartsFromHere(NPC, Spawn)
  174. SetStepComplete(Spawn, QUEST_1, 2)
  175. FaceTarget(NPC, Spawn)
  176. conversation = CreateConversation()
  177. AddConversationOption(conversation, "I will bring this to his attention.")
  178. 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.")
  179. end
  180. ---------------------------------------------
  181. -- QUEST FROM GERMAIN --
  182. ---------------------------------------------
  183. function dlg_9_1(NPC, Spawn)
  184. FaceTarget(NPC, Spawn)
  185. conversation = CreateConversation()
  186. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko011.mp3", "", "", 3922758270, 2259936446, Spawn)
  187. AddConversationOption(conversation, "It was off of a plant that had a strange glow surrounding it.", "dlg_9_2")
  188. StartConversation(conversation, NPC, Spawn, "Analyze? Why wo- ooh, is it glowing? This is an amazing find. Where DID you find it?")
  189. end
  190. function dlg_9_2(NPC, Spawn)
  191. FaceTarget(NPC, Spawn)
  192. conversation = CreateConversation()
  193. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko012.mp3", "", "", 2929679035, 2604586682, Spawn)
  194. AddConversationOption(conversation, "What do you need me to do?", "dlg_9_3")
  195. AddConversationOption(conversation, "No way.")
  196. 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.")
  197. end
  198. function dlg_9_3(NPC, Spawn)
  199. FaceTarget(NPC, Spawn)
  200. conversation = CreateConversation()
  201. SetStepComplete(Spawn, QUEST_FROM_GERMAIN, 1)
  202. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko013.mp3", "", "", 2558023332, 1244993646, Spawn)
  203. AddConversationOption(conversation, "I will get what you need.", "dlg_9_4")
  204. 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.")
  205. end
  206. function Step7Complete(NPC, Spawn)
  207. --FaceTarget(NPC, Spawn)
  208. --conversation = CreateConversation()
  209. --SetStepComplete(Spawn, QUEST_FROM_GERMAIN, 7)
  210. --AddConversationOption(conversation, "What about the leaf?")
  211. -- StartConversation(conversation, NPC, Spawn, "Good, give them to me.")
  212. FaceTarget(NPC, Spawn)
  213. conversation = CreateConversation()
  214. SetStepComplete(Spawn, QUEST_FROM_GERMAIN, 7)
  215. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko015.mp3", "", "", 758778073, 2938724124, Spawn)
  216. AddConversationOption(conversation, "What about the leaf?", "dlg_2_2")
  217. StartConversation(conversation, NPC, Spawn, "Good, give them to me.")
  218. end
  219. function dlg_2_2(NPC, Spawn)
  220. FaceTarget(NPC, Spawn)
  221. conversation = CreateConversation()
  222. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/poko_zing/qey_adv02_ruins/quests/poko/poko016.mp3", "", "", 2083234040, 3590400426, Spawn)
  223. AddConversationOption(conversation, "All right.")
  224. StartConversation(conversation, NPC, Spawn, "Oh, right. The leaf wasn't real at all. It was part of some sort of illusion. The plant it came from was meant to hide something. I've already told all of this to Lieutenant Germain, go talk to him, I'm busy.")
  225. end
  226. --[[ raw_conversations
  227. --]]