9
3

anomadiccarpetkeeper.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : SpawnScripts/SinkingSands/anomadiccarpetkeeper.lua
  3. Script Author : premierio015
  4. Script Date : 2023.12.15 10:12:23
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. Dialog.New(NPC, Spawn)
  14. Dialog.AddDialog("Greetings traveler, how can I assist you today?")
  15. Dialog.AddOption("I would like to travel.", "travel")
  16. Dialog.AddOption("Nowhere.")
  17. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_2_1042.mp3", 0, 0)
  18. Dialog.Start()
  19. end
  20. function travel(NPC, Spawn)
  21. Dialog.New(NPC, Spawn)
  22. Dialog.AddDialog("Where to?")
  23. if GetSpawnLocationID(NPC) == 305698 then
  24. Dialog.AddOption("To Twin Tear's.", "PortOfTearsToTwinTears")
  25. Dialog.AddOption("To Onerock Isle.", "PortOfTearsToOnerockIsle")
  26. elseif GetSpawnLocationID(NPC) == 305699 then
  27. Dialog.AddOption("To Port of Tear's.", "TwinTearsToPortOfTears")
  28. elseif GetSpawnLocationID(NPC) == 1586028 then
  29. Dialog.AddOption("To Port of Tear's.", "UndercityArenaToPortOfTears")
  30. end
  31. Dialog.AddOption("Nowhere.")
  32. Dialog.Start()
  33. end
  34. function PortOfTearsToTwinTears(NPC, Spawn)
  35. StartAutoMount(Spawn, 540) -- To Twin Tears
  36. SetMount(Spawn, 1369)
  37. end
  38. function PortOfTearsToOnerockIsle(NPC, Spawn)
  39. StartAutoMount(Spawn, 539) -- To Onerock Isle
  40. SetMount(Spawn, 1369)
  41. end
  42. function TwinTearsToPortOfTears(NPC, Spawn)
  43. StartAutoMount(Spawn, 543) -- To Port of Tears
  44. SetMount(Spawn, 1369)
  45. end
  46. function UndercityArenaToPortOfTears(NPC, Spawn)
  47. StartAutoMount(Spawn, 544) -- To Port of Tears
  48. SetMount(Spawn, 1369)
  49. end
  50. function respawn(NPC)
  51. spawn(NPC)
  52. end