Signup Now
Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 53

Thread: Anti KS

  1. #31
    Free User
    Join Date
    Sep 2014
    Posts
    3
    Reputation
    10
    Rep Power
    0
    Gist not working.. either..

  2. #32
    Free User
    Join Date
    Mar 2014
    Posts
    72
    Reputation
    7
    Rep Power
    0
    @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?

  3. #33
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Quote Originally Posted by Oronanomicon View Post
    @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.

  4. #34
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Script updated, fixed some unexpected bugs and improved performance.

  5. #35
    Free User
    Join Date
    Oct 2014
    Posts
    7
    Reputation
    10
    Rep Power
    0
    Thank you working very well! rep+

  6. #36
    Free User
    Join Date
    Oct 2014
    Posts
    14
    Reputation
    10
    Rep Power
    0
    For me it's still bugged on some monsters even when they are attacking me, anyone else has this problem?

  7. #37
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,424
    Reputation
    119
    Rep Power
    23
    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

  8. #38
    Free User ratrider's Avatar
    Join Date
    Aug 2014
    Location
    Sweden
    Posts
    286
    Reputation
    35
    Rep Power
    20
    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.

  9. #39
    Wind Powered Currykaninen's Avatar
    Join Date
    Nov 2014
    Location
    Sweden/Stockholm
    Posts
    140
    Reputation
    10
    Rep Power
    19
    Quote Originally Posted by Leonardo View Post
    Anti KS (Kill Steal)


    Description

    Avoid killing monsters that doesn't belong to your character while hunting.


    Configuration

    Change the MinDist variable to specify the distance limit to kill monsters. For Knights set this option to 1 or 2, for other vocations put 3 - 6. You can add characters names you want to steal by putting their names on the SafeList table.


    Code

    init start
    --local SCRIPT_VERSION = "2.0.0"

    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

    Gist


    I dont get this Anti ks script to work, i am druid, put 5/6 and it steals anyway?
    and when i play on Knight i put 1/2 and it steals?
    Playing Celesta & Quilia

    190+ EK at Celesta ~
    110+ RP at Quilia ~
    150+ ED at Aurora ~
    Contact me if you play on celesta or Quilia

  10. #40
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Quote Originally Posted by Currykaninen View Post
    I dont get this Anti ks script to work, i am druid, put 5/6 and it steals anyway?
    and when i play on Knight i put 1/2 and it steals?
    5-6 will steal in the range 5-6 if you dont want to steal then decrease this value, but with 1-2 my ek is not ksing anyone.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •