9
3

anomadiccarpetkeeper.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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 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) == 584677 then
  23. --Giant's Field--
  24. AddConversationOption(con, "To Prophet's Peak", "FieldToPeak")
  25. AddConversationOption(con, "To Stinging Isle.", "FieldToIsle")
  26. AddConversationOption(con, "To Swiftrider's Caravan.", "FieldToSwift")
  27. AddConversationOption(con, "To T'Narev.", "FieldToNarev")
  28. elseif GetSpawnLocationID(NPC) == 584675 then
  29. --Prophet's Peak--
  30. AddConversationOption(con, "To Giant's Field.", "PeakToField")
  31. AddConversationOption(con, "To Stinging Isle.", "PeakToIsle")
  32. AddConversationOption(con, "To Swiftrider's Caravan.", "PeakToSwift")
  33. AddConversationOption(con, "To T'Narev.", "PeakToNarev")
  34. elseif GetSpawnLocationID(NPC) == 584676 then
  35. --Stinging Isle--
  36. AddConversationOption(con, "To Giant's Field.", "IsleToField")
  37. AddConversationOption(con, "To Prophet's Peak.", "IsleToPeak")
  38. AddConversationOption(con, "To Swiftrider's Caravan.", "IsleToSwift")
  39. AddConversationOption(con, "To T'Narev.", "IsleToNarev")
  40. elseif GetSpawnLocationID(NPC) == 584673 then
  41. --Swiftrider's Caravan--
  42. AddConversationOption(con, "To Giant's Field.", "SwiftToField")
  43. AddConversationOption(con, "To Prophet's Peak.", "SwiftToPeak")
  44. AddConversationOption(con, "To Stinging Isle.", "SwiftToIsle")
  45. AddConversationOption(con, "To T'Narev.", "SwiftToNarev")
  46. elseif GetSpawnLocationID(NPC) == 584674 then
  47. --T'Narev--
  48. AddConversationOption(con, "To Giant's Field.", "NarevToField")
  49. AddConversationOption(con, "To Prophet's Peak.", "NarevToPeak")
  50. AddConversationOption(con, "To Stinging Isle.", "NarevToIsle")
  51. AddConversationOption(con, "To Swiftrider's Caravan.", "NarevToSwift")
  52. else
  53. PlayFlavor(NPC, "", "Not implemented yet!", "cry", 0, 0, Spawn)
  54. end
  55. AddConversationOption(con, "Nowhere.")
  56. StartConversation(con, NPC, Spawn, "Where to?")
  57. end
  58. function FieldToPeak(NPC, Spawn)
  59. StartAutoMount(Spawn, 738)
  60. SetMount(Spawn, 1369)
  61. end
  62. function FieldToIsle(NPC, Spawn)
  63. StartAutoMount(Spawn, 740)
  64. SetMount(Spawn, 1369)
  65. end
  66. function FieldToSwift(NPC, Spawn)
  67. StartAutoMount(Spawn, 732)
  68. SetMount(Spawn, 1369)
  69. end
  70. function FieldToNarev(NPC, Spawn)
  71. StartAutoMount(Spawn, 739)
  72. SetMount(Spawn, 1369)
  73. end
  74. function PeakToField(NPC, Spawn)
  75. StartAutoMount(Spawn, 742)
  76. SetMount(Spawn, 1369)
  77. end
  78. function PeakToIsle(NPC, Spawn)
  79. StartAutoMount(Spawn, 743)
  80. SetMount(Spawn, 1369)
  81. end
  82. function PeakToSwift(NPC, Spawn)
  83. StartAutoMount(Spawn, 734)
  84. SetMount(Spawn, 1369)
  85. end
  86. function PeakToNarev(NPC, Spawn)
  87. StartAutoMount(Spawn, 741)
  88. SetMount(Spawn, 1369)
  89. end
  90. function IsleToField(NPC, Spawn)
  91. StartAutoMount(Spawn, 745)
  92. SetMount(Spawn, 1369)
  93. end
  94. function IsleToPeak(NPC, Spawn)
  95. StartAutoMount(Spawn, 746)
  96. SetMount(Spawn, 1369)
  97. end
  98. function IsleToSwift(NPC, Spawn)
  99. StartAutoMount(Spawn, 733)
  100. SetMount(Spawn, 1369)
  101. end
  102. function IsleToNarev(NPC, Spawn)
  103. StartAutoMount(Spawn, 744)
  104. SetMount(Spawn, 1369)
  105. end
  106. function SwiftToField(NPC, Spawn)
  107. StartAutoMount(Spawn, 728)
  108. SetMount(Spawn, 1369)
  109. end
  110. function SwiftToPeak(NPC, Spawn)
  111. StartAutoMount(Spawn, 730)
  112. SetMount(Spawn, 1369)
  113. end
  114. function SwiftToIsle(NPC, Spawn)
  115. StartAutoMount(Spawn, 729)
  116. SetMount(Spawn, 1369)
  117. end
  118. function SwiftToNarev(NPC, Spawn)
  119. StartAutoMount(Spawn, 727)
  120. SetMount(Spawn, 1369)
  121. end
  122. function NarevToField(NPC, Spawn)
  123. StartAutoMount(Spawn, 735)
  124. SetMount(Spawn, 1369)
  125. end
  126. function NarevToPeak(NPC, Spawn)
  127. StartAutoMount(Spawn, 736)
  128. SetMount(Spawn, 1369)
  129. end
  130. function NarevToIsle(NPC, Spawn)
  131. StartAutoMount(Spawn, 737)
  132. SetMount(Spawn, 1369)
  133. end
  134. function NarevToSwift(NPC, Spawn)
  135. StartAutoMount(Spawn, 731)
  136. SetMount(Spawn, 1369)
  137. end