9
3

muck_slime.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/PeatBog/muck_slime.lua
  3. Script Purpose : Handles the quest, "Muck Slim"
  4. Script Author : Scatman
  5. Script Date : 2009.05.10
  6. Zone : The Peat Bog
  7. Quest Giver: Ferius Mentus
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to collect some muck toad sludge.", 10, 100, "Ferius would like me to collect some muck toad sludge.", 343, 1980007)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledFrogs")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "All right.")
  19. StartConversation(conversation, QuestGiver, Player, "I should hope so; it isn't hard work. Come back quick!")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. end
  23. function Step1_Complete_KilledFrogs(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 1, "I have collected some muck toad sludge.")
  25. AddQuestStepChat(Quest, 2, "I need to return to Ferius.", 1, "Ferius would like me to collect some muck toad sludge.", 355, 1980023)
  26. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  27. end
  28. function QuestComplete(Quest, QuestGiver, Player)
  29. UpdateQuestDescription(Quest, "I have given Ferius his frogs. He was very pleased.")
  30. GiveQuestReward(Quest, Player)
  31. end
  32. function Reload(Quest, QuestGiver, Player, Step)
  33. if Step == 1 then
  34. Step1_Complete_KilledFrogs(Quest, QuestGiver, Player)
  35. end
  36. end