question about $count

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

Shali
a ghoul
a ghoul
Posts: 87
Joined: Sun Dec 07, 2003 12:39 pm

question about $count

Post by Shali » Tue Dec 09, 2003 1:07 am

i was wondering if i could use this code for money counting?

Code: Select all

/if n $count("XXX")==0 /goto :Done
for example, if i was using a crafting macro and got down to a certain amount of money needed for materials would there be a way i could use the /if n $count command to designate that?

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Tue Dec 09, 2003 6:26 am

$char(cash)
Returns the amount of money you have in copper

$char(plat)
Returns the number of platinum your character has

$char(gold)
Returns the number of gold your character has

$chart(silver)
Retuens the number of silver your character has

$char(copper)
Returns the number of copper your character has

/if n $char(plat)==## /goto :Label

You can also add ,bank to that to check the amounts you have there

/if n $char(plat,bank)==## /goto :Label