BagOfParts.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : BagofParts.lua
  3. Script Purpose : Handles the quest, "Bag of Parts"
  4. Script Author : Shatou
  5. Script Date : 1/7/2020
  6. Script Notes :
  7. Zone : Baubbleshire
  8. Quest Giver : Bag of Parts (Examine item)
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. local ALGAN_TINMIZER_ID = 2380037
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "Find Algan Tinmizer.", 1, "I need to find this Algan Tinmizer and return this bag of parts.", 10, ALGAN_TINMIZER_ID)
  15. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  16. end
  17. function QuestComplete(Quest, QuestGiver, Player)
  18. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  19. UpdateQuestStepDescription(Quest, 1, "I've found Algan Tinmizer.")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "I've found Algan Tinmizer and he was very glad to see that I had found his bag of parts.")
  21. UpdateQuestDescription(Quest, "Algan Tinmizer was very pleased that I had found and returned his bag of assorted parts. He gave me a small reward to thank me.")
  22. GiveQuestReward(Quest, Player)
  23. end
  24. function Reload(Quest, QuestGiver, Player, Step)
  25. if Step == 1 then
  26. QuestComplete(Quest, QuestGiver, Player)
  27. end
  28. end
  29. function Accepted(Quest, QuestGiver, Player)
  30. -- Add dialog here for when the quest is accepted
  31. end
  32. function Declined(Quest, QuestGiver, Player)
  33. -- Add dialog here for when the quest is declined
  34. end