running_out_of_beer.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/Antonica/running_out_of_beer.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.09.01 06:09:16
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStep(Quest, 1, "I must get an ale from upstairs.", 1, 100, "I need to go upstairs and get an ale for Haddek from the keg.", 308)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  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 Step1Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have gotten an ale from upstairs.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I have gone upstairs and acquired an ale for Haddek.")
  27. AddQuestStepChat(Quest, 2, "Deliver the ale to Haddek.", 1, "I must give this ale to Haddek.", 308, 120281)
  28. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  29. end
  30. function QuestComplete(Quest, QuestGiver, Player)
  31. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  32. UpdateQuestStepDescription(Quest, 2, "I have delivered the ale to Haddek.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I have given the ale to Haddek.")
  34. UpdateQuestDescription(Quest, "I have given Haddek his ale. Maybe now I can get him to give me some work.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. Step1Complete(Quest, QuestGiver, Player)
  40. elseif Step == 2 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end