Help: automacro if bot too long in same place -> ai clear

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

suggipuss
Noob
Noob
Posts: 14
Joined: 31 Mar 2012, 18:25
Noob?: Yes

Help: automacro if bot too long in same place -> ai clear

#1 Post by suggipuss »

Hi,
i have a problem with an automacro that im trying to make.. the problem is that my bot does telesearch but sometimes goes afk after a couple of teleports because of server lag (iRo Classic) and then just stands there until he reaches the sitauto hp lower value.. so i wanted to make a macro that does ai clear when the bots stands too long in the same place and hi hp and sp is at upper value of autosit

automacro antiIdle {
if
timeout 5
do ai clear {
if ($.hp > @config (sitAuto_hp_upper) || $.sp > @config (sitAuto_sp_upper)) call standIdle
}
}
}

my problem is that i cant find the if condition that describes when my bot is afk in some place in the lockmap... can somebody help me? thx ^^
SkylorD
Moderators
Moderators
Posts: 1202
Joined: 16 Dec 2011, 02:53
Noob?: Yes

Re: Help: automacro if bot too long in same place -> ai clear

#2 Post by SkylorD »

1.Read more about syntax the syntax of an automacro Here
It's completely wrong.

2.Set your sitAuto_idle to 0. #Config.txt

3.Could you post these lines : sitAuto_hp_upper and lower ? How did you set these lines ?

Anyway...you could use do eval AI::Clear !, but inside of an automacro with the correct syntax.
DEACTIVATED 8-)
suggipuss
Noob
Noob
Posts: 14
Joined: 31 Mar 2012, 18:25
Noob?: Yes

Re: Help: automacro if bot too long in same place -> ai clear

#3 Post by suggipuss »

i made this macro now.. i found that the problem i had was not connected to the bot having sit problems, but the problem was that i bot in iRo Classic server and teleportAuto_useSkill 1 must be used (which i did already from beginning) but the bot would get stuck on the popup screen of normal teleport sometimes.. so i searched the forum and i build this macro.

is this macro correct? as far as i tested when the bot got stuck on popup screen and i do ai clear command it would continue normally. So i just attached the ai clear command after every teleport and it seems to work..

## anti tele stuck ##

automacro antiIdle {
console /You use Teleport on yourself/
call {
do eval AI::clear
}
}

so is this macro correct? or are there better ways to deal with teleport popup stuck? (i dont get error message when bot gets stuck)
SkylorD
Moderators
Moderators
Posts: 1202
Joined: 16 Dec 2011, 02:53
Noob?: Yes

Re: Help: automacro if bot too long in same place -> ai clear

#4 Post by SkylorD »

Yeah, are correct. But i have my questions.

Try with this :
do eval AI::clear("move", "map", "route", "mapRoute", "skill", "teleport")
And set this for 1 (Just to sure) :

Code: Select all

teleportAuto_idle
DEACTIVATED 8-)