• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

OTClient Help with script too OtClient

vexler222

Active Member
Joined
Apr 22, 2012
Messages
715
Solutions
15
Reaction score
47
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)
 
Top