$pack usage?

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

DekeFentle
a lesser mummy
a lesser mummy
Posts: 48
Joined: Wed Oct 22, 2003 1:41 pm

$pack usage?

Post by DekeFentle » Tue Oct 28, 2003 4:03 pm

$pack([bank,]slot,<option>): returns pack information.
<option> can be: name, combine, open, size, weight, slots, space, empty


First how many bank slots are there and how are they numbered? I don't have access to game right now from memory...

0-5 9-13
1-6 10-14
2-7 11-15
3-8 12-16

17-18

17 and 18 are the two shared slots? Not sure on any of this just guessing.

Given that the 0 inventory slot in the bank has a container of some kind I it…

/varset Pack1 $pack (bank,0,open)

Would I get TRUE or FALSE if that container were open or closed respectively?
Revelation 6:8

DekeFentle
a lesser mummy
a lesser mummy
Posts: 48
Joined: Wed Oct 22, 2003 1:41 pm

Post by DekeFentle » Fri Oct 31, 2003 11:58 am

No comments?
Revelation 6:8

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 » Fri Oct 31, 2003 12:56 pm

Did you try that command before asking in here?

The way you are wording this is you haven't tried this for yourself.

Well, I mean when you get home or whatever give it a try then come back if you have a problem.

FlashG
Contributing Member
Contributing Member
Posts: 104
Joined: Thu Jul 11, 2002 6:38 pm

sa

Post by FlashG » Fri Oct 31, 2003 1:46 pm

yes, open returns a TRUE or a FALSE. Im not 100% sure what item 0 is but do a /echo $pack(bank,0,name) on the command line to see what you get. I find using the command line a good way to understand MQ responces prior to programming.

Also if you have a custom UI the physical location of pack 1 may be unique. I have a custom bank UI that has 3 rows with 1 - 7 in the top row.

DekeFentle
a lesser mummy
a lesser mummy
Posts: 48
Joined: Wed Oct 22, 2003 1:41 pm

Post by DekeFentle » Fri Oct 31, 2003 2:12 pm

DOH!!!!

Ever have one of those days/weeks where you just can’t see the forest for the trees? I have been struggling with writing macros because I couldn’t figure out how to look at $(whatever) values. Echo never occurred to me. Thanks FlashG.
Revelation 6:8