rat_barsh.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : rat_barsh.lua
  3. Script Purpose : Handles the quest, "Rat Barsh!"
  4. Script Author : torsten
  5. Script Date : 12.07.2022
  6. Script Notes :
  7. Zone : Big Bend
  8. Quest Giver : Kroota Gukbutcher
  9. Preceded by : Ay, There's the Rubb'ish
  10. Followed by : Much Ado' About Rallos
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Kill rats at the gate leading to the Sprawl.", 6, 100, "I need to go hunt for rats at the gate leading to the Sprawl.", 122, 1340045)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have barshed many rats.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I should have enough rat carcasses for the ceremony.")
  19. AddQuestStepChat(Quest, 2, "I should return to Kroota.", 1, "I have barshed many rats. I should return to Kroota.", 0, 1340040)
  20. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  21. end
  22. function QuestComplete(Quest, QuestGiver, Player)
  23. UpdateQuestDescription(Quest, "I barshed many rats at the gate to the Sprawl for Kroota. Even though they were not what he had in mind, he still says they will come in useful.")
  24. GiveQuestReward(Quest, Player)
  25. AddItem(Spawn, 12866, 1)
  26. end
  27. function Accepted(Quest, QuestGiver, Player)
  28. -- Add dialog here for when the quest is accepted
  29. end
  30. function Declined(Quest, QuestGiver, Player)
  31. -- Add dialog here for when the quest is declined
  32. end
  33. function Deleted(Quest, QuestGiver, Player)
  34. -- Remove any quest specific items here when the quest is deleted
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. Step1Complete(Quest, QuestGiver, Player)
  39. elseif Step == 2 then
  40. QuestComplete(Quest, QuestGiver, Player)
  41. end
  42. end