handl bags macro (not mine but the author isnt known)

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

Moderator: MacroQuest Developers

hardarac
a lesser mummy
a lesser mummy
Posts: 37
Joined: Sat Nov 30, 2002 2:25 pm

handl bags macro (not mine but the author isnt known)

Post by hardarac » Tue Aug 03, 2004 3:06 am

so what is wrong with this ...

I thought it used to work (about a month ago) ... and now it doesnt :cry:

Code: Select all

Sub Main 
  /declare InvSlot local 
  /varset InvSlot 0 
  /if "@Param0"=="open" /goto :Open 
  /if "@Param0"=="close" /goto :Close 
  /goto :Syntax 
  :Open 
    |###### Main Inventory 
    /if $invpanel=="TRUE" { 
      /for InvSlot 0 to 7 
        /if "$pack(@InvSlot)"=="TRUE" /if "$pack(@InvSlot,open)"=="FALSE" /click right inv @InvSlot 
      /next InvSlot 
    } 
    |###### Bank Inventory 
    /if $banker(open)=="TRUE" { 
      /for InvSlot 0 to 15 
        /if "$pack(bank,@InvSlot)"=="TRUE" /if "$pack(bank,@InvSlot,open)"=="FALSE" /click right bank inv @InvSlot 
      /next InvSlot 
    } 
    /goto :End 
  :Close 
    |###### Main Inventory 
    /if $invpanel=="TRUE" { 
      /for InvSlot 0 to 7 
        /if "$pack(@InvSlot)"=="TRUE" /if "$pack(@InvSlot,open)"=="TRUE" /click right inv @InvSlot 
      /next InvSlot 
    } 
    |###### Bank Inventory 
    /if $banker(open)=="TRUE" { 
      /for InvSlot 0 to 15 
        /if "$pack(bank,@InvSlot)"=="TRUE" /if "$pack(bank,@InvSlot,open)"=="TRUE" /click right bank inv @InvSlot 
      /next InvSlot 
    } 
    /goto :End 
  :Syntax 
      /echo Syntax: /macro HandlePacks <open|close> 
      /endmacro 
  :End 
/return 
HAs ther been a change to the way MQ does things that I managed to miss ... and this is now a defunct macro?
Last edited by hardarac on Tue Aug 03, 2004 3:31 am, edited 1 time in total.

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Tue Aug 03, 2004 3:15 am

I am speechless.

hardarac
a lesser mummy
a lesser mummy
Posts: 37
Joined: Sat Nov 30, 2002 2:25 pm

Post by hardarac » Tue Aug 03, 2004 3:26 am

Ok ...so what did isay that prompted that reaction

have i Frelled up again ?

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 Aug 03, 2004 7:23 am

Try looking for macro's using the current version of MQ2.

That stuff you posted is why he is speechless.

It's so old I'm surprised it isn't sprouting weeds from the dirt gathered on it.

Do yourself a favor and take a look at the readme.chm file in the zip. You will see why.

Might want to prepare yourself for some good natured flames too (well, maybe kidding about good natured).

hardarac
a lesser mummy
a lesser mummy
Posts: 37
Joined: Sat Nov 30, 2002 2:25 pm

Post by hardarac » Tue Aug 03, 2004 12:14 pm

Well for being a n00b I apologise ... the macro worked the last time I had call to use it .... and now it doesnt.... so I thought I would ask for help, seeing as the last time I asked I had an excellent response which fixed the problem (and showed me to be a prat as well :? ) in double quick time.

If I offended anyones sensibilities then <shrug> we cant all be wizzo developers dudes with maxi macroeze skills

Mimatas
a hill giant
a hill giant
Posts: 262
Joined: Wed Mar 10, 2004 4:22 pm

Post by Mimatas » Tue Aug 03, 2004 1:24 pm

Fortunately, there's a forum right below this one (Conversion Help) that you may be able to get some help in. I personally am having a hell of a time managing all the members and submembers with this new system (funny, since the only style I can really code in is Object Oriented)... Otherwise I'd try to convert it for you.


What specifically are you trying to do? It may be easier to just start from scratch.