9
3

agriffintamer.lua 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. --[[
  2. Script Name : SpawnScripts/ThunderingSteppes/agriffontamer.lua
  3. Script Purpose : a griffon tamer (2490000)
  4. Script Author : Jabantiz
  5. Script Date : 2014.07.14
  6. Script Notes :
  7. --]]
  8. local GriffonEggs = 112
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, GriffonEggs)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. if CanReceiveQuest(Spawn, GriffonEggs) then
  19. -- Start Quest
  20. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1052.mp3", "", "", 0, 0, Spawn)
  21. AddConversationOption(conversation, "I was wondering if there were any errands you needed help with.", "dlg_0_1")
  22. AddConversationOption(conversation, "I would like to travel.", "dlg_1_1")
  23. AddConversationOption(conversation, "I am fine staying here, thanks.")
  24. StartConversation(conversation, NPC, Spawn, "Greetings traveler, how can I assist you today?")
  25. elseif GetQuestStep(Spawn, GriffonEggs) == 2 then
  26. -- Turn in the quest
  27. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", "", "", 0, 0, Spawn)
  28. SetStepComplete(Spawn, GriffonEggs, 2)
  29. AddConversationOption(conversation, "I hope she grows up healthy and strong!")
  30. StartConversation(conversation, NPC, Spawn, "Oh, my, that's a gorgeous egg! Let me just put it down right over here. Our thanks, it's going to be rough for the handlers to raise all these!")
  31. else
  32. -- Finished Quest
  33. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1042.mp3", "", "", 0, 0, Spawn)
  34. AddConversationOption(conversation, "I would like to travel.", "dlg_1_1")
  35. AddConversationOption(conversation, "Nowhere.")
  36. StartConversation(conversation, NPC, Spawn, "Greetings traveler, how can I assist you today?")
  37. end
  38. end
  39. function dlg_0_1(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. conversation = CreateConversation()
  42. AddConversationOption(conversation, "They certainly have. These look very sturdy, but I don't see many griffins about.", "dlg_0_2")
  43. StartConversation(conversation, NPC, Spawn, "It's been a real treat watching this tower be built by all the artisans. They've done a marvelous job getting it ready for our flying friends.")
  44. end
  45. function dlg_0_2(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. AddConversationOption(conversation, "So if you had some more griffons, the scheduling would be better?", "dlg_0_3")
  49. AddConversationOption(conversation, "This sounds like a scheduling problem I don't want anything to do with.")
  50. StartConversation(conversation, NPC, Spawn, "These towers were built very fast, and we were unable to get the griffin stock up to what it should be. This has made scheduling flights very difficult.")
  51. end
  52. function dlg_0_3(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. AddConversationOption(conversation, "Sure, sounds like a deal.", "dlg_0_4")
  56. StartConversation(conversation, NPC, Spawn, "Oh, certainly. But they've got to be trained properly from birth, really. I'll tell you what, if you grab an unhatched griffin egg and return it to any of us tamers, you will be rewarded handsomely. How's that sound?")
  57. end
  58. function dlg_0_4(NPC, Spawn)
  59. OfferQuest(NPC, Spawn, GriffonEggs)
  60. end
  61. function dlg_1_1(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. local con = CreateConversation()
  64. if GetSpawnLocationID(NPC) == 1214217 then
  65. AddConversationOption(con, "To Antonica Gates.", "DocksToAnt")
  66. AddConversationOption(con, "To South East Station.", "DocksToSE")
  67. AddConversationOption(con, "To Coldwind.", "DocksToCold")
  68. AddConversationOption(con, "To Thundermist Village.", "DocksToThundermist")
  69. elseif GetSpawnLocationID(NPC) == 1214218 then
  70. AddConversationOption(con, "To Antonica Gate.", "SEToAnt")
  71. AddConversationOption(con, "To Coldwind.", "SEToCold")
  72. AddConversationOption(con, "To Thundermist Village.", "SEToThundermist")
  73. AddConversationOption(con, "To Docks.", "SEToDocks")
  74. elseif GetSpawnLocationID(NPC) == 1214219 then
  75. AddConversationOption(con, "To Thundermist Village.", "AntToThundermist")
  76. AddConversationOption(con, "To South East Station.", "AntToSE")
  77. AddConversationOption(con, "To Coldwind.", "AntToCold")
  78. elseif GetSpawnLocationID(NPC) == 1214220 then
  79. AddConversationOption(con, "To Thundermist Village.", "ColdToThundermist")
  80. AddConversationOption(con, "To South East Station.", "ColdToSE")
  81. AddConversationOption(con, "To Antonica Gate.", "ColdToAnt")
  82. AddConversationOption(con, "To Docks.", "ColdToDocks")
  83. elseif GetSpawnLocationID(NPC) == 1214221 then
  84. AddConversationOption(con, "To Antonica Gate.", "ThundermistToAnt")
  85. AddConversationOption(con, "To Coldwind.", "ThundermistToCold")
  86. AddConversationOption(con, "To South East Station.", "ThundermistToSE")
  87. AddConversationOption(con, "To Docks.", "ThundermistToDocks")
  88. else
  89. PlayFlavor(NPC, "", "Not implemented yet!", "cry", 0, 0, Spawn)
  90. end
  91. AddConversationOption(con, "Nowhere.")
  92. StartConversation(con, NPC, Spawn, "Where to?")
  93. end
  94. function DocksToAnt(NPC, Spawn)
  95. StartAutoMount(Spawn, 16)
  96. SetMount(Spawn, 225)
  97. end
  98. function DocksToSE(NPC, Spawn)
  99. StartAutoMount(Spawn, 15)
  100. SetMount(Spawn, 225)
  101. end
  102. function DocksToCold(NPC, Spawn)
  103. StartAutoMount(Spawn, 14)
  104. SetMount(Spawn, 225)
  105. end
  106. function DocksToThundermist(NPC, Spawn)
  107. StartAutoMount(Spawn, 13)
  108. SetMount(Spawn, 225)
  109. end
  110. function SEToAnt(NPC, Spawn)
  111. StartAutoMount(Spawn, 4)
  112. SetMount(Spawn, 225)
  113. end
  114. function SEToCold(NPC, Spawn)
  115. StartAutoMount(Spawn, 7)
  116. SetMount(Spawn, 225)
  117. end
  118. function SEToThundermist(NPC, Spawn)
  119. StartAutoMount(Spawn, 12)
  120. SetMount(Spawn, 225)
  121. end
  122. function SEToDocks(NPC, Spawn)
  123. StartAutoMount(Spawn, 18)
  124. SetMount(Spawn, 225)
  125. end
  126. function AntToThundermist(NPC, Spawn)
  127. StartAutoMount(Spawn, 1)
  128. SetMount(Spawn, 225)
  129. end
  130. function AntToSE(NPC, Spawn)
  131. StartAutoMount(Spawn, 3)
  132. SetMount(Spawn, 225)
  133. end
  134. function AntToCold(NPC, Spawn)
  135. StartAutoMount(Spawn, 10)
  136. SetMount(Spawn, 225)
  137. end
  138. function ColdToThundermist(NPC, Spawn)
  139. StartAutoMount(Spawn, 6)
  140. SetMount(Spawn, 225)
  141. end
  142. function ColdToSE(NPC, Spawn)
  143. StartAutoMount(Spawn, 8)
  144. SetMount(Spawn, 225)
  145. end
  146. function ColdToAnt(NPC, Spawn)
  147. StartAutoMount(Spawn, 11)
  148. SetMount(Spawn, 225)
  149. end
  150. function ColdToDocks(NPC, Spawn)
  151. StartAutoMount(Spawn, 19)
  152. SetMount(Spawn, 225)
  153. end
  154. function ThundermistToAnt(NPC, Spawn)
  155. StartAutoMount(Spawn, 2)
  156. SetMount(Spawn, 225)
  157. end
  158. function ThundermistToCold(NPC, Spawn)
  159. StartAutoMount(Spawn, 5)
  160. SetMount(Spawn, 225)
  161. end
  162. function ThundermistToSE(NPC, Spawn)
  163. StartAutoMount(Spawn, 9)
  164. SetMount(Spawn, 225)
  165. end
  166. function ThundermistToDocks(NPC, Spawn)
  167. StartAutoMount(Spawn, 17)
  168. SetMount(Spawn, 225)
  169. end
  170. --[[ raw_conversations
  171. PlayFlavor(NPC, "", "Fun, fun, fun! This big old tower, built for griffons, and yet... there just don't seem to be any around. Thinking about helping us out?", "", 1689589577, 4560189, Spawn)
  172. PlayFlavor(NPC, "", "You can scramble 'em, boil 'em, fry 'em... oh, wait... were we talking about griffon eggs or chicken eggs?", "", 1689589577, 4560189, Spawn)
  173. PlayFlavor(NPC, "", "I say... you haven't seen any griffon eggs around, have you? We sure could use some!", "", 1689589577, 4560189, Spawn)
  174. --]]