can you help me please ?automacro quest {
run-once 1
exclusive 1
console You have died
call quest
}
macro quest {
base <= 20
call BountyOfPayon1
base = 21
call BountyOfPayon2
base = 41
call BountyOfPayon3
}
Help returning char level ! Depending macro
Moderator: Moderators
Help returning char level ! Depending macro
hello, I try to make a macro that can trigger a macro depending on the character level
Re: Help
*Note : console ("<text>" | /<regexp>/) ! console You have died is wrong. Try with quotes or using slash to work with regexp.MiDaM wrote:hello, I try to make a macro that can trigger a macro depending on the character level
can you help me please ?automacro quest {
run-once 1
exclusive 1
console You have died
call quest
}
macro quest {
base <= 20
call BountyOfPayon1
base = 21
call BountyOfPayon2
base = 41
call BountyOfPayon3
}
Solution :
You could use @eval condition. Using char variable : $char->{lv} (Base) and $char->{lv_job} (Job level (Class) and not Class such as "Thief").
If you don't know how...
Check this :
http://forums.openkore.com/viewtopic.php?f=32&t=142127
Look at the macro "unstuck" and see how it returns your position. Now do this with your level.
Now do something like :
$base = @eval command to return (study)
if (arg1 <Conditions> arg2) (goto <label> | call <macro> [<n>] | stop | { )
if ($base == X) call macro
You can search for more examples.
#Note 2 : run-once 1 will run once. :O to unlock :
http://wiki.openkore.com/index.php/Macro_plugin
run-once (0 | 1)
When set to 1 the automacro will be locked after being triggered.
Use the macro command release to unlock this automacro.
May be used only once per automacro block
Learn rules
Re: Help returning char level ! Depending macro
thank you a lot