agriffontamer.lua 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/agriffontamer.lua
  3. Script Purpose : a griffin tamer (330209)
  4. Script Author : Neatz09
  5. Script Date : 2/5/2019
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. conversation = CreateConversation()
  16. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1052.mp3", "", "", 0, 0, Spawn)
  17. AddConversationOption(conversation, "I would like to travel.", "dlg_1_1")
  18. AddConversationOption(conversation, "I am fine staying here, thanks.")
  19. StartConversation(conversation, NPC, Spawn, "Greetings traveler, how can I assist you today?")
  20. end
  21. function dlg_1_1(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. local con = CreateConversation()
  24. if GetSpawnLocationID(NPC) == 295729 then
  25. AddConversationOption(con, "To Freeport Station.", "NekToFreeport")
  26. AddConversationOption(con, "To Hidden Canyon Station.", "NekToCanyon")
  27. elseif GetSpawnLocationID(NPC) == 295727 then
  28. AddConversationOption(con, "To Hidden Canyon Station.", "FreeportToCanyon")
  29. AddConversationOption(con, "To Nektulos Forest Staion", "FreeportToNek")
  30. elseif GetSpawnLocationID(NPC) == 295728 then
  31. AddConversationOption(con, "To Freeport Station.", "CanyonToFreeport")
  32. AddConversationOption(con, "To Nektulos Station.", "CanyonToNek")
  33. else
  34. PlayFlavor(NPC, "", "Not implemented yet!", "cry", 0, 0, Spawn)
  35. end
  36. AddConversationOption(con, "Nowhere.")
  37. StartConversation(con, NPC, Spawn, "Where to?")
  38. end
  39. function NekToFreeport(NPC, Spawn)
  40. StartAutoMount(Spawn, 172)
  41. SetMount(Spawn, 225)
  42. end
  43. function NekToCanyon(NPC, Spawn)
  44. StartAutoMount(Spawn, 171)
  45. SetMount(Spawn, 225)
  46. end
  47. function FreeportToCanyon(NPC, Spawn)
  48. StartAutoMount(Spawn, 169)
  49. SetMount(Spawn, 225)
  50. end
  51. function FreeportToNek(NPC, Spawn)
  52. StartAutoMount(Spawn, 170)
  53. SetMount(Spawn, 225)
  54. end
  55. function CanyonToFreeport(NPC, Spawn)
  56. StartAutoMount(Spawn, 167)
  57. SetMount(Spawn, 225)
  58. end
  59. function CanyonToNek(NPC, Spawn)
  60. StartAutoMount(Spawn, 168)
  61. SetMount(Spawn, 225)
  62. end
  63. --[[ raw_conversations
  64. PlayFlavor(NPC, "", "Fun, fun, fun! This big old tower, built for griffons, and yet... there just don't seem to be any around. Thinking about helping us out?", "", 1689589577, 4560189, Spawn)
  65. PlayFlavor(NPC, "", "You can scramble 'em, boil 'em, fry 'em... oh, wait... were we talking about griffon eggs or chicken eggs?", "", 1689589577, 4560189, Spawn)
  66. PlayFlavor(NPC, "", "I say... you haven't seen any griffon eggs around, have you? We sure could use some!", "", 1689589577, 4560189, Spawn)
  67. --]]