bear_fashion.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/NorthQeynos/bear_fashion.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.11 02:05:55
  5. Script Purpose :
  6. Zone : NorthQeynos
  7. Quest Giver: Rachael Clothspinner
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need four fine pelts from Oakmyst great bears.", 4, 75, "I need to get four fine pelts from Oakmyst great bears.", 124, 8300016,8300023)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Compelte")
  14. UpdateQuestZone(Quest,"Oakmyst Forest")
  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 Step1Compelte(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I've got the four fine pelts.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I've filled the order of four fine pelts.")
  28. UpdateQuestZone(Quest,"North Qeynos")
  29. AddQuestStepChat(Quest, 2, "I need to deliver these fine bear pelts to Rachael Clothspinner.", 1, "Rachael Clothspinner is waiting for these fine pelts in North Qeynos.", 124, 2220060)
  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've delivered the pelts to Rachael Clothspinner.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I've completed Rachael Clothspinner's order of four fine pelts.")
  36. UpdateQuestDescription(Quest, "I've filled Rachael's order and she mentioned that I could make a decent living filling unfulfilled Far Seas Trading Company orders.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1Compelte(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end