9
3

flightpathisland4.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. --[[
  2. Script Name : SpawnScripts/Bonemire/flightpathisland4.lua
  3. Script Author : neatz09
  4. Script Date : 2021.01.17 06:01:36
  5. Script Purpose : handles the flight clouds in bonemire
  6. :
  7. --]]
  8. function respawn(NPC)
  9. spawn(NPC)
  10. end
  11. function casted_on(NPC, Spawn, Message)
  12. if Message == "Travel the Skies" then
  13. conversation = CreateConversation()
  14. AddConversationOption(conversation, "I would like to travel.", "dlg_1_1")
  15. AddConversationOption(conversation, "Nowhere.")
  16. StartConversation(conversation, NPC, Spawn, "Greetings traveler, how can I assist you today?")
  17. end
  18. end
  19. function dlg_1_1(NPC, Spawn)
  20. local con = CreateConversation()
  21. if GetSpawnLocationID(NPC) == 622550 then
  22. --Ravasect Isle--
  23. AddConversationOption(con, "To Dreadnever Crash Site.", "RavasectToDreadnever")
  24. elseif GetSpawnLocationID(NPC) == 622546 then
  25. --Dreadnever--
  26. AddConversationOption(con, "To Isle of Ravasect.", "DreadneverToRavasect")
  27. AddConversationOption(con, "To Shattered Weir.", "DreadneverToWeir")
  28. AddConversationOption(con, "To Halls of Fate.", "DreadneverToHalls")
  29. AddConversationOption(con, "Cacotoxic Stain.", "DreadneverToStain")
  30. AddConversationOption(con, "To Carrion Briar.", "DreadneverToCarrion")
  31. elseif GetSpawnLocationID(NPC) == 622594 then
  32. --Shattered Weir--
  33. AddConversationOption(con, "To Halls of Fate.", "WeirToFate")
  34. AddConversationOption(con, "To Dreadnever Crash Site.", "WeirToDreadnever")
  35. elseif GetSpawnLocationID(NPC) == 622566 then
  36. --Halls of Fate--
  37. AddConversationOption(con, "To Dreadnever Crash Site.", "HallsToDread")
  38. AddConversationOption(con, "To Shattered Weir.", "HallsToWeir")
  39. elseif GetSpawnLocationID(NPC) == 622559 then
  40. --Carrion Briar--
  41. AddConversationOption(con, "To Dreadnever Crash Site.", "CarrionToDreadnever")
  42. elseif GetSpawnLocationID(NPC) == 622555 then
  43. --Cacotoxic Stain--
  44. AddConversationOption(con, "To Dreadnever Crash Site.", "StainToDreadnever")
  45. else
  46. Say(NPC, Spawn, "Not Implemented.")
  47. end
  48. AddConversationOption(con, "Nowhere.")
  49. StartConversation(con, NPC, Spawn, "Where to?")
  50. end
  51. function RavasectToDreadnever(NPC, Spawn)
  52. StartAutoMount(Spawn, 812)
  53. SetMount(Spawn, 2306)
  54. end
  55. function DreadneverToRavasect(NPC, Spawn)
  56. StartAutoMount(Spawn, 808)
  57. SetMount(Spawn, 2306)
  58. end
  59. function DreadneverToWeir(NPC, Spawn)
  60. StartAutoMount(Spawn, 811)
  61. SetMount(Spawn, 2306)
  62. end
  63. function DreadneverToHalls(NPC, Spawn)
  64. StartAutoMount(Spawn, 807)
  65. SetMount(Spawn, 2306)
  66. end
  67. function DreadneverToStain(NPC, Spawn)
  68. StartAutoMount(Spawn, 809)
  69. SetMount(Spawn, 2306)
  70. end
  71. function DreadneverToCarrion(NPC, Spawn)
  72. StartAutoMount(Spawn, 810)
  73. SetMount(Spawn, 2306)
  74. end
  75. function WeirToFate(NPC, Spawn)
  76. StartAutoMount(Spawn, 816)
  77. SetMount(Spawn, 2306)
  78. end
  79. function WeirToDreadnever(NPC, Spawn)
  80. StartAutoMount(Spawn, 815)
  81. SetMount(Spawn, 2306)
  82. end
  83. function HallsToDread(NPC, Spawn)
  84. StartAutoMount(Spawn, 805)
  85. SetMount(Spawn, 2306)
  86. end
  87. function HallsToWeir(NPC, Spawn)
  88. StartAutoMount(Spawn, 806)
  89. SetMount(Spawn, 2306)
  90. end
  91. function CarrionToDreadnever(NPC, Spawn)
  92. StartAutoMount(Spawn, 814)
  93. SetMount(Spawn, 2306)
  94. end
  95. function StainToDreadnever(NPC, Spawn)
  96. StartAutoMount(Spawn, 813)
  97. SetMount(Spawn, 2306)
  98. end