problems with a level check

For everything NOT server specific support. Do NOT ask for connectivity help here!.

Moderator: Moderators

cursedxxx
Human
Human
Posts: 25
Joined: 02 Aug 2009, 20:48
Noob?: No

problems with a level check

#1 Post by cursedxxx »

hello recently i started to play iro again (yggdrasil if i remember right) and started to work on a few macro's
im using openkore_ready (which seems to be up to date atleast when i try to update it with svn tortoise it claims to be up to date)
and am using the macro plugin from the wiki (with wxstart i have no idea if it's relevant i hope not since when i'm done i'd like to swap back to normal)

anyway i tried to make this level check (with what the wiki said)

first i tried:
lvl >= 11 , which din't work so well i tried lvl > 12 (i tought well what ever it won't hurt to try)
than i tried to use the $.lvl >= 11
and about any variant i could think of for the nomal lvl >= 11
but... well i REALLY am lost here i suppose since it always gives a error on the line of my level check

my level check is being called by another thing (or me)
and looks l ike this

Code: Select all

macro lvlCheck {
        lvl >= 11
call toTheRight
}else {
        call doSomethingElse
}

to be honest i have no idea if the else part is right (din't get any errors about it so far)
and yes the macro names don't make much sense i'm just trying if i could use this before actually spending a day on making it all.

please help me and thanks in advance
KoreGhost
Developers
Developers
Posts: 124
Joined: 28 Mar 2011, 12:48
Noob?: No
Location: Brazil

Re: problems with a level check

#2 Post by KoreGhost »

Code: Select all

base <condition> <level>
    Triggers when your base level matches <condition> <level>. 
    Multiple lines are treated as AND conditions. 


job <condition> <level>
    Triggers when your job level matches <condition> <level>. 
    Multiple lines are treated as AND conditions. 
http://openkore.com/index.php/Macro
cursedxxx
Human
Human
Posts: 25
Joined: 02 Aug 2009, 20:48
Noob?: No

Re: problems with a level check

#3 Post by cursedxxx »

thanks for the reply i really can't believe i missed that one.

i changed it now to

Code: Select all

macro lvlCheck {
	base > 11
call doSomething
}
just so i know less can go wrong and for some reason i still get this error :

Code: Select all

[macro] lvlCheck error: error in 0: syntax error
when i manualy run the lvlCheck macro.

O_o did i just screw up in a way i just don't see? or does this mean i probably glitched something somewhere?

edit:
(i don't really have much time at the moment so i'll try to remove everything exept my level check once i get back to my pc maybe something else screwed up something in here?)
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: problems with a level check

#4 Post by EternalHarvest »

Automacro conditions only work in automacro.
cursedxxx
Human
Human
Posts: 25
Joined: 02 Aug 2009, 20:48
Noob?: No

Re: problems with a level check

#5 Post by cursedxxx »

kk thanks alot for the help it works sort of now (actually slowly remaking it)