Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Anti white skull with exori flam

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

    Anti white skull with exori flam

    I need an action that makes me turn around if someone stands in my way, so i dont do exori flam when the creep is dead

    thanks

  2. #2
    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
    PHP Code:
    -- CREATED BY SIRMATE
    local 
    function isPlayerOnTile(POSITION_XPOSITION_YPOSITION_Z)
        
    local TILE_DATA gettile(POSITION_XPOSITION_YPOSITION_Z)
        
        for 
    CURRENT_INDEX 0TILE_DATA.count do
            if (
    TILE_DATA.items[CURRENT_INDEX].id == 99 and TILE_DATA.items[CURRENT_INDEX].count <= 0x40000000then
                
    return true
            end
        end
        
        
    return false
    end


    if (30 >= target.hppc and target.id and paround(4) > 0then
        local POSITIONS
    FREE_DIRECTIONS = {{0= -1DIR = [[n]]}, {10DIR = [[e]]}, {01DIR = [[s]]}, {= -10DIR = [[w]]}}, {}
            
        if (
    isPlayerOnTile(posx POSITIONS[getcreature(id).direction 1].Xposy POSITIONS[getcreature(id).direction 1].Yposz)) then
            
    for _POSITION in ipairs(POSITIONS) do
                if (
    not isPlayerOnTile(posx POSITION.Xposy POSITION.Yposz)) then
                    table
    .insert(FREE_DIRECTIONSPOSITION.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_DIRECTIONwait(2575)
                    
    updateworld()
                
    end
            end
        end
    end 

  3. #3
    Normal User
    Join Date
    Jul 2012
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by soder View Post
    PHP Code:
    -- CREATED BY SIRMATE
    local 
    function isPlayerOnTile(POSITION_XPOSITION_YPOSITION_Z)
        
    local TILE_DATA gettile(POSITION_XPOSITION_YPOSITION_Z)
        
        for 
    CURRENT_INDEX 0TILE_DATA.count do
            if (
    TILE_DATA.items[CURRENT_INDEX].id == 99 and TILE_DATA.items[CURRENT_INDEX].count <= 0x40000000then
                
    return true
            end
        end
        
        
    return false
    end


    if (30 >= target.hppc and target.id and paround(4) > 0then
        local POSITIONS
    FREE_DIRECTIONS = {{0= -1DIR = [[n]]}, {10DIR = [[e]]}, {01DIR = [[s]]}, {= -10DIR = [[w]]}}, {}
            
        if (
    isPlayerOnTile(posx POSITIONS[getcreature(id).direction 1].Xposy POSITIONS[getcreature(id).direction 1].Yposz)) then
            
    for _POSITION in ipairs(POSITIONS) do
                if (
    not isPlayerOnTile(posx POSITION.Xposy POSITION.Yposz)) then
                    table
    .insert(FREE_DIRECTIONSPOSITION.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_DIRECTIONwait(2575)
                    
    updateworld()
                
    end
            end
        end
    end 
    Thanks! Gonna test it later, does it turn around all the time or when a monster is on screen?

  4. #4
    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
    That or you could enable PlayerOnScreenSecurity under targeting settings.

  5. #5
    Normal User
    Join Date
    Jul 2012
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    6
    Rep Power
    0
    Quote Originally Posted by pink_panther View Post
    That or you could enable PlayerOnScreenSecurity under targeting settings.
    That is pretty much like giving them bot killers a free kill.

  6. #6
    Normal User
    Join Date
    Jul 2012
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Doesn't work...

  7. #7
    iBot User
    Join Date
    Jul 2012
    Posts
    246
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    still gets skullbashed somehow -.-

  8. #8
    iBot User
    Join Date
    Jun 2012
    Posts
    517
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    132
    Rep Power
    7
    This action to anti skull by sirmate doesn't work soder.

  9. #9
    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
    It does for me.

  10. #10
    iBot User
    Join Date
    Jun 2012
    Posts
    517
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    132
    Rep Power
    7
    Hm.. So i will check it once again.

Posting Permissions

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