9
3

TrashBox.lua 757 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/Kugup/TrashBox.lua
  3. Script Author : neatz09
  4. Script Date : 2023.05.05 11:05:05
  5. Script Purpose :
  6. :
  7. --]]
  8. local TakingOuttheTrash = 5810
  9. local trashsack = 2558
  10. function spawn(NPC)
  11. end
  12. function casted_on(NPC, Spawn, Message)
  13. if Message == "Collect Trash" then
  14. if GetQuestStep(Spawn, TakingOuttheTrash) == 1 then
  15. if HasItem(Spawn, trashsack) then SendMessage(Spawn, "you can only carry one trash bag at a time. You must place the current trash bag on the platform before picking up another.", "White")
  16. else
  17. SummonItem(Spawn, 2558, 1)
  18. AddStepProgress(Spawn, TakingOuttheTrash, 1, 1)
  19. end
  20. end
  21. end
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end