9
3

FlightCloud.lua.tmp 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. --[[
  2. Script Name : SpawnScripts/PillarsFlame/FlightCloud.lua
  3. Script Purpose : Tenebrous Tangle Flight Cloud (880048)
  4. Script Author : Neatz09
  5. Script Date : 4/22/2019
  6. Script Notes :
  7. --]]
  8. function hailed(NPC, Spawn)
  9. conversation = CreateConversation()
  10. AddConversationOption(conversation, "I would like to travel.", "dlg_1_1")
  11. AddConversationOption(conversation, "Nowhere.")
  12. StartConversation(conversation, NPC, Spawn, "Greetings traveler, how can I assist you today?")
  13. end
  14. function dlg_1_1(NPC, Spawn)
  15. local con = CreateConversation()
  16. if GetSpawnLocationID(NPC) == 622752 then
  17. --Ravasect Incursion--
  18. AddConversationOption(con, "To Bixie Isle.", "RavToBixie")
  19. AddConversationOption(con, "To Gazer Isle.", "RavToGazer")
  20. AddConversationOption(con, "To Temple Grounds.", "RavToTemple")
  21. elseif GetSpawnLocationID(NPC) == 662668 then
  22. --Vultak Scavenging Site--
  23. AddConversationOption(con, "To Fear Tainted Isle.", "VulToFear")
  24. AddConversationOption(con, "To Halls Landing.", "VulToHalls")
  25. elseif GetSpawnLocationID(NPC) == 622666 then
  26. --Halls Landing--
  27. AddConversationOption(con, "To Vultak Scavenging Site.", "HallsToVul")
  28. elseif GetSpawnLocationID(NPC) == 622758 then
  29. --Hidden Refuge--
  30. AddConversationOption(con, "To Tenebrous Landing.", "RefToTen")
  31. AddConversationOption(con, "To Vicious Breeding Grounds.", "RefToVic")
  32. elseif GetSpawnLocationID(NPC) == 622755 then
  33. --Bixie Isle--
  34. AddConversationOption(con, "To Ravasect Incursion.", "BixieToRav")
  35. AddConversationOption(con, "To Temple Grounds.", "BixieToTemp")
  36. elseif GetSpawnLocationID(NPC) == 622756 then
  37. --Temple Grounds--
  38. AddConversationOption(con, "To Bixie Isle.", "TempToBixie")
  39. AddConversationOption(con, "To Ravasect Incursion.", "TempToRav")
  40. elseif GetSpawnLocationID(NPC) == 622757 then
  41. --Sanctum Landing--
  42. AddConversationOption(con, "To Gazer Isle.", "SancToGazer")
  43. elseif GetSpawnLocationID(NPC) == 622750 then
  44. --Gazer Isle--
  45. AddConversationOption(con, "To Fear Tainted Isle.", "GazerToFear")
  46. AddConversationOption(con, "To Ravasect Incursion.", "GazerToRav")
  47. AddConversationOption(con, "To Sanctum Landing.", "GazerToSanc")
  48. elseif GetSpawnLocationID(NPC) == 622623 then
  49. --Fear Tainted Isle--
  50. AddConversationOption(con, "To Gazer Isle.", "FearToGazer")
  51. AddConversationOption(con, "To Vultak Scavenging Site.", "FearToVul")
  52. elseif GetSpawnLocationID(NPC) == 622748 then
  53. --Viscious Breeding Grounds--
  54. AddConversationOption(con, "To Hidden Refuge.", "VicToRef")
  55. end
  56. AddConversationOption(con, "Nowhere.")
  57. StartConversation(con, NPC, Spawn, "Where to?")
  58. end
  59. function RavToBixie(NPC, Spawn)
  60. StartAutoMount(Spawn, 749)
  61. SetMount(Spawn, 1369)
  62. end
  63. function RavToGazer(NPC, Spawn)
  64. StartAutoMount(Spawn, 748)
  65. SetMount(Spawn, 1369)
  66. end
  67. function RavToTemple(NPC, Spawn)
  68. StartAutoMount(Spawn, 747)
  69. SetMount(Spawn, 1369)
  70. end
  71. function VulToFear(NPC, Spawn)
  72. StartAutoMount(Spawn, 751)
  73. SetMount(Spawn, 1369)
  74. end
  75. function VulToHalls(NPC, Spawn)
  76. StartAutoMount(Spawn, 750)
  77. SetMount(Spawn, 1369)
  78. end
  79. function HallsToVul(NPC, Spawn)
  80. StartAutoMount(Spawn, 755)
  81. SetMount(Spawn, 1369)
  82. end
  83. function RefToTen(NPC, Spawn)
  84. StartAutoMount(Spawn, 765)
  85. SetMount(Spawn, 1369)
  86. end
  87. function RefToVic(NPC, Spawn)
  88. StartAutoMount(Spawn, 761)
  89. SetMount(Spawn, 1369)
  90. end
  91. function BixieToRav(NPC, Spawn)
  92. StartAutoMount(Spawn, 760)
  93. SetMount(Spawn, 1369)
  94. end
  95. function BixieToTemp(NPC, Spawn)
  96. StartAutoMount(Spawn, 759)
  97. SetMount(Spawn, 1369)
  98. end
  99. function TempToBixie(NPC, Spawn)
  100. StartAutoMount(Spawn, 753)
  101. SetMount(Spawn, 1369)
  102. end
  103. function TempToRav(NPC, Spawn)
  104. StartAutoMount(Spawn, 754)
  105. SetMount(Spawn, 1369)
  106. end
  107. function SancToGazer(NPC, Spawn)
  108. StartAutoMount(Spawn, 752)
  109. SetMount(Spawn, 1369)
  110. end
  111. function GazerToFear(NPC, Spawn)
  112. StartAutoMount(Spawn, 763)
  113. SetMount(Spawn, 1369)
  114. end
  115. function GazerToRav(NPC, Spawn)
  116. StartAutoMount(Spawn, 757)
  117. SetMount(Spawn, 1369)
  118. end
  119. function GazerToSanc(NPC, Spawn)
  120. StartAutoMount(Spawn, 756)
  121. SetMount(Spawn, 1369)
  122. end
  123. function FearToGazer(NPC, Spawn)
  124. StartAutoMount(Spawn, 763)
  125. SetMount(Spawn, 1369)
  126. end
  127. function FearToVul(NPC, Spawn)
  128. StartAutoMount(Spawn, 758)
  129. SetMount(Spawn, 1369)
  130. end
  131. function VicToRef(NPC, Spawn)
  132. StartAutoMount(Spawn, 762)
  133. SetMount(Spawn, 1369)
  134. end