[Problem]Detecting the condition and execute the commands

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

Moderator: Moderators

rmon09
Noob
Noob
Posts: 9
Joined: 01 Jan 2011, 07:43
Noob?: No

[Problem]Detecting the condition and execute the commands

#1 Post by rmon09 »

I want to set a macro wherein *everytime* the char sp turns 5% it will warp to a given command

Anyone can help please ?

automacro sp {
sp <= 5%
location prontera
exclusive 1
run-once 1
call {
c @go 0
do move prontera 149 181
do talknpc 150 181 r0 n
pause 2
do talknpc 158 181 r0 n
pause 2
}
}
gelo2012
Plain Yogurt
Plain Yogurt
Posts: 58
Joined: 17 Sep 2012, 13:54
Noob?: Yes
Location: Sa Puso Mo

Re: [Problem]Detecting the condition and execute the commands

#2 Post by gelo2012 »

Try this:

Code: Select all

automacro sp {
sp <= 5%
location not prontera
run-once 1
call {
do ai manual
pause 1
c @go 0
pause 1
do move prontera 149 181
pause 1
do talknpc 150 181 r0 n
pause 2
do talknpc 158 181 r0 n
pause 2
release sp
}
}
PS :

sorry I forgot to add in the last line before the release sp:

Code: Select all

do ai on