badger_claws_for_yanari_.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/CastleviewHamlet/badger_claws_for_yanari_.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.28 11:01:35
  5. Script Purpose :
  6. Zone : CastleviewHamlet
  7. Quest Giver: Yanari
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to collect claws from some vicious badgers.", 4, 75, "I need to collect four vicious badger claws for Yanari Cyellann in Castleview.", 174, 1950039)
  13. AddQuestStepCompleteAction(Quest, 1, "Turnin")
  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 Turnin(Quest, QuestGiver, Player)
  26. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  27. UpdateQuestStepDescription(Quest, 1, "I have collected the vicious badger claws.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I have four vicious badger claws for Yanari Cyellann in Castleview.")
  29. UpdateQuestZone(Quest,"Castleview Hamlet")
  30. AddQuestStepChat(Quest, 2, "I need to return to Yanari.", 1,"I need give Yanari these vicious badger claws in Castleview.", 174, 2360047)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I have returned to Yanari.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I have delievered the vicious badger claws to Yanari Cyellann.")
  36. UpdateQuestDescription(Quest, "I delivered four vicious badger claws to Yanari Cyellann and she imbued a wand for me as payment.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Turnin(Quest, QuestGiver, Player)
  42. end
  43. if Step == 2 then
  44. QuestComplete(Quest, QuestGiver, Player)
  45. end
  46. end