mystail_tails_for_fevalin.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/CastleviewHamlet/mystail_tails_for_fevalin.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.28 05:01:28
  5. Script Purpose :
  6. Zone : CastleviewHamlet
  7. Quest Giver: Fevalin
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I must kill some mystail yearlings.", 6, 80, "I must collect tails from mystail yearlings.", 172, 1950009)
  13. AddQuestStepCompleteAction(Quest, 1, "RatsDead")
  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 RatsDead(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have killed some mystail yearlings.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected six mystail yearling tails.")
  28. AddQuestStepChat(Quest, 2, "I must return to Fevalin.", 1, "I must gives these mystrat tails to Fevalin.", 172, 2360039)
  29. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  30. UpdateQuestZone(Quest, "Castleview Hamlet")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I have returned to Fevalin.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "I have delivered the mystrat tails to Fevalin.")
  35. UpdateQuestDescription(Quest, "I collected all six mystail yearling tails for Merchant Fevalin. He has rewarded for my service.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. RatsDead(Quest, QuestGiver, Player)
  41. end
  42. if Step == 2 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end