Gist not working.. either..
Gist not working.. either..
@Leonardo After a few hours of using this persistent there will be 1-2 mosnters in my spawn that my bot will NOT attack. Even if there are no players around anymore. Anyone else had this issue?
Ye I know that, it wasn't supposed to be that way but I found this error later. I have an untested version of a future update if you want to test it for me I'll be glad.
EDIT
This is the untested version:
init start
local MinimumDistance = 1
local SafeList = {"Bubble", "Eternal Oblivion"}
-- DO NOT EDIT BELOW --
MinimumDistance = math.max(MinimumDistance, 1)
table.lower(SafeList)
init end
auto(100, 200)
local players, monsters = {}, {}
foreach creature c 'xf' do
if c.id ~= $target.id then
if c.isplayer and not table.find(SafeList, c.name:lower()) then
table.insert(players, c)
elseif c.ismonster then
table.insert(monsters, c)
end
end
end
table.sort(monsters, function(a, b)
if a.dist == b.dist then
if a.speed == b.speed then
if a.hppc == b.hppc then
return a.id < b.id
else
return a.hppc < b.hppc
end
else
return a.speed < b.speed
end
else
return a.dist < b.dist
end
end)
for _, cre in ipairs(monsters) do
if #players == 0 or cre.lastattacked <= 10000 or cre.dist <= MinimumDistance then
ignorecreature(cre, true)
elseif (not tilereachable(cre.posx, cre.posy, cre.posz)) or #players > 0 or cre.dist > MinimumDistance then
ignorecreature(cre)
end
end
if $attacked.ignored then
keyevent(0x1B) waitping()
end
Last edited by Leonardo; 10-09-2014 at 02:57 AM.
Script updated, fixed some unexpected bugs and improved performance.
Thank you working very well! rep+
For me it's still bugged on some monsters even when they are attacking me, anyone else has this problem?
I do not know if it's just me or if it happens with another, or if I set it too me wrong, I do not know. With him or without him is KS's will.
I put in Cavebot> Settings in, Node Range 3 sqm and put in place Antiks MinimumDistance = 3, for my Mage and my EK 1 sqm, and local MinimumDistance = 1.
That's right ?, because he Ks in the world anyway, I see many players complaining in local chat
When using Anti-KS persistant in my scripts, windbot crashes without any errors.. I've tried several times to use it and I'm 99% sure its Anti-KS that does it. Even when I stand AFK in depot and having Anti-KS enabled in persistants it crashes windbot. But it mostly happends after 2-5 minutes randomly.