Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
422 B
2
Indexable
Never
local exhaust = 250
anyName = macro(300, "Reward chest test", function(m)
  local time = 0
  local rewardBagId = 19202

  for i, container in pairs(getContainers()) do
    for j, item in pairs(container:getItems()) do
      if item:getId() == rewardBagId then
        schedule(time,function() 
          g_game.open(item)
        end)
        time = time + exhaust
      end
    end
  end
  m:setOff()
end)
Leave a Comment