9
3

the_sewer_it_key.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : Quests/GobblerocksHideout/the_sewer_it_key.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.16 03:07:48
  5. Script Purpose : Access Quest
  6. Zone : GobblerocksHideout
  7. Quest Giver: an old key(Item)
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. local AnOldKeyItem = 3773
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "I should search the Commonlands for a sewer grate that will accept this key.", 1, 100, "I need to find out what Freeport grate this key will open. It has the number five and a sewer pipe are engraved on its head.", 11)
  14. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function QuestComplete(Quest, QuestGiver, Player)
  25. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  26. UpdateQuestStepDescription(Quest, 1, "The lock has been found!")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I've found the lock to which this key belongs.")
  28. UpdateQuestDescription(Quest, "I have used this old key and entered what appears to be some sort of Goblin hideout.")
  29. GiveQuestReward(Quest, Player)
  30. end
  31. function Reload(Quest, QuestGiver, Player, Step)
  32. if Step == 1 then
  33. QuestComplete(Quest, QuestGiver, Player)
  34. end
  35. end