9
3

MuckSlime.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : MuckSlime.lua
  3. Script Purpose : Handles the quest, "Muck Slime"
  4. Script Author : Shatou
  5. Script Date : 1/8/2020
  6. Script Notes :
  7. Zone : Peat Bog
  8. Quest Giver : Ferius Mentus
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. local FERIUS_MENTUS_ID = 1980005
  13. local A_MUCK_TOAD_ID = 1980015
  14. function Init(Quest)
  15. AddQuestStepKill(Quest, 1, "I need to collect some muck toad sludge.", 10, 100, "Ferius would like me to collect some muck toad sludge.", 343, A_MUCK_TOAD_ID)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. end
  18. function Step1Complete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I have collected some muck toad sludge.")
  20. AddQuestStepChat(Quest, 2, "I need to return to Ferius.", 1, "Ferius would like me to collect some muck toad sludge.", 355, FERIUS_MENTUS_ID)
  21. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  22. end
  23. function QuestComplete(Quest, QuestGiver, Player)
  24. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  25. UpdateQuestStepDescription(Quest, 2, "I have spoken with Ferius.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected the muck toad sludge.")
  27. UpdateQuestDescription(Quest, "I have given Ferius his frogs. He was very pleased.")
  28. GiveQuestReward(Quest, Player)
  29. end
  30. function Reload(Quest, QuestGiver, Player, Step)
  31. if Step == 1 then
  32. Step1Complete(Quest, QuestGiver, Player)
  33. elseif Step == 2 then
  34. QuestComplete(Quest, QuestGiver, Player)
  35. end
  36. end
  37. function Accepted(Quest, QuestGiver, Player)
  38. -- Add dialog here for when the quest is accepted
  39. end
  40. function Declined(Quest, QuestGiver, Player)
  41. -- Add dialog here for when the quest is declined
  42. end