9
3

BagOfParts.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. if HasItem(Player, 4110) then
  24. RemoveItem(Player, 4110)
  25. end
  26. end
  27. function Reload(Quest, QuestGiver, Player, Step)
  28. if Step == 1 then
  29. QuestComplete(Quest, QuestGiver, Player)
  30. end
  31. end
  32. function Accepted(Quest, QuestGiver, Player)
  33. -- Add dialog here for when the quest is accepted
  34. end
  35. function Declined(Quest, QuestGiver, Player)
  36. -- Add dialog here for when the quest is declined
  37. end