StewardTredo.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst/StewardTredo.lua
  3. Script Purpose : Steward Tredo
  4. Script Author : scatman
  5. Script Date : 2009.05.08
  6. Edited by : ememjr
  7. edit date : 2017.05.05
  8. edit note : updated quest numbers
  9. Script Notes : Auto-Generated Conversation from PacketParser Data
  10. --]]
  11. local QUEST_1 = 232
  12. function spawn(NPC)
  13. ProvidesQuest(NPC, QUEST_1)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. NotAPoacher(NPC, Spawn, conversation)
  22. end
  23. ---------------------------------------------------------------------------------------------------------------
  24. -- QUEST 1
  25. ---------------------------------------------------------------------------------------------------------------
  26. function NotAPoacher(NPC, Spawn, conversation)
  27. PlayFlavor(NPC, "voiceover/english/optional1/steward_tredo/qey_adv01_oakmyst/stewardtredo000.mp3", "", "", 2443855119, 308651193, Spawn)
  28. if not HasCompletedQuest(Spawn, QUEST_1) and not HasQuest(Spawn, QUEST_1) then
  29. AddConversationOption(conversation, "Poachers? What can I do to help?", "OfferQuest1")
  30. end
  31. AddConversationOption(conversation, "I wish you luck in avoiding poachers. Farewell.")
  32. StartConversation(conversation, NPC, Spawn, "Not a poacher, I see. Thank the misty winds! Sorry for thinking otherwise. With all the babble of poachers lurking Oakmyst, I thought for sure your strange face would be the last sight I'd see!")
  33. end
  34. function OfferQuest1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. OfferQuest(NPC, Spawn, QUEST_1)
  37. end