9
3

agriffintamer.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : SpawnScripts/Butcherblock/agriffintamer.lua
  3. Script Purpose : a griffin tamer
  4. Script Author : jakejp
  5. Script Date : 2018.06.01
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local GriffinStationsButcherblock = 269
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, GriffinStationsButcherblock)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. if CanReceiveQuest(Spawn, GriffinStationsButcherblock) then
  19. -- Start Quest
  20. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1042.mp3", "", "", 0, 0, Spawn)
  21. AddConversationOption(conversation, "I would like to travel.", "dlg_4_1")
  22. AddConversationOption(conversation, "I am fine staying here, thanks.")
  23. StartConversation(conversation, NPC, Spawn, "Greetings traveler, how can I assist you today?")
  24. elseif HasQuest(Spawn, GriffinStationsButcherblock) and GetQuestStep(Spawn, GriffinStationsButcherblock) < 3 then
  25. -- Still on quest
  26. Say(NPC, "Did you discover all of the routes yet?")
  27. elseif HasCompletedQuest(Spawn, GriffinStationsButcherblock) then
  28. -- Finished Quest
  29. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1042.mp3", "", "", 0, 0, Spawn)
  30. AddConversationOption(conversation, "I would like to travel.", "dlg_1_1")
  31. AddConversationOption(conversation, "Nowhere.")
  32. StartConversation(conversation, NPC, Spawn, "Greetings traveler, how can I assist you today?")
  33. end
  34. end
  35. function dlg_4_1(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. conversation = CreateConversation()
  38. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  39. AddConversationOption(conversation, "That makes sense.", "GiveGriffinStationsButcherblock")
  40. StartConversation(conversation, NPC, Spawn, "Well, before I can send you off you must discover the routes for yourself. There are stations near the docks, Greater Faydark and Lesser Faydark. Once you map the location of each you can borrow one of our griffons. We have to be sure you won't get lost up there.")
  41. end
  42. function GiveGriffinStationsButcherblock(NPC, Spawn)
  43. OfferQuest(NPC, Spawn, GriffinStationsButcherblock)
  44. end