9
3

anomadiccarpetkeeper.lua 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. --[[
  2. Script Name : SpawnScripts/PillarsFlame/anomadiccarpetkeeper.lua
  3. Script Purpose : A Nomadic Carpet Keeper (700148)
  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 spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. conversation = CreateConversation()
  16. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1042.mp3", "", "", 0, 0, Spawn)
  17. AddConversationOption(conversation, "I would like to travel.", "dlg_1_1")
  18. AddConversationOption(conversation, "Nowhere.")
  19. StartConversation(conversation, NPC, Spawn, "Greetings traveler, how can I assist you today?")
  20. end
  21. function dlg_1_1(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. local con = CreateConversation()
  24. if GetSpawnLocationID(NPC) == 584677 then
  25. --Giant's Field--
  26. AddConversationOption(con, "To Prophet's Peak", "FieldToPeak")
  27. AddConversationOption(con, "To Stinging Isle.", "FieldToIsle")
  28. AddConversationOption(con, "To Swiftrider's Caravan.", "FieldToSwift")
  29. AddConversationOption(con, "To T'Narev.", "FieldToNarev")
  30. elseif GetSpawnLocationID(NPC) == 584675 then
  31. --Prophet's Peak--
  32. AddConversationOption(con, "To Giant's Field.", "PeakToField")
  33. AddConversationOption(con, "To Stinging Isle.", "PeakToIsle")
  34. AddConversationOption(con, "To Swiftrider's Caravan.", "PeakToSwift")
  35. AddConversationOption(con, "To T'Narev.", "PeakToNarev")
  36. elseif GetSpawnLocationID(NPC) == 584676 then
  37. --Stinging Isle--
  38. AddConversationOption(con, "To Giant's Field.", "IsleToField")
  39. AddConversationOption(con, "To Prophet's Peak.", "IsleToPeak")
  40. AddConversationOption(con, "To Swiftrider's Caravan.", "IsleToSwift")
  41. AddConversationOption(con, "To T'Narev.", "IsleToNarev")
  42. elseif GetSpawnLocationID(NPC) == 584673 then
  43. --Swiftrider's Caravan--
  44. AddConversationOption(con, "To Giant's Field.", "SwiftToField")
  45. AddConversationOption(con, "To Prophet's Peak.", "SwiftToPeak")
  46. AddConversationOption(con, "To Stinging Isle.", "SwiftToIsle")
  47. AddConversationOption(con, "To T'Narev.", "SwiftToNarev")
  48. elseif GetSpawnLocationID(NPC) == 584674 then
  49. --T'Narev--
  50. AddConversationOption(con, "To Giant's Field.", "NarevToField")
  51. AddConversationOption(con, "To Prophet's Peak.", "NarevToPeak")
  52. AddConversationOption(con, "To Stinging Isle.", "NarevToIsle")
  53. AddConversationOption(con, "To Swiftrider's Caravan.", "NarevToSwift")
  54. else
  55. PlayFlavor(NPC, "", "Not implemented yet!", "cry", 0, 0, Spawn)
  56. end
  57. AddConversationOption(con, "Nowhere.")
  58. StartConversation(con, NPC, Spawn, "Where to?")
  59. end
  60. function FieldToPeak(NPC, Spawn)
  61. StartAutoMount(Spawn, 738)
  62. SetMount(Spawn, 1369)
  63. end
  64. function FieldToIsle(NPC, Spawn)
  65. StartAutoMount(Spawn, 740)
  66. SetMount(Spawn, 1369)
  67. end
  68. function FieldToSwift(NPC, Spawn)
  69. StartAutoMount(Spawn, 732)
  70. SetMount(Spawn, 1369)
  71. end
  72. function FieldToNarev(NPC, Spawn)
  73. StartAutoMount(Spawn, 739)
  74. SetMount(Spawn, 1369)
  75. end
  76. function PeakToField(NPC, Spawn)
  77. StartAutoMount(Spawn, 742)
  78. SetMount(Spawn, 1369)
  79. end
  80. function PeakToIsle(NPC, Spawn)
  81. StartAutoMount(Spawn, 743)
  82. SetMount(Spawn, 1369)
  83. end
  84. function PeakToSwift(NPC, Spawn)
  85. StartAutoMount(Spawn, 734)
  86. SetMount(Spawn, 1369)
  87. end
  88. function PeakToNarev(NPC, Spawn)
  89. StartAutoMount(Spawn, 741)
  90. SetMount(Spawn, 1369)
  91. end
  92. function IsleToField(NPC, Spawn)
  93. StartAutoMount(Spawn, 745)
  94. SetMount(Spawn, 1369)
  95. end
  96. function IsleToPeak(NPC, Spawn)
  97. StartAutoMount(Spawn, 746)
  98. SetMount(Spawn, 1369)
  99. end
  100. function IsleToSwift(NPC, Spawn)
  101. StartAutoMount(Spawn, 733)
  102. SetMount(Spawn, 1369)
  103. end
  104. function IsleToNarev(NPC, Spawn)
  105. StartAutoMount(Spawn, 744)
  106. SetMount(Spawn, 1369)
  107. end
  108. function SwiftToField(NPC, Spawn)
  109. StartAutoMount(Spawn, 728)
  110. SetMount(Spawn, 1369)
  111. end
  112. function SwiftToPeak(NPC, Spawn)
  113. StartAutoMount(Spawn, 730)
  114. SetMount(Spawn, 1369)
  115. end
  116. function SwiftToIsle(NPC, Spawn)
  117. StartAutoMount(Spawn, 729)
  118. SetMount(Spawn, 1369)
  119. end
  120. function SwiftToNarev(NPC, Spawn)
  121. StartAutoMount(Spawn, 727)
  122. SetMount(Spawn, 1369)
  123. end
  124. function NarevToField(NPC, Spawn)
  125. StartAutoMount(Spawn, 735)
  126. SetMount(Spawn, 1369)
  127. end
  128. function NarevToPeak(NPC, Spawn)
  129. StartAutoMount(Spawn, 736)
  130. SetMount(Spawn, 1369)
  131. end
  132. function NarevToIsle(NPC, Spawn)
  133. StartAutoMount(Spawn, 737)
  134. SetMount(Spawn, 1369)
  135. end
  136. function NarevToSwift(NPC, Spawn)
  137. StartAutoMount(Spawn, 731)
  138. SetMount(Spawn, 1369)
  139. end