Results 1 to 6 of 6

Thread: Need help with Special Area Action

  1. #1
    iBot User Bosse101's Avatar
    Join Date
    Jul 2012
    Location
    Sweden
    Posts
    273
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    185
    Rep Power
    6

    Question Need help with Special Area Action

    This is 2 Actions I used in Neobot need someone to make it work with Ibot

    Special Area OFF
    PHP Code:
    local consideredby getsetting('Cavebot/Pathfinding/SpecialAreas/Area1/ConsideredBy'
    auto(100
    if 
    consideredby == 'Targeting' and $posz == 10 and $posy 31313 then setsetting('Cavebot/Pathfinding/SpecialAreas/Area1/ConsideredBy''None')
    end 
    Special Area ON
    PHP Code:
    local consideredby getsetting('Cavebot/Pathfinding/SpecialAreas/Area1/ConsideredBy'
    auto(100)
    if 
    consideredby == 'None' and $posz == 10 and $posy 31313 then setsetting('Cavebot/Pathfinding/SpecialAreas/Area1/ConsideredBy''Targeting')
    end 
    Last edited by Bosse101; 06-26-2013 at 08:03 PM.

  2. #2
    iBot User Bosse101's Avatar
    Join Date
    Jul 2012
    Location
    Sweden
    Posts
    273
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    185
    Rep Power
    6
    FIXED IT

    Special Area OFF
    PHP Code:
    if posy 31313 then
    setsettings
    ("Settings\\Cavebot\\Pathfinding\\SpecialAreas\\NewArea0\\ConsideredBy""None")
    setsettings("Settings\\Cavebot\\Pathfinding\\SpecialAreas\\NewArea0\\ConsideredBy""None")
    end 
    Special Area ON
    PHP Code:
    if posy 31313 then
    setsettings
    ("Settings\\Cavebot\\Pathfinding\\SpecialAreas\\NewArea0\\ConsideredBy""Target")
    setsettings("Settings\\Cavebot\\Pathfinding\\SpecialAreas\\NewArea0\\ConsideredBy""Target")
    end 
    Last edited by Bosse101; 06-26-2013 at 08:04 PM.

  3. #3
    Premium User
    Join Date
    May 2013
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    this special area, is working?

  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
    Quote Originally Posted by Bosse101 View Post
    FIXED IT

    Special Area OFF
    PHP Code:
    if posy 31313 then
    setsettings
    ("Settings\\Cavebot\\Pathfinding\\SpecialAreas\\NewArea0\\ConsideredBy""None")
    setsettings("Settings\\Cavebot\\Pathfinding\\SpecialAreas\\NewArea0\\ConsideredBy""None")
    end 
    Special Area ON
    PHP Code:
    if posy 31313 then
    setsettings
    ("Settings\\Cavebot\\Pathfinding\\SpecialAreas\\NewArea0\\ConsideredBy""Target")
    setsettings("Settings\\Cavebot\\Pathfinding\\SpecialAreas\\NewArea0\\ConsideredBy""Target")
    end 
    Was that so hard?

    This is easier:

    PHP Code:
    if posy 31313 then
    setsettings
    ("Settings\\Cavebot\\Pathfinding\\SpecialAreas\\NewArea0\\ConsideredBy""Target")
    else
    setsettings("Settings\\Cavebot\\Pathfinding\\SpecialAreas\\NewArea0\\ConsideredBy""None")
    end 

  5. #5
    iBot User Bosse101's Avatar
    Join Date
    Jul 2012
    Location
    Sweden
    Posts
    273
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    185
    Rep Power
    6
    Quote Originally Posted by pink_panther View Post
    Was that so hard?

    This is easier:

    PHP Code:
    if posy 31313 then
    setsettings
    ("Settings\\Cavebot\\Pathfinding\\SpecialAreas\\NewArea0\\ConsideredBy""Target")
    else
    setsettings("Settings\\Cavebot\\Pathfinding\\SpecialAreas\\NewArea0\\ConsideredBy""None")
    end 
    It wasn't that hard, I was just abit lazy at the time

    Thanks!

  6. #6
    iBot User Bosse101's Avatar
    Join Date
    Jul 2012
    Location
    Sweden
    Posts
    273
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    185
    Rep Power
    6
    Quote Originally Posted by dawisonms View Post
    this special area, is working?
    Its working, yes.

Posting Permissions

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