vexler222
Active Member
- Joined
- Apr 22, 2012
- Messages
- 714
- Solutions
- 15
- Reaction score
- 46
Hi, can someone edit this script, to use X item only if its possible? Cuz now script trying open item what is blocked by monster corps, and he stay close and spaming "use" on monster body..
Code:
macro(500, "use box", function()
for i, tile in ipairs(g_map.getTiles(posz())) do
for u,item in ipairs(tile:getItems()) do
if (item and item:getId() == 9586) then -- ID ITEM
g_game.use(item)
return
end
end
end
end)