9
3

agriffontamer.lua 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. --[[
  2. Script Name : SpawnScripts/Butcherblock/agriffintamer.lua
  3. Script Purpose : a griffin tamer (1080164)
  4. Script Author : Neatz09
  5. Script Date : 4/17/2019
  6. Script Notes :
  7. --]]
  8. function respawn(NPC)
  9. spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. conversation = CreateConversation()
  14. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1042.mp3", "", "", 0, 0, Spawn)
  15. AddConversationOption(conversation, "I would like to travel.", "dlg_1_1")
  16. AddConversationOption(conversation, "Nowhere.")
  17. StartConversation(conversation, NPC, Spawn, "Greetings traveler, how can I assist you today?")
  18. end
  19. function dlg_1_1(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. local con = CreateConversation()
  22. if GetSpawnLocationID(NPC) == 72449 then
  23. --Docks--
  24. AddConversationOption(con, "To Greater Faydark.", "DocksToGFay")
  25. AddConversationOption(con, "To The Highland Station.", "DocksToHigh")
  26. AddConversationOption(con, "To Lesser Faydark.", "DocksToLFay")
  27. elseif GetSpawnLocationID(NPC) == 1586031 then
  28. --Greater Faydark--
  29. AddConversationOption(con, "To The Docks.", "GfayToDocks")
  30. AddConversationOption(con, "To The Highland Station.", "GFayToHigh")
  31. AddConversationOption(con, "To Lesser Faydark.", "GfayToLFay")
  32. elseif GetSpawnLocationID(NPC) == 72602 then
  33. --Highland--
  34. AddConversationOption(con, "To The Docks.", "HighToDocks")
  35. elseif GetSpawnLocationID(NPC) == 72601 then
  36. --Lesser Faydark--
  37. AddConversationOption(con, "To The Docks.", "LFayToDocks")
  38. AddConversationOption(con, "To Greater Faydark.", "LFayToGFay")
  39. AddConversationOption(con, "To The Highland Station.", "LFayToHigh")
  40. else
  41. PlayFlavor(NPC, "", "Not implemented yet!", "cry", 0, 0, Spawn)
  42. end
  43. AddConversationOption(con, "Nowhere.")
  44. StartConversation(con, NPC, Spawn, "Where to?")
  45. end
  46. function DocksToGFay(NPC, Spawn)
  47. StartAutoMount(Spawn, 241)
  48. SetMount(Spawn, 225)
  49. end
  50. function DocksToHigh(NPC, Spawn)
  51. StartAutoMount(Spawn, 238)
  52. SetMount(Spawn, 225)
  53. end
  54. function DocksToLFay(NPC, Spawn)
  55. StartAutoMount(Spawn, 242)
  56. SetMount(Spawn, 225)
  57. end
  58. function GfayToDocks(NPC, Spawn)
  59. StartAutoMount(Spawn, 231)
  60. SetMount(Spawn, 225)
  61. end
  62. function GFayToHigh(NPC, Spawn)
  63. StartAutoMount(Spawn, 232)
  64. SetMount(Spawn, 225)
  65. end
  66. function GfayToLFay(NPC, Spawn)
  67. StartAutoMount(Spawn, 243)
  68. SetMount(Spawn, 225)
  69. end
  70. function HighToDocks(NPC, Spawn)
  71. StartAutoMount(Spawn, 228)
  72. SetMount(Spawn, 225)
  73. end
  74. function LFayToDocks(NPC, Spawn)
  75. StartAutoMount(Spawn, 240)
  76. SetMount(Spawn, 225)
  77. end
  78. function LFayToGFay(NPC, Spawn)
  79. StartAutoMount(Spawn, 239)
  80. SetMount(Spawn, 225)
  81. end
  82. function LFayToHigh(NPC, Spawn)
  83. StartAutoMount(Spawn, 233)
  84. SetMount(Spawn, 225)
  85. end
  86. --[[Replaced script
  87. Script Name : SpawnScripts/Butcherblock/agriffintamer.lua
  88. Script Purpose : a griffin tamer
  89. Script Author : jakejp
  90. Script Date : 2018.06.01
  91. Script Notes : Auto-Generated Conversation from PacketParser Data
  92. local GriffinStationsButcherblock = 269
  93. function spawn(NPC)
  94. ProvidesQuest(NPC, GriffinStationsButcherblock)
  95. end
  96. function respawn(NPC)
  97. spawn(NPC)
  98. end
  99. function hailed(NPC, Spawn)
  100. FaceTarget(NPC, Spawn)
  101. conversation = CreateConversation()
  102. if CanReceiveQuest(Spawn, GriffinStationsButcherblock) then
  103. -- Start Quest
  104. -- PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1042.mp3", "", "", 0, 0, Spawn)
  105. AddConversationOption(conversation, "I would like to travel.", "dlg_4_1")
  106. AddConversationOption(conversation, "I am fine staying here, thanks.")
  107. StartConversation(conversation, NPC, Spawn, "Greetings traveler, how can I assist you today?")
  108. elseif HasQuest(Spawn, GriffinStationsButcherblock) and GetQuestStep(Spawn, GriffinStationsButcherblock) < 3 then
  109. -- Still on quest
  110. Say(NPC, "Did you discover all of the routes yet?")
  111. elseif HasCompletedQuest(Spawn, GriffinStationsButcherblock) then
  112. -- Finished Quest
  113. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1042.mp3", "", "", 0, 0, Spawn)
  114. AddConversationOption(conversation, "I would like to travel.", "dlg_1_1")
  115. AddConversationOption(conversation, "Nowhere.")
  116. StartConversation(conversation, NPC, Spawn, "Greetings traveler, how can I assist you today?")
  117. end
  118. end
  119. function dlg_4_1(NPC, Spawn)
  120. FaceTarget(NPC, Spawn)
  121. conversation = CreateConversation()
  122. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  123. AddConversationOption(conversation, "That makes sense.", "GiveGriffinStationsButcherblock")
  124. StartConversation(conversation, NPC, Spawn, "Well, before I can send you off you must discover the routes for yourself. There are stations near the docks, Greater Faydark and Lesser Faydark. Once you map the location of each you can borrow one of our griffons. We have to be sure you won't get lost up there.")
  125. end
  126. function GiveGriffinStationsButcherblock(NPC, Spawn)
  127. OfferQuest(NPC, Spawn, GriffinStationsButcherblock)
  128. end--]]