Actually in my knight who is away 2 sqm works now when I tested the water elemental mage in the distance 3 was not also released general ks with it, lol
Actually in my knight who is away 2 sqm works now when I tested the water elemental mage in the distance 3 was not also released general ks with it, lol
this shit no work man
init start
--local SCRIPT_VERSION = "2.0.0"
local MinimumDistance = 2<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<cHANGE THIS AND NOTHING
local SafeList = {"Bubble", "Eternal Oblivion"}<<<<<<<<<<<<<<<<<<<<<<< I PUT THE NAME HERE AND NOTHING.
-- 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
How can i add this to my Scripts? Im using Windbot now for maybe 10 Days, and still i didnt figured out how to get several things to run, can anybody maybe help me?
Thanks in advance!
@hooligan
Persistent > Create Anti KS or another name and activate
Where can i find the minDist? I searched all over the bot, but couldnt find it :S
But it still works on my MS at all :P
@Leonardo
everything was smooth for few months, now it starts stealing mobs, idk why.
any ideas ?
i tried script under other name and i've downloaded lastets libs, still nothing tho
Last edited by dathan; 04-03-2015 at 11:39 PM.
does this still work and what i have to set as a mage for dont atk any monster when player in screen?
Use this version:
init start
-- local SCRIPT_VERSION = "3.0.0"
local IgnoreList = {
-- Monsters to ignore from your targeting
Monsters = {},
-- Players to ignore, it will KS this people
Players = {'Bubble', 'Eternal Oblivion'}
}
table.lower(IgnoreList.Monsters)
init end
auto(200, 400)
if paroundignore(10, unpack(IgnoreList.Players)) > 0 then
foreach settingsentry e 'Targeting/Creatures' do
local monsterName = get(e, 'Name')
if not table.find(IgnoreList.Monsters, monsterName) then
for i = 1, 4 do
set(e, sprintf('Setting%d/MustAttackMe', i), 'yes')
end
end
end
-- This delay is here to avoid killing the monster
-- as soon as the other player is off your screen
wait(10000, 15000)
else
foreach settingsentry e 'Targeting/Creatures' do
local monsterName = get(e, 'Name')
if not table.find(IgnoreList.Monsters, monsterName) then
for i = 1, 4 do
set(e, sprintf('Setting%d/MustAttackMe', i), 'no')
end
end
end
-- This delay is here for the same purpose as above
wait(10000, 15000)
end
Do you put this in Scrtiper -> persistent or in cavebot -> scripter?
Doesnt work...