9
3

chuggles_toolbox.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : Quests/ThievesWay/chuggles_toolbox.lua
  3. Script Author : premierio015
  4. Script Date : 29.06.2021
  5. Script Purpose :
  6. Zone : ThievesWay
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to find Chuggle's five tools and replace them in the toolbox. There's a good chance that they're down here in the Thieves' Way.", 5, 100, " I need to find a cogspindler on one of the union menders.", 1228, 1540008, 1540016, 1540046, 1540002, 1540021, 1540022, 1540024, 1540028, 1540072, 1540073, 1540029, 1540045, 1540000, 1540032)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Step1Complete(Quest, QuestGiver, Player)
  16. UpdateQuestStepDescription(Quest, 1, "I found all the tools that were missing from Chuggle's toolbox.")
  17. AddQuestStepChat(Quest, 2, "I need to speak with Chuggle Valvesplitter.", 1, "I have to return toolbox to Chuggle Valvesplitter." , 11, 1360021)
  18. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  19. end
  20. function Accepted(Quest, QuestGiver, Player)
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function quest_complete(Quest, QuestGiver, Player)
  25. UpdateQuestDescription(Quest, 3, "I have spoken with Chuggle Valvesplitter and returned the toolbox.")
  26. if HasItem(Player, 5014) then
  27. RemoveItem(Player, 5014)
  28. end
  29. GiveQuestReward(Quest, Player)
  30. end
  31. function Reload(Quest, QuestGiver, Player, Step)
  32. end