Results 1 to 6 of 6

Thread: Special area/targeting problem

  1. #1
    Normal User
    Join Date
    Aug 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Special area/targeting problem

    Hello i decided to make my first own script and i have a little problem:

    imagine area like this:
    PHP Code:
    ============================
    |                           |
    |                           |
    |                           |
    |                           |
    |=/=/=/=/=/=/=/=
    //=/=/=/=/=/|
    |                  [x]   [y]|
    |                           |
    |                           |
    |                           |
    ============================ 
    =/=/=/ - Special area line
    X- ME
    Y1 - BEHOLDER
    i start targeting him with royal spears he fallow him and beholder run away [sometimes] like that:
    PHP Code:
    ============================
    |                           |
    |                           |
    |                    [
    y]    |
    |                           |
    |=/=/=/=/=/=/=/=
    //=/=/=/=/=/|
    |                  [x]      |
    |                           |
    |                           |
    |                           |
    ============================ 
    he still want to kill him but he cant cross Special area line and he stands like that getting dmg by beholder + summons

    zami84 created action for me like : [but it doesnt work all the time]
    PHP Code:
    if (target.name == ("Bonelord")  or target.name == ("Elder Bonelord")) and standtime 4000 then settargetting("off")
        
    wait(5000)
     
    settargetting("on")
    end 
    what can i do with this situation ? i would like him to ignore this monster and go to the next wpt or mayby fallow him ?

    example screen:
    Click image for larger version. 

Name:	test2.jpg 
Views:	21 
Size:	34.5 KB 
ID:	18727
    Last edited by kapusta; 01-16-2014 at 03:50 PM.

  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
    Lua Code:
    if (target.name == ("Bonelord")  or target.name == ("Elder Bonelord")) and standtime > 3000 then 
        setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\NAZW  A_TWOJEJ_ARENY\\ConsideredBy", "None")
        wait(15000)
        setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\NAZW  A_TWOJEJ_ARENY\\ConsideredBy", "Target")
    end

  3. #3
    Normal User
    Join Date
    Aug 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Thanks! now it works great

  4. #4
    Normal User
    Join Date
    Aug 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Edit: I tested it for a while and idk sometimes it works sometimes it doesnt ?
    i'm adding screan for a proof
    Click image for larger version. 

Name:	test3.jpg 
Views:	23 
Size:	50.7 KB 
ID:	18738
    blue spots next to me = free spots he could run away

    PS if i have more special area lines next to the other so if i want use your action i need temporary disable 2 special areas m'i doing it right?:
    PHP Code:
    if (target.name == ("Bonelord")  or target.name == ("Elder Bonelord")) and standtime 3000 then 
        setsettings
    ("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\NAZW  A_TWOJEJ_ARENY\\ConsideredBy""None")
        
    setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\NAZW  A_TWOJEJ_ARENY2\\ConsideredBy""None")
        
    wait(15000)
        
    setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\NAZW  A_TWOJEJ_ARENY\\ConsideredBy""Target")
        
    setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\NAZW  A_TWOJEJ_ARENY2\\ConsideredBy""Target"
    end 

  5. #5
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    You have to add your specail area name instead of "NAZW A_TWOJEJ_ARENY" and "NAZW A_TWOJEJ_ARENY2". Also you forgot one ")", so should be:
    Lua Code:
    if (target.name == ("Bonelord")  or target.name == ("Elder Bonelord")) and standtime > 3000 then  
        setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\NAZW  A_TWOJEJ_ARENY\\ConsideredBy", "None") 
        setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\NAZW  A_TWOJEJ_ARENY2\\ConsideredBy", "None") 
        wait(15000) 
        setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\NAZW  A_TWOJEJ_ARENY\\ConsideredBy", "Target") 
        setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\NAZW  A_TWOJEJ_ARENY2\\ConsideredBy", "Target")
    end

    It will disable it when standtime is higher than 3sec.

  6. #6
    Normal User
    Join Date
    Aug 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    i know about twoja_nazwa xD It was example ;S i looked closer and yes it is working but Very slowly i would even if in action is 3s i have to wait like 10-15s mayby i setup wrong spamrate?

    Edit:
    Like i though action is good but my spamrate was stupid xD I though more spamrate = quicker ;D
    Last edited by kapusta; 01-16-2014 at 03:37 PM.

Posting Permissions

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