domingo, 5 de junho de 2011

Hotkey Attack PK

init start    local safelist = {'Eternal Oblivion''Bubble'} --You can change thisit is the safe list
    
    local rune = {use = falseid 'sudden death rune'delayfrom 900delayto 1100} --set use to true if you want to shoot runes on pkchange the id to the rune you want, and the delay is time between each rune shooting
    local pks 
    local pks = {} --dont touch it
    table
    table.lower(safelist) --dont touch it
    rune
    rune.id itemid(rune.id) --dont touch it
        local lastrunetime 
        local lastrunetime --dont touch it
init end

auto
init end
auto(100)
if 
if $pattacker.hppc and $pattacker ~= $self and not table.find(safelist,$pattacker.name) and not table.find(pks,$pattackerthen
    table
    table.insert(pks,$pattacker)endif #pks > 0 then
    
    local lowest,toattack 100
    
    for i,j in ipairs(pks) do
        if 
        if j.skull and j.skull ~= SKULL_GREEN and j.hppc <= lowest and math.abs($posx-j.posx) <= and math.abs($posy-j.posy) <= 5 then
            toattack 
            toattack j
            lowest 
            lowest j.hppc
        end
    end
    
        end    end    if toattack then
        
        if toattack ~= $attacked then attack(toattackend
        
        if rune.use and rune.id and lastrunetime $timems then useoncreature(rune.id,toattacklastrunetime $timems+math.random(delayfrom,delaytoend
    end
end 
    endend 

Nenhum comentário:

Postar um comentário