Results 1 to 7 of 7

Thread: Anti face script?

  1. #1
    iBot User
    Join Date
    May 2012
    Posts
    334
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    48
    Rep Power
    5

    Anti face script?

    Is there anti anti face scripts? since ive got white skull several times while botting on water elementals on other bots. lets say 2 people attacking same monsters and i kill the monster with wand with the last hit and after that the bot cast exori vis on a player thats stand near me.

    so does ibot have any anti face function/script? thanks

  2. #2
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    No, just create 2 settings for attack, one that stops casting exori spells when your target is less than 30% hp.

  3. #3
    Normal User
    Join Date
    May 2012
    Posts
    312
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    There was a hotkey that will turn other direction if any player is standing where you're looking at, will look for it later and if I find let you know

  4. #4
    iBot User
    Join Date
    May 2012
    Posts
    334
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    48
    Rep Power
    5
    Quote Originally Posted by Ithrix View Post
    There was a hotkey that will turn other direction if any player is standing where you're looking at, will look for it later and if I find let you know
    please msg when u find it.

  5. #5
    iBot User
    Join Date
    May 2012
    Posts
    334
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    48
    Rep Power
    5
    so anyone figured this out?

  6. #6
    Normal User JustAnotherDay's Avatar
    Join Date
    Jun 2012
    Posts
    47
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    13
    Rep Power
    5
    I believe this is sirmates

    Code:
    local function isPlayerOnTile(POSITION_X, POSITION_Y, POSITION_Z)
        local TILE_DATA = gettile(POSITION_X, POSITION_Y, POSITION_Z)
        
        for CURRENT_INDEX = 0, TILE_DATA.count - 1 do
            if (TILE_DATA.items[CURRENT_INDEX].id == 99 and TILE_DATA.items[CURRENT_INDEX].count <= 0x40000000) then
                return true
            end
        end
        
        return false
    end
    
    
    if (30 >= target.hppc and target.id > 0 and paround(4) > 0) then
        local POSITIONS, FREE_DIRECTIONS = {{X = 0, Y = -1, DIR = [[n]]}, {X = 1, Y = 0, DIR = [[e]]}, {X = 0, Y = 1, DIR = [[s]]}, {X = -1, Y = 0, DIR = [[w]]}}, {}
            
        if (isPlayerOnTile(posx + POSITIONS[getcreature(id).direction + 1].X, posy + POSITIONS[getcreature(id).direction + 1].Y, posz)) then
            for _, POSITION in ipairs(POSITIONS) do
                if (not isPlayerOnTile(posx + POSITION.X, posy + POSITION.Y, posz)) then
                    table.insert(FREE_DIRECTIONS, POSITION.DIR)
                end
            end
            
            if(#FREE_DIRECTIONS > 0) then
                local TURN_DIRECTION = FREE_DIRECTIONS[math.random(#FREE_DIRECTIONS)]
    
    
                while ((({[[n]], [[e]], [[s]], [[w]]})[getcreature(id).direction + 1]) ~= TURN_DIRECTION) do
                    turn(TURN_DIRECTION) wait(25, 75)
                end
            end
        end
    end

  7. #7
    Banned
    Join Date
    May 2012
    Posts
    680
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    24
    Rep Power
    0
    Little bit offtopic, but I'm glad to see that you gave credits to it's creator JustAnotherDay. Reping you jsut for that!

Posting Permissions

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