exacting_revenge_on_the_crabs.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : exacting_revenge_on_the_crabs.lua
  3. Script Purpose : Handles the quest, "Exacting Revenge on the Crabs"
  4. Script Author : Neatz09
  5. Script Date : 12/31/2018
  6. Script Notes : Examined item (a twitching crab claw)
  7. Zone : Sunken City
  8. Quest Giver : item #3034
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. local crabs = 1240007
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "Kill crabs", 30, 100, "I need to kill crabs in the Sunken City until my rage subsides. I can reach the Sunken City by using any of the bells in and around the City of Freeport.", 77, crabs)
  15. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. -- Add dialog here for when the quest is accepted
  19. end
  20. function Declined(Quest, QuestGiver, Player)
  21. -- Add dialog here for when the quest is declined
  22. end
  23. function Deleted(Quest, QuestGiver, Player)
  24. -- Remove any quest specific items here when the quest is deleted
  25. end
  26. function QuestComplete(Quest, QuestGiver, Player)
  27. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  28. UpdateQuestStepDescription(Quest, 1, "I have killed many crabs.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I've killed many crabs and this task now bores me.")
  30. UpdateQuestDescription(Quest, "Many crabs were slain in retaliation for that pinch. I feel much better now. <br>")
  31. GiveQuestReward(Quest, Player)
  32. end
  33. function Reload(Quest, QuestGiver, Player, Step)
  34. if Step == 1 then
  35. QuestComplete(Quest, QuestGiver, Player)
  36. end
  37. end