init start local safelist = {'Eternal Oblivion', 'Bubble'} --You can change this, it is the safe list
local rune = {use = false, id = 'sudden death rune', delayfrom = 900, delayto = 1100} --set use to true if you want to shoot runes on pk, change 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 = 0 --dont touch it
init end
autoinit end
auto(100)
if if $pattacker.hppc > 0 and $pattacker ~= $self and not table.find(safelist,$pattacker.name) and not table.find(pks,$pattacker) then
table table.insert(pks,$pattacker)endif #pks > 0 then
local lowest,toattack = 100
for i,j in ipairs(pks) do
if if j.skull > 0 and j.skull ~= SKULL_GREEN and j.hppc <= lowest and math.abs($posx-j.posx) <= 7 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(toattack) end
if rune.use and rune.id > 0 and lastrunetime < $timems then useoncreature(rune.id,toattack) lastrunetime = $timems+math.random(delayfrom,delayto) end
end
end endend
domingo, 5 de junho de 2011
Hotkey Attack PK
Assinar:
Postar comentários (Atom)
Nenhum comentário:
Postar um comentário