Signup Now
Page 1 of 6 123 ... LastLast
Results 1 to 10 of 53

Thread: Anti KS

  1. #1
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22

    Anti KS

    This script version is deprecated, if you have problems with it, use this solution.

    Anti KS (Kill Steal)


    Description

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


    Configuration

    Change the MinimumDistance 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

    Download
    Last edited by Leonardo; 04-24-2015 at 07:40 PM. Reason: Updated 02/feb/2014

  2. #2
    Free User Nightshade's Avatar
    Join Date
    Dec 2013
    Location
    Brasil
    Posts
    513
    Reputation
    31
    Rep Power
    22
    testing
    Tibia player since 2003

    +Rep Everyone That Helped You.

    New on WindBot?, Try this amazing tutorial

  3. #3
    Moderator SuNe's Avatar
    Join Date
    Dec 2013
    Location
    Sweden
    Posts
    2,880
    Reputation
    186
    Rep Power
    27
    @Gore , thing you asked me about yesterday.
    กิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิ ิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิ ิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิ ิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิ ิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิ ิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิ ิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิ ิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิก ิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิ ิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิ ิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิ ิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิ ิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิ ิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิ ิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิ ิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิ ิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิ ิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิ ิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิ ิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิ ิิิิิิิิ

  4. #4
    Moderator RoxZin xD's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    4,914
    Reputation
    109
    Rep Power
    31
    You must spread some Reputation around before giving it to Leonardo again.

    Even though I'm not gonna use it (screw everyone on my spawns xD), this is fucking awesome o.o



    Troubled Animals Quest [100+]
    ALL
    Feyrist Animals Surface [160+]
    RP
    Feyrist Silencers Underground X1 [180+]
    RP | EK
    Feyrist Silencers Underground X2 [200+]
    RP | EK
    Feyrist Silencers Surface [210+]
    RP | EK
    Rathleton Sewers [240+]
    RP
    Glooth Fairy [350+]
    ED/MS
    Hardcore Draken Walls [400+]
    EK

  5. #5
    Free User stmaster's Avatar
    Join Date
    Dec 2013
    Location
    Mexico
    Posts
    222
    Reputation
    24
    Rep Power
    21
    Quote Originally Posted by RoxZin xD View Post
    You must spread some Reputation around before giving it to Leonardo again.

    Even though I'm not gonna use it (screw everyone on my spawns xD), this is fucking awesome o.o
    wtf? ewwwwwwwwww xD
    Check my Botting Project: HERE - If i helped, please +REP

  6. #6
    Free User
    Join Date
    Dec 2013
    Posts
    40
    Reputation
    12
    Rep Power
    0
    i test it but my character keep attack others player monster

  7. #7
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Quote Originally Posted by Fisen View Post
    i test it but my character keep attack others player monster
    If you are EK please put the distance to 1 or 2. For other vocations put it on 5 or more.

  8. #8
    Free User
    Join Date
    Dec 2013
    Posts
    40
    Reputation
    12
    Rep Power
    0
    Quote Originally Posted by Leonardo View Post
    If you are EK please put the distance to 1 or 2. For other vocations put it on 5 or more.
    i tried with 1, and 2, but it still attack others players monster, maybe i doing anything wrong? i put the action in presistent, and non pvp mode, help!

  9. #9
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Quote Originally Posted by Fisen View Post
    i tried with 1, and 2, but it still attack others players monster, maybe i doing anything wrong? i put the action in presistent, and non pvp mode, help!
    It should work, please, check if nothing come wrong: open help > console > it'll pop up a window, check if there are errors relationed to the script, if you don't know how to check just copy here the last one. Wherever you put the code should work, persistent or cavebot. If you didn't, download and put Raphael's library on the libs folder.

  10. #10
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Please redownload. Script was bugged now it's working.

 

 

Posting Permissions

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