Postado Outubro 13, 2015 9 anos local r = 5 -- Range. local safelist = {'Bubble', 'Eternal Oblivion'} -- The bot WILL KS this players. Add more to this if you want. table.insert(safelist, name) -- Do not edit it. local ppos = {} local pinfo = _getcreatures("psf") local cinfo = _getcreatures("msf") for a = 1, pinfo.count do local ab=a-1 if not table.find(safelist, pinfo[ab].name) then table.insert(ppos, {x = pinfo[ab].x, y = pinfo[ab].y}) end end for b = 1, cinfo.count do local ignore = false local bb=b-1 if cinfo[bb].id ~= target.id then for i = 1, #ppos do local difx, dify = ppos[i].x - cinfo[bb].x, ppos[i].y - cinfo[bb].y if math.abs(difx) <= r and math.abs(dify) <= r then ignore = true if cinfo[bb].ignored == false then ignorecreature(cinfo[bb].id,true) stopattack() end break end end end if ignore == false and cinfo[bb].ignored == true then ignorecreature(cinfo[bb].id, true) stopattack() end end if target.id ~= 0 then if target.ignored then stopattack() end end Créditos: tibiascripts
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.