Signup Now
Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Free User
    Join Date
    Nov 2014
    Posts
    11
    Reputation
    9
    Rep Power
    0

    Lightbulb Add Anti-KS option to bot

    I think you should really input an Anti-KS function in targeting.

    there is only 1 anti-ks script here on the forums, and I havent gotten it to work on either a druid or knight..

    just started botting again since neobot and started a new account, its fine now botting in noob places where theres just other botters around but when I start botting at other places I would really like to have some kind of anti-ks since I believe 90% of all reports is caused because you atk other peoples monsters.

    if not a function in the bot, at least make a script for it (that works 100%)

  2. #2
    Free User strahowski's Avatar
    Join Date
    Aug 2014
    Posts
    216
    Reputation
    27
    Rep Power
    20
    setsetting('Targeting/Creatures/Necromancer/Setting1/MustAttackMe', 'yes')

  3. #3
    Free User Leitsha's Avatar
    Join Date
    Dec 2014
    Posts
    39
    Reputation
    17
    Rep Power
    0
    Quote Originally Posted by strahowski View Post
    setsetting('Targeting/Creatures/Necromancer/Setting1/MustAttackMe', 'yes')
    The thing is, that most of the time, he only considers the monster to be attacking you if he actually hits you.
    So you don't want to run MustAttackMe all the time.
    if paround() > 0 then
    setsetting('Targeting/Creatures/Necromancer/Setting1/MustAttackMe', 'yes')
    else
    setsetting('Targeting/Creatures/Necromancer/Setting1/MustAttackMe', 'no')
    end

    That could be considered more optimal, except that its not. Even if there is player on the screen, you don't want to skip mosters that target you, but are for eg. 3 sqm away and bot doesn't recognize them as attacking you yet.

    L.
    No progress comes from pleasure
    We smile in ignorance and learn in pain

  4. #4
    Free User
    Join Date
    Nov 2014
    Posts
    11
    Reputation
    9
    Rep Power
    0
    Quote Originally Posted by Leitsha View Post
    The thing is, that most of the time, he only considers the monster to be attacking you if he actually hits you.
    So you don't want to run MustAttackMe all the time.
    if paround() > 0 then
    setsetting('Targeting/Creatures/Necromancer/Setting1/MustAttackMe', 'yes')
    else
    setsetting('Targeting/Creatures/Necromancer/Setting1/MustAttackMe', 'no')
    end

    That could be considered more optimal, except that its not. Even if there is player on the screen, you don't want to skip mosters that target you, but are for eg. 3 sqm away and bot doesn't recognize them as attacking you yet.

    L.
    Exactly he seem to miss alot of creatures with mustattackme on.

    but your code there could work pretty good actualy the only problem I see is that when here is a monster that atk from a distance and is clearly not attacking you, but another player that is out of screen. but thx anyway, im gonna try that one!

    I think there must be some kind of way to see in the client if a monster is TARGETING me right?

  5. #5
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Quote Originally Posted by neobot View Post
    Exactly he seem to miss alot of creatures with mustattackme on.

    but your code there could work pretty good actualy the only problem I see is that when here is a monster that atk from a distance and is clearly not attacking you, but another player that is out of screen. but thx anyway, im gonna try that one!

    I think there must be some kind of way to see in the client if a monster is TARGETING me right?
    Yes when the monster has a black square cornering it, he's attacking you, that's how the bot read the 'mustAttackMe' information, an update is on the way for Anti KS.

  6. #6
    Free User
    Join Date
    Nov 2014
    Posts
    11
    Reputation
    9
    Rep Power
    0
    Quote Originally Posted by Leonardo View Post
    Yes when the monster has a black square cornering it, he's attacking you, that's how the bot read the 'mustAttackMe' information, an update is on the way for Anti KS.
    Yes exactly thats how the bot see that a monster is attacking you, but im thinking there must be a way to see if a monster is targeting you, not just attacking. maybe that is what you are working on now sounds good anyways, hope it comes soon! cheers

  7. #7
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    Quote Originally Posted by neobot View Post
    Yes exactly thats how the bot see that a monster is attacking you, but im thinking there must be a way to see if a monster is targeting you, not just attacking. maybe that is what you are working on now sounds good anyways, hope it comes soon! cheers
    There isn't.

  8. #8
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Please try this anti KS 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
    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
    end

  9. #9
    Free User
    Join Date
    Nov 2014
    Posts
    11
    Reputation
    9
    Rep Power
    0
    Quote Originally Posted by Leonardo View Post
    Please try this anti KS version:
    Thanks alot I've tried it now and it works, but a few problems:
    1. If the bot sees the monster before the person (which happens every time I think, didnt test it so much) it starts attacking it anyways and even tho the script set the targeting to "must attack me" it still continue to attack the monster untill its dead.
    2. When he goes past the player that has a monster then when it starts to get out of the screen it starts attacking that monster since the player "dissapear" and after taking 1-2 steps stops attacking it etc etc.

    I think the simple solution would be to set a limit that the character will ignore the monsters that are more than 6sqm from you, or how much it has to be, I dont know. But this will make the bot maybe miss some of the monsters sadly, but I think it wouldnt be that bad I just have to make the script go a little further in the caves/rooms etc. But if there is another solution that would be awesome!
    Last edited by neobot; 01-28-2015 at 05:54 PM.

  10. #10
    Free User
    Join Date
    Nov 2014
    Posts
    11
    Reputation
    9
    Rep Power
    0
    nothing?

    btw I think you should add something like this too: if a player is on the screen then stop attacking the monster if it hasent already attacked you (if thats possible)

    I think it would work great then with the other fixes also I suggested
    Last edited by neobot; 01-31-2015 at 05:39 PM.

 

 

Posting Permissions

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