9
3

agriffontamer.lua 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/astablemaster.lua
  3. Script Purpose : a griffon Tamer (2631033)
  4. Script Author : Neatz09
  5. Script Date : 4/14/2019
  6. Script Notes : Two Griffon Tamers in this script are actually NPCS, this script will include the paths for both of them.
  7. Butcherblock will also need to be setup at a later date.
  8. --]]
  9. function respawn(NPC)
  10. spawn(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. conversation = CreateConversation()
  15. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1042.mp3", "", "", 0, 0, Spawn)
  16. AddConversationOption(conversation, "I would like to travel.", "dlg_1_1")
  17. AddConversationOption(conversation, "Nowhere.")
  18. StartConversation(conversation, NPC, Spawn, "Greetings traveler, how can I assist you today?")
  19. end
  20. function dlg_1_1(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. local con = CreateConversation()
  23. if GetSpawnLocationID(NPC) == 52660 then
  24. AddConversationOption(con, "To Chrykori Island.", "GorowynToIsland")
  25. AddConversationOption(con, "To The Docks.", "GorowynToDocks")
  26. AddConversationOption(con, "To Mok Rent.", "GorowynToMok")
  27. elseif GetSpawnLocationID(NPC) == 50857 then
  28. AddConversationOption(con, "To Chrykori Island.", "VillageToIsland")
  29. AddConversationOption(con, "To The Docks.", "VillageToDocks")
  30. elseif GetSpawnLocationID(NPC) == 52659 then
  31. --50857 is NPC Zelchyk Gi'rul(Village) --
  32. AddConversationOption(con, "To Chrykori Island.", "MokToIsland")
  33. AddConversationOption(con, "To Gorowyn Beach.", "MokToGorowyn")
  34. elseif GetSpawnLocationID(NPC) == 52132 then
  35. --52132 is NPC Chelzyk Gi'rul(Docks)--
  36. --AddConversationOption(con, "To Butcherblock Mountains.", "DocksToBBM")--
  37. AddConversationOption(con, "Chrykori Village.", "DocksToVillage")
  38. AddConversationOption(con, "To Gorowyn Beach.", "DocksToGorowyn")
  39. elseif GetSpawnLocationID(NPC) == 52658 then
  40. AddConversationOption(con, "To Chrykori Village.", "IslandToVillage")
  41. AddConversationOption(con, "To Gorowyn Beach.", "IslandToGorowyn")
  42. AddConversationOption(con, "To Mok Rent.", "IslandToMok")
  43. else
  44. PlayFlavor(NPC, "", "Not implemented yet!", "cry", 0, 0, Spawn)
  45. end
  46. AddConversationOption(con, "Nowhere.")
  47. StartConversation(con, NPC, Spawn, "Where to?")
  48. end
  49. function GorowynToIsland(NPC, Spawn)
  50. StartAutoMount(Spawn, 201)
  51. SetMount(Spawn, 7742)
  52. end
  53. function GorowynToDocks(NPC, Spawn)
  54. StartAutoMount(spawn, 207)
  55. SetMount(Spawn, 7742)
  56. end
  57. function GorowynToMok(NPC, Spawn)
  58. StartAutoMount(Spawn, 200)
  59. SetMount(Spawn, 7742)
  60. end
  61. function VillageToIsland(NPC, Spawn)
  62. StartAutoMount(Spawn, 210)
  63. SetMount(Spawn, 7742)
  64. end
  65. function VillageToDocks(NPC, Spawn)
  66. StartAutoMount(Spawn, 222)
  67. SetMount(Spawn, 7742)
  68. end
  69. function MokToIsland(NPC, Spawn)
  70. StartAutoMount(Spawn, 202)
  71. SetMount(Spawn, 7742)
  72. end
  73. function MokToGorowyn(NPC, Spawn)
  74. StartAutoMount(Spawn, 199)
  75. SetMount(Spawn, 7742)
  76. end
  77. --function DocksToBBM(NPC, Spawn)
  78. --StartAutoMount(Spawn, 0)
  79. --SetMount(Spawn, 7742)
  80. --end
  81. function DocksToVillage(NPC, Spawn)
  82. StartAutoMount(Spawn, 206)
  83. SetMount(Spawn, 7742)
  84. end
  85. function DocksToGorowyn(NPC, Spawn)
  86. StartAutoMount(Spawn, 208)
  87. SetMount(Spawn, 7742)
  88. end
  89. function IslandToVillage(NPC, Spawn)
  90. StartAutoMount(Spawn, 209)
  91. SetMount(Spawn, 7742)
  92. end
  93. function IslandToGorowyn(NPC, Spawn)
  94. StartAutoMount(Spawn, 195)
  95. SetMount(Spawn, 7742)
  96. end
  97. function IslandToMok(NPC, Spawn)
  98. StartAutoMount(Spawn, 211)
  99. SetMount(Spawn, 7742)
  100. end