9
3

the_trail_of_slime.lua 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : Quests/GobblerocksHideout/the_trail_of_slime.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.16 04:07:06
  5. Script Purpose :
  6. Zone : GobblerocksHideout
  7. Quest Giver: Captain Ista(330243)
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "Captain Ista has told me to find and slay the Gobbler. She said that it can be found somewhere in the Sewer System.", 1, 100, "Captain Ista has told me to find and slay the Gobbler. He can be found somewhere in the Sewer System.", 289, 3490016)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. AddConversationOption(conversation, "Ok, I will see you later then.")
  19. StartConversation(conversation, QuestGiver, Player, "Of course you do... that's the same thing the last group of adventurers said and look here, I still need to get this job done. Hurry along now, Freeport does not like to wait.")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. -- Add dialog here for when the quest is declined
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. -- Remove any quest specific items here when the quest is deleted
  26. end
  27. function Step1Complete(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I have slain the Gobbler")
  29. AddQuestStepChat(Quest, 2, "I must return to Captain Ista. She will want to see the remains, it will prove that I've slain the Gobbler.", 1, "Captain Ista has told me to find and slay the Gobbler. He can be found somewhere in the Sewer System.", 11, 330243)
  30. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 2, "I have spoke to Captain Ista.")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I have slain the Gobbler.")
  36. UpdateQuestDescription(Quest, "I have slain the Gobbler.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1Complete(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end