9
3

an_axes_revenge_.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : an_axes_revenge.lua
  3. Script Purpose : Handles the quest, "An Axe's Revenge"
  4. Script Author : premierio015
  5. Script Date : 25.06.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : The Ruins
  8. Quest Giver : a carved orc axe
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Kill orcs", 6, 100, "I feel the irresistible need to slay orcs in the Ruins! I can reach the Ruins by using any of the bells in and around the City of Freeport.", 91, 8420001, 8420002,8420003, 8420004, 8420005,8420006, 8420007,8420009,8420010, 8420011, 8420012, 8420013, 8420014, 8420027, 8420028, 8420029, 8420030, 8420031, 8420038, 8420039, 8420042, 8420043, 8420068, 8420069)
  14. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  15. UpdateQuestZone(Quest,"Ruins")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. if HasItem(Player,1335,1) then
  19. RemoveItem(Player,1335)
  20. SendMessage(Player,"You place the carved orc axe in your quest satchle.")
  21. end
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function QuestComplete(Quest, QuestGiver, Player)
  30. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  31. UpdateQuestStepDescription(Quest, 1, "I have killed some orcs")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I killed six orcs before the urge went away.")
  33. if HasItem(Player, 1335) then
  34. RemoveItem(Player, 1335)
  35. end
  36. UpdateQuestDescription(Quest, "I had to kill six orcs before the urge left me. The axe now rests quietly with me.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end