letter_from_the_boss.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : Quests/QeynosHarbor/letter_from_the_boss.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.13 11:06:57
  5. Script Purpose :
  6. Zone : QeynosHarbor
  7. Quest Giver: Shanda Tierbold
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I must speak with Baily.", 1, "I should take this letter from Shanda and her boss to Baily Dowden in Nettleville.", 1223, 2330016)
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. UpdateQuestZone(Quest,"Nettleville")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. PlayFlavor(QuestGiver, "", "", "agree", 0, 0, Spawn)
  19. local conversation = CreateConversation()
  20. AddConversationOption(conversation, "I will see it safely to him.")
  21. StartConversation(conversation, QuestGiver, Player, "Good. Then take this letter over to Baily Dowden. Now, my boss needs this letter to get to him right away. I don't know why he gave me the letter to send, since I need to guard this door all day. But he is the boss and he said to get it done and I shall.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function QuestComplete(Quest, QuestGiver, Player)
  30. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  31. UpdateQuestStepDescription(Quest, 1, "I have spoken with Baily.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I have taken the letter from Shanda and her boss over to Baily Dowden.")
  33. UpdateQuestDescription(Quest, "I have done my job for Shanda and her boss by delivering a letter to Baily Dowden. After talking with Baily Dowden I'm still not sure what it was about but I was given some coin and ale for my hard work.")
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. QuestComplete(Quest, QuestGiver, Player)
  39. end
  40. end