[Help] Macro Priority

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

Moderator: Moderators

danzhere
Noob
Noob
Posts: 4
Joined: 22 Nov 2011, 02:16
Noob?: Yes

[Help] Macro Priority

#1 Post by danzhere »

i wanna ask this simple question
how can i set priority in macro ?
it mean i can priority the priority macro n wait priority macro to finish and then go to sp macro ?
tq
sorry for bad english :D
automacro sp {
sp > 50%
timeout 40
call healsp
}


automacro priority {
sp > 50%
call healsp
}
noobotter
Moderators
Moderators
Posts: 139
Joined: 31 Jul 2008, 22:12
Noob?: No

Re: [Help] Macro Priority

#2 Post by noobotter »

Let me clarify, you want the automacro priority to finish first before executing automacro sp right?
We have a special condition called priority.

Quoted from http://wiki.openkore.com/index.php?title=Macro_plugin
priority <num>
Chooses which automacros should be checked before others. The smaller the <num> is, the sooner the automacro gets checked. If priority is not given, the priority is assumed to be 0. (zero: check first).

Code: Select all

automacro sp {
priority 2
sp > 50%
timeout 40
call healsp
}


automacro priority {
priority 1
sp > 50%
call healsp
}
The one with the lower priority value will be checked first.
A storm is coming.