vermin_reduction.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : vermin_reduction.lua
  3. Script Purpose : Handles the quest, "Vermin Reduction"
  4. Script Author : torsten
  5. Script Date : 10.07.2022
  6. Script Notes :
  7. Zone : Big Bend
  8. Quest Giver : Ratcatcher Zarbt
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. SetQuestFeatherColor(Quest, 3)
  14. SetQuestRepeatable(Quest)
  15. AddQuestStepKill(Quest, 1, "I need to kill rats in Big Bend and the Thieves Way.", 6, 100, "Zarbt the Ratcatcher wants me to help him kill rats in Big Bend and the Thieves Way.", 99, 1540004, 1340004, 1340045)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. end
  18. function Step1Complete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I have killed the rats.")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "I've killed the rats Zarbt wanted help with.")
  21. AddQuestStepChat(Quest, 2, "I need to speak to Zarbt.", 1, "Now that I've killed all these rats I should go back to Zarbt.", 11, 1340017)
  22. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  23. end
  24. function QuestComplete(Quest, QuestGiver, Player)
  25. UpdateQuestDescription(Quest, "Realizing the rodents are merely a byproduct of the city's inhabitants, I now know how futile my efforts were. Not to mention having to shake down that ratcatcher to get next-to-nothing for my efforts.")
  26. GiveQuestReward(Quest, Player)
  27. end
  28. function Accepted(Quest, QuestGiver, Player)
  29. -- Add dialog here for when the quest is accepted
  30. end
  31. function Declined(Quest, QuestGiver, Player)
  32. -- Add dialog here for when the quest is declined
  33. end
  34. function Deleted(Quest, QuestGiver, Player)
  35. -- Remove any quest specific items here when the quest is deleted
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. Step1Complete(Quest, QuestGiver, Player)
  40. elseif Step == 2 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end