Question about full inventory coding

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 full inventory coding

Post by Shali » Sun Dec 07, 2003 8:22 pm

how would i do an /if command for checking inventory space, i want to do something like this:

if inventory full = false /goto :buy
if inventory full = true /goto :done

but im not sure how to do the inventory stuff, anyone know how i can do this?

thanks

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 » Sun Dec 07, 2003 11:24 pm

From the readme:

Code: Select all

$freeinv(space|size)
Returns information about free pack space 
$freeinv(space)		Returns how many free inventory slots you have

Scary_Penguin
a lesser mummy
a lesser mummy
Posts: 76
Joined: Sun Nov 16, 2003 11:45 am

Post by Scary_Penguin » Mon Dec 08, 2003 1:40 am

Thanks Wassup, i've been looking for this for my fishing macro :p

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

re

Post by Shali » Mon Dec 08, 2003 7:00 am

thanks a bunch, helped out a lot :D