the_crimson_paw_cloak.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : Quests/WailingCaves/the_crimson_paw_cloak.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.14 09:07:52
  5. Script Purpose :
  6. Zone : WailingCaves
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I must slay ten Ree jailers orcs in the Wailing Caves.", 10, 100, "After being overtaken by a mysterious force within the crimson paw cloak I now have the urge to slay orc Ree jailers.", 611, 2580016, 2580052)
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function QuestComplete(Quest, QuestGiver, Player)
  25. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  26. UpdateQuestStepDescription(Quest, 1, "I have slain ten Ree jailer orcs.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I have slain ten Ree jailers and the feeling to slay more has passed.")
  28. if HasItem(Player, 13993) then -- The Crimson Paw Cloak
  29. RemoveItem(Player, 13993)
  30. end
  31. UpdateQuestDescription(Quest, "After being driven to slay Ree jailers, I delved deep into the Wailing Caves to slay them. After doing so I found my feeling of hatred gone. The power of the cloak has subsided, but is it gone forever?")
  32. GiveQuestReward(Quest, Player)
  33. end
  34. function Reload(Quest, QuestGiver, Player, Step)
  35. if Step == 1 then
  36. QuestComplete(Quest, QuestGiver, Player)
  37. end
  38. end