aGigglegibberGoblinGamblinGameVendor.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/aGigglegibberGoblinGamblinGameVendor.lua
  3. Script Purpose : a Gigglegibber Goblin Gamblin' Game Vendor
  4. Script Author : John Adams
  5. Script Date : 2009.03.01
  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. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  22. AddConversationOption(conversation, "How did a goblin get in here? Don't you kill people?", "dlg_0_1")
  23. AddConversationOption(conversation, "I think I'd rather keep my money, thanks.")
  24. 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!")
  25. if convo==1 then
  26. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  27. AddConversationOption(conversation, "How did a goblin get in here? Don't you kill people?", "dlg_1_1")
  28. AddConversationOption(conversation, "What do you know about the disappearance of Lord Bowsprite?")
  29. AddConversationOption(conversation, "I think I'd rather keep my money, thanks.")
  30. 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!")
  31. end
  32. if convo==2 then
  33. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  34. AddConversationOption(conversation, "How did a goblin get in here? Don't you kill people?", "dlg_2_1")
  35. AddConversationOption(conversation, "What do you know about the disappearance of Lord Bowsprite?")
  36. AddConversationOption(conversation, "I think I'd rather keep my money, thanks.")
  37. 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!")
  38. end
  39. if convo==3 then
  40. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  41. AddConversationOption(conversation, "How did a goblin get in here? Don't you kill people?", "dlg_3_1")
  42. AddConversationOption(conversation, "What do you know about the disappearance of Lord Bowsprite?")
  43. AddConversationOption(conversation, "I think I'd rather keep my money, thanks.")
  44. 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!")
  45. end
  46. if convo==8 then
  47. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  48. AddConversationOption(conversation, "How did a goblin get in here? Don't you kill people?", "dlg_8_1")
  49. AddConversationOption(conversation, "I think I'd rather keep my money, thanks.")
  50. 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!")
  51. end
  52. if convo==9 then
  53. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  54. AddConversationOption(conversation, "How did a goblin get in here? Don't you kill people?", "dlg_9_1")
  55. AddConversationOption(conversation, "I think I'd rather keep my money, thanks.")
  56. 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!")
  57. end
  58. if convo==10 then
  59. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  60. AddConversationOption(conversation, "How did a goblin get in here? Don't you kill people?", "dlg_10_1")
  61. AddConversationOption(conversation, "I think I'd rather keep my money, thanks.")
  62. 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!")
  63. end
  64. if convo==16 then
  65. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  66. AddConversationOption(conversation, "How did a goblin get in here? Don't you kill people?", "dlg_16_1")
  67. AddConversationOption(conversation, "What do you know about the disappearance of Lord Bowsprite?")
  68. AddConversationOption(conversation, "I think I'd rather keep my money, thanks.")
  69. 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!")
  70. end
  71. if convo==20 then
  72. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  73. AddConversationOption(conversation, "How did a goblin get in here? Don't you kill people?", "dlg_20_1")
  74. AddConversationOption(conversation, "I think I'd rather keep my money, thanks.")
  75. 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!")
  76. end
  77. end
  78. function dlg_0_1(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. conversation = CreateConversation()
  81. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  82. AddConversationOption(conversation, "Bowsprite... Not Bowspit.")
  83. AddConversationOption(conversation, "On second thought, I'll be going now.", "dlg_0_2")
  84. StartConversation(conversation, NPC, Spawn, "Lord who? I's never met no one named Bowspit.")
  85. end
  86. function dlg_0_2(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. conversation = CreateConversation()
  89. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  90. AddConversationOption(conversation, "Who said he was an elf? Fess up or I'll tell everyone the Gigglegibber gambling game is rigged!", "dlg_0_3")
  91. AddConversationOption(conversation, "Yeah, this is going to be like pulling teeth. Nevermind.")
  92. StartConversation(conversation, NPC, Spawn, "Oh... Well, um, I's still don't know nothing about that elf.")
  93. end
  94. function dlg_0_3(NPC, Spawn)
  95. FaceTarget(NPC, Spawn)
  96. conversation = CreateConversation()
  97. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  98. AddConversationOption(conversation, "Tell me where it is. You don't want me to ruin your business do you?", "dlg_0_4")
  99. AddConversationOption(conversation, "On second thought, I'll be going now.")
  100. 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.")
  101. end
  102. function dlg_0_4(NPC, Spawn)
  103. FaceTarget(NPC, Spawn)
  104. conversation = CreateConversation()
  105. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  106. AddConversationOption(conversation, "You've been helpful, thanks.", "dlg_0_5")
  107. 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.")
  108. end
  109. function dlg_1_1(NPC, Spawn)
  110. FaceTarget(NPC, Spawn)
  111. conversation = CreateConversation()
  112. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  113. AddConversationOption(conversation, "Bowsprite... Not Bowspit.")
  114. AddConversationOption(conversation, "On second thought, I'll be going now.", "dlg_1_2")
  115. StartConversation(conversation, NPC, Spawn, "Lord who? I's never met no one named Bowspit.")
  116. end
  117. function dlg_2_1(NPC, Spawn)
  118. FaceTarget(NPC, Spawn)
  119. conversation = CreateConversation()
  120. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  121. AddConversationOption(conversation, "Why are potatoes funny?", "dlg_2_2")
  122. AddConversationOption(conversation, "On second thought, I'll be going now.")
  123. 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?")
  124. end
  125. function dlg_2_2(NPC, Spawn)
  126. FaceTarget(NPC, Spawn)
  127. conversation = CreateConversation()
  128. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  129. AddConversationOption(conversation, "I'll think about it.", "dlg_2_3")
  130. 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!")
  131. end
  132. function dlg_9_1(NPC, Spawn)
  133. FaceTarget(NPC, Spawn)
  134. conversation = CreateConversation()
  135. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  136. AddConversationOption(conversation, "Why are potatoes funny?", "dlg_9_2")
  137. AddConversationOption(conversation, "On second thought, I'll be going now.")
  138. 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?")
  139. end
  140. function dlg_9_2(NPC, Spawn)
  141. FaceTarget(NPC, Spawn)
  142. conversation = CreateConversation()
  143. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  144. AddConversationOption(conversation, "I'll think about it.", "dlg_9_3")
  145. 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!")
  146. end
  147. function dlg_10_1(NPC, Spawn)
  148. FaceTarget(NPC, Spawn)
  149. conversation = CreateConversation()
  150. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  151. AddConversationOption(conversation, "Why are potatoes funny?", "dlg_10_2")
  152. AddConversationOption(conversation, "On second thought, I'll be going now.")
  153. 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?")
  154. end
  155. function dlg_10_2(NPC, Spawn)
  156. FaceTarget(NPC, Spawn)
  157. conversation = CreateConversation()
  158. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  159. AddConversationOption(conversation, "I'll think about it.", "dlg_10_3")
  160. 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!")
  161. end
  162. function dlg_16_1(NPC, Spawn)
  163. FaceTarget(NPC, Spawn)
  164. conversation = CreateConversation()
  165. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  166. AddConversationOption(conversation, "Bowsprite... Not Bowspit.")
  167. AddConversationOption(conversation, "On second thought, I'll be going now.", "dlg_16_2")
  168. StartConversation(conversation, NPC, Spawn, "Lord who? I's never met no one named Bowspit.")
  169. end
  170. function dlg_16_2(NPC, Spawn)
  171. FaceTarget(NPC, Spawn)
  172. conversation = CreateConversation()
  173. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  174. AddConversationOption(conversation, "Who said he was an elf? Fess up or I'll tell everyone the gambling game is rigged!", "dlg_16_3")
  175. AddConversationOption(conversation, "On second thought, I'll be going now.")
  176. StartConversation(conversation, NPC, Spawn, "Ohh... Well, um, I's still don't know nothing about that elf.")
  177. end
  178. function dlg_16_3(NPC, Spawn)
  179. FaceTarget(NPC, Spawn)
  180. conversation = CreateConversation()
  181. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  182. AddConversationOption(conversation, "Tell me where it is. You don't want me to ruin your business do you?", "dlg_16_4")
  183. AddConversationOption(conversation, "On second thought, I'll be going now.")
  184. 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.")
  185. end
  186. function dlg_16_4(NPC, Spawn)
  187. FaceTarget(NPC, Spawn)
  188. conversation = CreateConversation()
  189. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  190. AddConversationOption(conversation, "You've been helpful, thanks.", "dlg_16_5")
  191. 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.")
  192. end