If something's in my hand.....

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

Thranxx
orc pawn
orc pawn
Posts: 10
Joined: Tue Aug 17, 2004 3:45 pm

If something's in my hand.....

Post by Thranxx » Tue Aug 17, 2004 3:51 pm

Ok, so... I'm a MQ n00b, but I've written macros with other program, and have mild programming experiance... but I'm just not getting some commands down.

If syntax still has me perplexed, so that, along with not knowing the command has me stumped.

What kind of if statement would I use if I was asking if there was anything in my hand...

if (somethings in my hand)
{
Do the mambo
}
Else
{
Do the twist
}

Thank in advance.

Noobily yours,
Thranx

User avatar
Night Hawk
a grimling bloodguard
a grimling bloodguard
Posts: 590
Joined: Fri Aug 13, 2004 4:56 pm

Post by Night Hawk » Tue Aug 17, 2004 3:56 pm

Could easily find this code in most TS macros.

Code: Select all

/if (${Cursor.ID}) {
   | -- Do the mombo
} else {
   | -- Do the twist
}

Thranxx
orc pawn
orc pawn
Posts: 10
Joined: Tue Aug 17, 2004 3:45 pm

Post by Thranxx » Tue Aug 17, 2004 4:15 pm

bah! I scoured the tradeskill macros :P but I couldn't figure it out.

Thank you very much! :)