Signup Now
Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 53

Thread: Anti KS

  1. #11
    Free User
    Join Date
    Dec 2013
    Posts
    40
    Reputation
    12
    Rep Power
    0
    Quote Originally Posted by Leonardo View Post
    Please redownload. Script was bugged now it's working.
    thanks leo for fix it!, i testing

  2. #12
    Free User
    Join Date
    Jan 2014
    Posts
    3
    Reputation
    10
    Rep Power
    0
    kk so 5 distance for a mage.. gonna test this now

  3. #13
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Quote Originally Posted by stush View Post
    kk so 5 distance for a mage.. gonna test this now
    Ye it'll attack without ignoring all monsters on 5 distance range, from 6 or more it'll see if it's attacking you or if someone else is on screen. You can decrease/increase it to suit your needs.
    Last edited by Leonardo; 01-30-2014 at 12:47 PM.

  4. #14
    Free User
    Join Date
    Dec 2013
    Posts
    40
    Reputation
    12
    Rep Power
    0
    hey leo, can u add ppl that i WANNA do ks? like, others bots in the same cave :x?

  5. #15
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Quote Originally Posted by Fisen View Post
    hey leo, can u add ppl that i WANNA do ks? like, others bots in the same cave :x?
    Added a Safe List, just add names of players you want to KS.

  6. #16
    Free User
    Join Date
    Dec 2013
    Posts
    40
    Reputation
    12
    Rep Power
    0
    Quote Originally Posted by Leonardo View Post
    Added a Safe List, just add names of players you want to KS.
    yeah!!, thanks leo, u are the best!

  7. #17
    Free User Nightshade's Avatar
    Join Date
    Dec 2013
    Location
    Brasil
    Posts
    513
    Reputation
    31
    Rep Power
    22
    not woking here, seted the dist to 2 i'im using in a knight, and never ignore the monster :S
    Tibia player since 2003

    +Rep Everyone That Helped You.

    New on WindBot?, Try this amazing tutorial

  8. #18
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Quote Originally Posted by Nightshade View Post
    not woking here, seted the dist to 2 i'im using in a knight, and never ignore the monster :S
    It's working for me. The safelist is people you want to KS. In your setting, it'll attack monsters with distance 2 or less, the others will be ignored if there are players near, otherwise it'll attack them too.

  9. #19
    Free User HanzHanz's Avatar
    Join Date
    Jan 2014
    Posts
    26
    Reputation
    11
    Rep Power
    0
    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 MinDist = 1
    local SafeList = {}

    -- DO NOT EDIT BELOW --
    MinDist = math.max(MinDist or 1, 1)
    table.lower(SafeList)

    init end

    auto(200, 400)

    local players, monsters = {}, {}

    foreach creature c 'fx' do
    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

    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)

    if #players > 0 then
    for _, cre in ipairs(monsters) do
    if cre.dist > 8 then
    local x, y, z = cre.posx, cre.posy, cre.posz

    for a = 0, 7 do
    local j = -a

    while j <= a do
    local i = -a

    while i <= a do
    local pos = {x = x + i, y = y + j}

    if iscreatureontile(pos.x, pos.y, z, 'player') then
    local player = findcreatureontile(pos.x, pos.y, z)

    if player and not table.find(SafeList, player.name) then
    ignorecreature(cre)
    end
    end

    if math.abs(j) ~= a then
    i = i + a * 2
    else
    i = i + 1
    end
    end
    j = j + 1
    end
    end
    elseif cre.lastattacked > 10000 then
    if not tilereachable(cre.posx, cre.posy, cre.posz) then
    ignorecreature(cre)
    elseif paround(7, false) > 0 and cre.dist > MinDist then
    ignorecreature(cre)
    end
    else
    ignorecreature(cre, true)
    end
    end
    end

    if $attacked.ignored then
    keyevent(0x1B) waitping()
    end

    Gist
    Not even working, tried to set it to 1-6 but no work.
    I tend to bite off a little more than I can chew, hoping I'll quickly learn how to chew it.

  10. #20
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Might take a look later today.

 

 

Posting Permissions

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