Results 1 to 9 of 9

Thread: How to set Targetting

  1. #1
    Normal User
    Join Date
    May 2012
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0

    How to set Targetting

    Hello.

    I want set targetting like in NeoBot "Lure & Keep Away"

    How to set like this in iBOT ?

  2. #2
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    955 Post(s)
    Reputation
    586
    Rep Power
    10
    Settings > Targeting > Monsters > 'NameOfMonster' > List Settings\


    The screenshot should be helpfull:




    The 'Stance' it's exectly that what you asked for.

  3. #3
    Normal User
    Join Date
    May 2012
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    Ye but I ask for LURE. Its important.

  4. #4
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    955 Post(s)
    Reputation
    586
    Rep Power
    10
    There is no stance Lure and Keep Away

  5. #5
    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
    Stance Lure, Distance 3.

  6. #6
    Normal User
    Join Date
    May 2012
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    Hello.

    Does not work. He lure monster to lure WAYPOINT and stay with monster.

    Here is my targetting


  7. #7
    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
    Because there is no Lure & keep away yet.

  8. #8
    Normal User
    Join Date
    May 2012
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    So any suggestions ?

  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
    Green line: Special Area
    Red dot: Lure waypoint
    White area: you want to run with monster in this


    So what you want to do is the following:

    When outside the white area
    1. disable special areas(green line)
    2. Change stance of monsters to Lure // to lure them inside white area

    When you run inside the area with the monster(using lure function) you want to
    1. Enable the area (green line)
    2. Change stance to Keep Away. // To keep distance inside area

    Action:
    PHP Code:
    --[[Setup]]--
    CREATURES = {"War Golem","Worker Golem"} -- Change targeting settings(lure/keep away stances)
    AREAS = {"North","South","East","West"}

    POSITION1 33097 -- Check screenshot for explanation
    POSITION2 
    31104 -- Check screenshot for explanation
    POSITION3 
    33104 -- Check screenshot for explanation
    POSITION4 
    31111 -- Check screenshot for explanation

    --[[Functions]]--
    function 
    IsInArea(LEFTXTOPYRIGHTXBOTTOMY)
        if (
    posx >= LEFTX) and (posx <= RIGHTX) and (posy >= TOPY) and (posy <= BOTTOMYthen
            
    return true
        
    else
            return 
    false
        end
    end

    function IsTargetInArea(LEFTXTOPYRIGHTXBOTTOMY)
        if (
    target.posx >= LEFTX) and (target.posx <= RIGHTX) and (target.posy >= TOPY) and (target.posy <= BOTTOMYthen
            
    return true
        
    else
            return 
    false
        end
    end

    --[[Engine]]--
    if (
    target.id 0then
        
    if (IsInArea(POSITION1,POSITION2,POSITION3,POSITION4)) and (IsTargetInArea(POSITION1,POSITION2,POSITION3,POSITION4)) then
            
    for 1#CREATURES do
                
    setsettings("Settings\\Targeting\\Monsters\\"..CREATURES[i].."\\ListSettings\\Setting0\\Stance","Keep Away")
                
    setsettings("Settings\\Targeting\\Monsters\\"..CREATURES[i].."\\ListSettings\\Setting0\\Distance","4")
            
    end
            
    for 1#AREAS do
                
    setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\"..AREAS[i].."\\ConsideredBy","Target")
            
    end
        
    else
            for 
    1#CREATURES do
                
    setsettings("Settings\\Targeting\\Monsters\\"..CREATURES[i].."\\ListSettings\\Setting0\\Stance","Lure")
                
    setsettings("Settings\\Targeting\\Monsters\\"..CREATURES[i].."\\ListSettings\\Setting0\\Distance","4")
            
    end
            
    for 1#AREAS do
                
    setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\"..AREAS[i].."\\ConsideredBy","None")
            
    end
        end
    end 
    Sorry if I explained it poorly, I'm really tired. If you have any questions feel free to PM me.
    Last edited by soder; 11-16-2012 at 06:41 AM.

Posting Permissions

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