Request: 'pack 8' == enviro - update - 'pack e'

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

GoatFoot
a lesser mummy
a lesser mummy
Posts: 68
Joined: Fri Jan 17, 2003 1:48 am

Request: 'pack 8' == enviro - update - 'pack e'

Post by GoatFoot » Fri Aug 08, 2003 2:20 am

I've been playing around with tradeskill macro's and have found the syntax differences between enviro and inv containers to be a bit awkward.

currently, to left click slot 0 in an enviro container, we must:

Code: Select all

/click left enviro 0
while for an inv container its:

Code: Select all

/click left pack # 0
'#' being the inventory slot of the pack, 0 - 7.

I'd very much like:

Code: Select all

/click left pack e 0
to be the same as

Code: Select all

/click left enviro 0
Last edited by GoatFoot on Fri Aug 08, 2003 5:27 am, edited 1 time in total.

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

Awkward?

Post by wassup » Fri Aug 08, 2003 3:22 am

How is it awkward?

Pack = container in your inventory, 2nd # = which pack, 3rd #= slot in the pack. You can always use /finditem with all your packs open, and it's much easier.

enviro = external container, such as a Forge or Brew Barrel, 2nd # = slot in that container.

Seems fairly straightforward to me

GoatFoot
a lesser mummy
a lesser mummy
Posts: 68
Joined: Fri Jan 17, 2003 1:48 am

Post by GoatFoot » Fri Aug 08, 2003 4:05 am

Because the syntax required to address a slot in a combiner is different based on whether the combiner is in your inventory or not.

This means that when you can't write a generalised macro with out doing some sort of hack like:

Code: Select all



/call something

| hack to set combiner

/varset COMBINER enviro
/if n $return<8 /varset COMBINER "pack $return"

/click left $COMBINER <slot>


sub something
.
.
    /for l0 0 to 7
       /if "$pack($l0,combine)"~~"<tradeskill>" /return $l0
   /next l0
/return $l0

I believe that it would be simpler if "pack 8" always pointed to enviro.

yes, it just saves a couple lines, but it should be a trivial mod.

GoatFoot
a lesser mummy
a lesser mummy
Posts: 68
Joined: Fri Jan 17, 2003 1:48 am

not 'pack 8', but 'pack e' or something.

Post by GoatFoot » Fri Aug 08, 2003 5:26 am

On further thought, 'pack 8' probably isn't the way to go. Who knows what inventory changes may take place. Instead something like 'pack e' may be better.

I'll edit my original post.