aGigglegibberGoblinGamblinGameVendor.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. --[[
  2. Script Name : SpawnScripts/Darklight/aGigglegibberGoblinGamblinGameVendor.lua
  3. Script Purpose : a Gigglegibber Goblin Gamblin' Game Vendor
  4. Script Author : John Adams
  5. Script Date : 2009.01.31
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. AddConversationOption(conversation, "Thanks.")
  22. StartConversation(conversation, NPC, Spawn, "The current jackpot is " .. GetCoinMessage(GetVariableValue("gambling_current_jackpot")) .. ".")
  23. --[[
  24. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  25. AddConversationOption(conversation, "How did a goblin get in here? Don't you kill people?", "dlg_0_1")
  26. AddConversationOption(conversation, "I think I'd rather keep my money, thanks.")
  27. StartConversation(conversation, NPC, Spawn, "Buy ticket, you! Only ten shiny coins! You give just ten shiny coins and maybe you get um... many shinier coins!")
  28. if convo==1 then
  29. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  30. AddConversationOption(conversation, "How did a goblin get in here? Don't you kill people?", "dlg_1_1")
  31. AddConversationOption(conversation, "What do you know about the disappearance of Lord Bowsprite?")
  32. AddConversationOption(conversation, "I think I'd rather keep my money, thanks.")
  33. StartConversation(conversation, NPC, Spawn, "Buy ticket, you! Only ten shiny coins! You give just ten shiny coins and maybe you get um... many shinier coins!")
  34. end
  35. if convo==2 then
  36. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  37. AddConversationOption(conversation, "How did a goblin get in here? Don't you kill people?", "dlg_2_1")
  38. AddConversationOption(conversation, "What do you know about the disappearance of Lord Bowsprite?")
  39. AddConversationOption(conversation, "I think I'd rather keep my money, thanks.")
  40. StartConversation(conversation, NPC, Spawn, "Buy ticket, you! Only ten shiny coins! You give just ten shiny coins and maybe you get um... many shinier coins!")
  41. end
  42. if convo==3 then
  43. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  44. AddConversationOption(conversation, "How did a goblin get in here? Don't you kill people?", "dlg_3_1")
  45. AddConversationOption(conversation, "What do you know about the disappearance of Lord Bowsprite?")
  46. AddConversationOption(conversation, "I think I'd rather keep my money, thanks.")
  47. StartConversation(conversation, NPC, Spawn, "Buy ticket, you! Only ten shiny coins! You give just ten shiny coins and maybe you get um... many shinier coins!")
  48. end
  49. if convo==8 then
  50. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  51. AddConversationOption(conversation, "How did a goblin get in here? Don't you kill people?", "dlg_8_1")
  52. AddConversationOption(conversation, "I think I'd rather keep my money, thanks.")
  53. StartConversation(conversation, NPC, Spawn, "Buy ticket, you! Only ten shiny coins! You give just ten shiny coins and maybe you get um... many shinier coins!")
  54. end
  55. if convo==9 then
  56. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  57. AddConversationOption(conversation, "How did a goblin get in here? Don't you kill people?", "dlg_9_1")
  58. AddConversationOption(conversation, "I think I'd rather keep my money, thanks.")
  59. StartConversation(conversation, NPC, Spawn, "Buy ticket, you! Only ten shiny coins! You give just ten shiny coins and maybe you get um... many shinier coins!")
  60. end
  61. if convo==10 then
  62. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  63. AddConversationOption(conversation, "How did a goblin get in here? Don't you kill people?", "dlg_10_1")
  64. AddConversationOption(conversation, "I think I'd rather keep my money, thanks.")
  65. StartConversation(conversation, NPC, Spawn, "Buy ticket, you! Only ten shiny coins! You give just ten shiny coins and maybe you get um... many shinier coins!")
  66. end
  67. if convo==16 then
  68. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  69. AddConversationOption(conversation, "How did a goblin get in here? Don't you kill people?", "dlg_16_1")
  70. AddConversationOption(conversation, "What do you know about the disappearance of Lord Bowsprite?")
  71. AddConversationOption(conversation, "I think I'd rather keep my money, thanks.")
  72. StartConversation(conversation, NPC, Spawn, "Buy ticket, you! Only ten shiny coins! You give just ten shiny coins and maybe you get um... many shinier coins!")
  73. end
  74. if convo==20 then
  75. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  76. AddConversationOption(conversation, "How did a goblin get in here? Don't you kill people?", "dlg_20_1")
  77. AddConversationOption(conversation, "I think I'd rather keep my money, thanks.")
  78. StartConversation(conversation, NPC, Spawn, "Buy ticket, you! Only ten shiny coins! You give just ten shiny coins and maybe you get um... many shinier coins!")
  79. end
  80. --]]
  81. end
  82. function dlg_0_1(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. conversation = CreateConversation()
  85. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  86. AddConversationOption(conversation, "Bowsprite... Not Bowspit.")
  87. AddConversationOption(conversation, "On second thought, I'll be going now.", "dlg_0_2")
  88. StartConversation(conversation, NPC, Spawn, "Lord who? I's never met no one named Bowspit.")
  89. end
  90. function dlg_0_2(NPC, Spawn)
  91. FaceTarget(NPC, Spawn)
  92. conversation = CreateConversation()
  93. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  94. AddConversationOption(conversation, "Who said he was an elf? Fess up or I'll tell everyone the Gigglegibber gambling game is rigged!", "dlg_0_3")
  95. AddConversationOption(conversation, "Yeah, this is going to be like pulling teeth. Nevermind.")
  96. StartConversation(conversation, NPC, Spawn, "Oh... Well, um, I's still don't know nothing about that elf.")
  97. end
  98. function dlg_0_3(NPC, Spawn)
  99. FaceTarget(NPC, Spawn)
  100. conversation = CreateConversation()
  101. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  102. AddConversationOption(conversation, "Tell me where it is. You don't want me to ruin your business do you?", "dlg_0_4")
  103. AddConversationOption(conversation, "On second thought, I'll be going now.")
  104. StartConversation(conversation, NPC, Spawn, "Noes, noes, you can't do that! Fine, I'll tells you everything. We have Bowspit at the super secret hideout, but you can't go there. No way.")
  105. end
  106. function dlg_0_4(NPC, Spawn)
  107. FaceTarget(NPC, Spawn)
  108. conversation = CreateConversation()
  109. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  110. AddConversationOption(conversation, "You've been helpful, thanks.", "dlg_0_5")
  111. StartConversation(conversation, NPC, Spawn, "You gonna gets me in a lot of trouble, you know. I'll tells you, but I don't exactly remember where it is. All I remember is the entrance is at the bottom of the water, under the docks, where the halfies and fairies play. We all haves to take the boat to get there. That's all I'm telling you! Now goes away.")
  112. end
  113. function dlg_1_1(NPC, Spawn)
  114. FaceTarget(NPC, Spawn)
  115. conversation = CreateConversation()
  116. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  117. AddConversationOption(conversation, "Bowsprite... Not Bowspit.")
  118. AddConversationOption(conversation, "On second thought, I'll be going now.", "dlg_1_2")
  119. StartConversation(conversation, NPC, Spawn, "Lord who? I's never met no one named Bowspit.")
  120. end
  121. function dlg_2_1(NPC, Spawn)
  122. FaceTarget(NPC, Spawn)
  123. conversation = CreateConversation()
  124. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  125. AddConversationOption(conversation, "Why are potatoes funny?", "dlg_2_2")
  126. AddConversationOption(conversation, "On second thought, I'll be going now.")
  127. StartConversation(conversation, NPC, Spawn, "Gigglegibber goblins not kill people! War no fun at all. Gigglegibber goblins like shiny coins and funny things! We like frogs, fluffy kittens, potatoes... You have potatoes?")
  128. end
  129. function dlg_2_2(NPC, Spawn)
  130. FaceTarget(NPC, Spawn)
  131. conversation = CreateConversation()
  132. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  133. AddConversationOption(conversation, "I'll think about it.", "dlg_2_3")
  134. StartConversation(conversation, NPC, Spawn, "They tasty! Not funny!... though Gribbik carved funny face in a potato once. That was funny until he eated it. Hey! No try to tricks me with talk about potatoes. You still pays ten shiny coins for ticket! Buy many tickets! If you buys more maybe you win more than many shiny coins!")
  135. end
  136. function dlg_9_1(NPC, Spawn)
  137. FaceTarget(NPC, Spawn)
  138. conversation = CreateConversation()
  139. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  140. AddConversationOption(conversation, "Why are potatoes funny?", "dlg_9_2")
  141. AddConversationOption(conversation, "On second thought, I'll be going now.")
  142. StartConversation(conversation, NPC, Spawn, "Gigglegibber goblins not kill people! War no fun at all. Gigglegibber goblins like shiny coins and funny things! We like frogs, fluffy kittens, potatoes... You have potatoes?")
  143. end
  144. function dlg_9_2(NPC, Spawn)
  145. FaceTarget(NPC, Spawn)
  146. conversation = CreateConversation()
  147. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  148. AddConversationOption(conversation, "I'll think about it.", "dlg_9_3")
  149. StartConversation(conversation, NPC, Spawn, "They tasty! Not funny!... though Gribbik carved funny face in a potato once. That was funny until he eated it. Hey! No try to tricks me with talk about potatoes. You still pays ten shiny coins for ticket! Buy many tickets! If you buys more maybe you win more than many shiny coins!")
  150. end
  151. function dlg_16_1(NPC, Spawn)
  152. FaceTarget(NPC, Spawn)
  153. conversation = CreateConversation()
  154. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  155. AddConversationOption(conversation, "Bowsprite... Not Bowspit.")
  156. AddConversationOption(conversation, "On second thought, I'll be going now.", "dlg_16_2")
  157. StartConversation(conversation, NPC, Spawn, "Lord who? I's never met no one named Bowspit.")
  158. end
  159. function dlg_16_2(NPC, Spawn)
  160. FaceTarget(NPC, Spawn)
  161. conversation = CreateConversation()
  162. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  163. AddConversationOption(conversation, "Who said he was an elf? Fess up or I'll tell everyone the gambling game is rigged!", "dlg_16_3")
  164. AddConversationOption(conversation, "On second thought, I'll be going now.")
  165. StartConversation(conversation, NPC, Spawn, "Ohh... Well, um, I's still don't know nothing about that elf.")
  166. end
  167. function dlg_16_3(NPC, Spawn)
  168. FaceTarget(NPC, Spawn)
  169. conversation = CreateConversation()
  170. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  171. AddConversationOption(conversation, "Tell me where it is. You don't want me to ruin your business do you?", "dlg_16_4")
  172. AddConversationOption(conversation, "On second thought, I'll be going now.")
  173. StartConversation(conversation, NPC, Spawn, "Noes, noes, you can't do that! Fine, I'll tells you everything. We have Bowspit at the super secret hideout, but you can't go there. No way.")
  174. end
  175. function dlg_16_4(NPC, Spawn)
  176. FaceTarget(NPC, Spawn)
  177. conversation = CreateConversation()
  178. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  179. AddConversationOption(conversation, "You've been helpful, thanks.", "dlg_16_5")
  180. StartConversation(conversation, NPC, Spawn, "You gonna gets me in a lot of trouble, you know. I'll tells you, but I don't exactly remember where it is. All I remember is the entrance is at the bottom of the water, under the docks, where the halfies and fairies play. We all haves to take the boat to get there. That's all I'm telling you! Now goes away before no one wants tickets anymore.")
  181. end