Results 1 to 8 of 8

Thread: How do you not attack other peoples creatures?

  1. #1
    Normal User
    Join Date
    Jul 2012
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5

    How do you not attack other peoples creatures?

    As title says, i need some help with this lol.

  2. #2
    iBot User nfleiderv's Avatar
    Join Date
    Jun 2012
    Posts
    366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    27
    Rep Power
    5
    LOL i also need this...

  3. #3
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Action:
    Code:
    local r = 5 -- Range.
    local safelist = {'Bubble', 'Eternal Oblivion'} -- The bot WILL KS this players. Add more to this if you want.
    table.insert(safelist, name) -- Do not edit it.
    local ppos = {}
    local pinfo = _getcreatures("psf")
    local cinfo = _getcreatures("msf")
    
    for a = 1, pinfo.count do
        local ab=a-1
        if not table.find(safelist, pinfo[ab].name) then
            table.insert(ppos, {x = pinfo[ab].x, y = pinfo[ab].y})
        end
    end
    
    for b = 1, cinfo.count do
        local ignore = false
        local bb=b-1
        if cinfo[bb].id ~= target.id then
            for i = 1, #ppos do
                local difx, dify = ppos[i].x - cinfo[bb].x, ppos[i].y - cinfo[bb].y
                if math.abs(difx) <= r and math.abs(dify) <= r then
                    ignore = true
                    if cinfo[bb].ignored == false then
                        ignorecreature(cinfo[bb].id,true)
                        stopattack()
                    end
                    break
                end
            end
        end
        if ignore == false and cinfo[bb].ignored == true then
            ignorecreature(cinfo[bb].id, true)
            stopattack()
        end
    end
    if target.id ~= 0 then
        if target.ignored then
            stopattack()
        end
    end
    http://www.tibiaibot.com/forum/showt...Anti-KS-Action

  4. #4
    iBot User nfleiderv's Avatar
    Join Date
    Jun 2012
    Posts
    366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    27
    Rep Power
    5
    Quote Originally Posted by soder View Post
    Action:
    Code:
    local r = 5 -- Range.
    local safelist = {'Bubble', 'Eternal Oblivion'} -- The bot WILL KS this players. Add more to this if you want.
    table.insert(safelist, name) -- Do not edit it.
    local ppos = {}
    local pinfo = _getcreatures("psf")
    local cinfo = _getcreatures("msf")
    
    for a = 1, pinfo.count do
        local ab=a-1
        if not table.find(safelist, pinfo[ab].name) then
            table.insert(ppos, {x = pinfo[ab].x, y = pinfo[ab].y})
        end
    end
    
    for b = 1, cinfo.count do
        local ignore = false
        local bb=b-1
        if cinfo[bb].id ~= target.id then
            for i = 1, #ppos do
                local difx, dify = ppos[i].x - cinfo[bb].x, ppos[i].y - cinfo[bb].y
                if math.abs(difx) <= r and math.abs(dify) <= r then
                    ignore = true
                    if cinfo[bb].ignored == false then
                        ignorecreature(cinfo[bb].id,true)
                        stopattack()
                    end
                    break
                end
            end
        end
        if ignore == false and cinfo[bb].ignored == true then
            ignorecreature(cinfo[bb].id, true)
            stopattack()
        end
    end
    if target.id ~= 0 then
        if target.ignored then
            stopattack()
        end
    end
    http://www.tibiaibot.com/forum/showt...Anti-KS-Action
    where do I put this action?

  5. #5
    Normal User
    Join Date
    Jul 2012
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    Omfg thanks! lol, i was attacking everyones creatures ppl were gettin maaad

  6. #6
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Quote Originally Posted by nfleiderv View Post
    where do I put this action?
    Settings > Actions > list

  7. #7
    Normal User Warsaw's Avatar
    Join Date
    Jul 2012
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Settings > Targeting > Monsters > X monster > ListSettings >MustAttackMe :Yes

  8. #8
    Normal User AcidAlchamy's Avatar
    Join Date
    Jul 2012
    Location
    The Labratory
    Posts
    749
    Mentioned
    16 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    180
    Rep Power
    7
    this is what I use

    PHP Code:
    if paround() >= 
    then setsettings
    ("Settings\\Targeting\\Monsters\\wyrm\\MustAttackMe","yes") else
    setsettings("Settings\\Targeting\\Monsters\\wyrm\\MustAttackMe","no")
    end 
    just change "wyrm" to what ever you want the monster to be

    Follow my Activity on Facebook?
    https://www.facebook.com/AcidAlchamyPage
    Download iBot : iBot v2.3.6 - Released
    My Free Scripts :
    ★Free Scripts★ By Acid Alchamy
    Acid Alchamy Updates :
    Updates About Acid Alchamy
    All Scripts by Acid Alchamy :
    All My Posted Scripts
    Latest Thread by Acid Alchamy:
    [Tutorial] Sellers - Avoid Getting Scammed

    +Rep Everyone That Helps You, I'll ALWAYS Return A +Rep.





Posting Permissions

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