9
3

sleek_wolf_hides.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : Quests/QeynosHarbor/sleek_wolf_hides.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.24 03:05:05
  5. Script Purpose :
  6. Zone : QeynosHarbor
  7. Quest Giver: Erwin Rohand
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKillByRace(Quest, 1, "I need to find some wolf hides.", 5, 60, "I must go out into Antonica and gather some wolf hides.", 126,238)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. UpdateQuestZone(Quest,"Antonica")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have found five sleek wolf hides.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I have gone out and gathered sleek wolf hides.")
  28. UpdateQuestZone(Quest,"Qeynos Harbor")
  29. AddQuestStepChat(Quest, 2, "I must speak with Erwin in Qeynos Harbor.", 1, "I should take the sleek wolf hides back to Erwin in Qeynos Harbor so he can sell them soon.", 160, 2210153)
  30. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 2, "I have spoken with Erwin.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I have been back to Erwin and gave him the sleek wolf hides he requested of me.")
  36. UpdateQuestDescription(Quest, "I went back to Erwin and gave him the sleek wolf hides that he requested. He was very happy to have stuff that would further his goal and I was happy to lend him a hand.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1Complete(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end