I thought it used to work (about a month ago) ... and now it doesnt
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 


