acidic_liquid.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : Quests/RuinsofVarsoon/acidic_liquid.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.22 04:01:42
  5. Script Purpose :
  6. Zone : RuinsofVarsoon
  7. Quest Giver: a_bubbling_beaker 2560133
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to find someone interested in the liquid.", 1, "I need to find someone interested in buying this liquid before the beaker breaks.", 176, 2380002)
  13. AddQuestStepCompleteAction(Quest, 1, "quest_complete")
  14. UpdateQuestZone(Quest, "Baubbleshire")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. CloseConversation(QuestGiver, Player)
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. end
  21. function quest_complete(Quest, QuestGiver, Player)
  22. UpdateQuestStepDescription(Quest, 1, " found someone interested in the liquid.")
  23. UpdateQuestTaskGroupDescription(Quest, 1, "I found a gnomish locksmith who wanted the liquid I found in Varsoon's lair.")
  24. UpdateQuestDescription(Quest, "It seems that I found someone interested in the liquid... Rebik Sprocketrock was working on what seemed to be an un-pickable lock... but it wasn't impervious to the liquid. He bought the remainder of the liquid on the spot for quite a hefty amount of coin.")
  25. GiveQuestReward(Quest, Player)
  26. end
  27. function Reload(Quest, QuestGiver, Player, Step)
  28. if Step == 1 then
  29. Delivery(Quest, QuestGiver, Player)
  30. elseif Step == 2 then
  31. QuestComplete(Quest, QuestGiver, Player)
  32. end
  33. end