domingo, 5 de junho de 2011

Hotkey - Anti-KS

Padrão Anti-KS

Como funciona?
Ele vai ignorar qualquer monstro que estiver a X sqms de outro player e "desginorar" se não tiver nenhum player perto, ou se o monstro te atacar.
init start
    local r 
-- Range.
    
local safelist = {'Bubble''Eternal Oblivion'} -- O bot VAI dar KS nesses playersAdicione mais se quiser.
    
table.insert(safelist$name) -- Não mexa aquiinit end
 
auto
(100local ppos = {}
foreach 
creature p 'pf' do
    if 
not table.find(safelistp.namethen
        table
.insert(ppos, {p.posxp.posy})
    
end
end 
foreach creature c 'mf' do
    
local ignore false
    
if c.id ~= $mattacker.id then
        
for 1#ppos do
            
local difxdify ppos[i].c.posxppos[i].c.posy
            
if math.abs(difx) <= and math.abs(dify) <= r then
                ignore 
true
                
if c.ignored == false then
                    ignorecreature
(c.id)
                
end
                
break
            
end
        end
    end
    
if ignore == false and c.ignored == true then
        ignorecreature
(c.idtrue)
    
end
end 
if $attacked.id ~= 0 then
    
if $attacked.ignored then
        stopattack
()
    
end
end 

Nenhum comentário:

Postar um comentário