bag.mac

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

DrMadd
a lesser mummy
a lesser mummy
Posts: 43
Joined: Tue Jun 03, 2003 1:03 pm

bag.mac

Post by DrMadd » Sat Jan 31, 2004 1:32 pm

I have NOT tested this at all. I made this while at work with no access to EQ. Commands and names taken from the MQ2 Manual, which appear to be different than the syntax file of UltraEdit which is the edit tool I'm using. I am going by the assumption that the MQ2 Manual is correct and the UltraEdit syntax file is somewhat old.

- Bags all gear.

Please let me know if it works, as well as any feedback.

Note: First Macro be nice.

Please leave feedback, and any suggestions are welcome.

Also, question, Do I need any delays in here? I'm thinking the #turbo takes care of that? I am also trying to find a way to have the macro bag ONLY DROPABLE gear. But My search for a way to decipher if a piece of gear is droppable or not has been unsuccessfull so far.

Simply opens up bags 6,7, and 8
Then drops your gear into them.

( I'm thinking bag numbers start at 1, not 0... if this is incorrect please correct me )


Bag Macro

Code: Select all

| - Bag macro by MaDd
| - Syntax: /macro bag
| - Bag 6 must have last slot open
| - Bag 7 must be completely empty
| - Bag 8 must be completely empty
| - Open Bags 6,7, and 8 at the same time and make sure they don't 
| - overlap before running this macro.


#turbo 

Sub Main 
|Close all open windows, then open Inventory window
/cleanup

|Open pack #8
/click right pack 8
|Open Pack#7
/click right pack 7
|Open Pack#6
/click right pack 6

|Start Bagging Gear

|Bag Left Ear
/click left lear
/click left pack 8 1
|Bag Right Ear
/click left rear
/click left pack 8 2
|Bag Neck
/click left neck
/click left pack 8 3
|Bag Face
/click left face
/click left pack 8 4
|Bag Head
/click left head
/click left pack 8 5
|Bag Left Wrist
/click left lwrist
/click left pack 8 6
|Bag Right Wrist
/click left rwrist
/click left pack 8 7
|Bag Arms
/click left arms
/click left pack 8 8
|Bag Hands
/click left hands
/click left pack 7 1
|Bag Shoulder
/click left shoulder
/click left pack 7 2
|Bag Chest
/click left chest
/click left pack 7 3
|Bag Back
/click left back
/click left pack 7 4
|Bag Waist
/click left waist
/click left pack 7 5
|Bag Legs
/click left legs
/click left pack 7 6
|Bag Feet
/click left feet
/click left pack 7 7
|Bag Right Finger
/click left rfinger
/click left pack 7 8
|Bag Left Finger
/click left lfinger
/click left pack 6 8

|Close Backpacks
/click left pack 6 done
/click left pack 7 done
/click left pack 8 done
/return 

Wear Macro

Code: Select all

| - Wear macro by MaDd
| - Syntax: /macro wear
| - For use after using Bag.mac
| - Open Bags 6,7, and 8 at the same time and make sure they don't 
| - overlap before running this macro.


#turbo 

Sub Main 
|Close all open windows, then open Inventory window
/cleanup

|Open pack #8
/click right pack 8
|Open Pack#7
/click right pack 7
|Open Pack#6
/click right pack 6

|Start Wearing Gear

|Bag Left Ear
/click left pack 8 1
/autoinventory 
|Bag Right Ear
/click left pack 8 2
/autoinventory 
|Bag Neck
/click left pack 8 3
/autoinventory 
|Bag Face
/click left pack 8 4
/autoinventory 
|Bag Head
/click left pack 8 5
/autoinventory 
|Bag Left Wrist
/click left pack 8 6
/autoinventory 
|Bag Right Wrist
/click left pack 8 7
/autoinventory 
|Bag Arms
/click left pack 8 8
/autoinventory 
|Bag Hands
/click left pack 7 1
/autoinventory 
|Bag Shoulder
/click left pack 7 2
/autoinventory 
|Bag Chest
/click left pack 7 3
/autoinventory 
|Bag Back
/click left pack 7 4
/autoinventory 
|Bag Waist
/click left pack 7 5
/autoinventory 
|Bag Legs
/click left pack 7 6
/autoinventory 
|Bag Feet
/click left pack 7 7
/autoinventory 
|Bag Right Finger
/click left pack 7 8
/autoinventory 
|Bag Left Finger
/click left pack 6 8
/autoinventory 

|Close Backpacks
/click left pack 6 done
/click left pack 7 done
/click left pack 8 done
/return 

ionsf
a ghoul
a ghoul
Posts: 94
Joined: Wed Jan 14, 2004 10:19 pm

Post by ionsf » Sat Jan 31, 2004 8:44 pm

i'm tired....what do you use this for? Why would i use this...

fryfrog
a hill giant
a hill giant
Posts: 271
Joined: Fri Jun 20, 2003 5:37 am

Post by fryfrog » Sat Jan 31, 2004 9:32 pm

pvp servers where you are allowed to loot items and coin from people.

inorpo
a lesser mummy
a lesser mummy
Posts: 31
Joined: Sat Nov 29, 2003 1:44 pm

Post by inorpo » Sun Feb 01, 2004 3:15 am

I liked this. It didn't work, so I fixed it.

Code: Select all


| - Bag macro by MaDd fixed by inorpo
| - Syntax: /macro bag [<bag>|<unbag>] 
| - Bag 5 must have last slot open 
| - Bag 6 must be completely empty 
| - Bag 7 must be completely empty 
| - Open Bags 5,6, and 7 at the same time and make sure they don't 
| - overlap before running this macro. 
| - I plan to move to a for loop or something, but didn't feal like it.
| - Think like this
| - ________
| - | 0 | 4 |
| - | 1 | 5 |
| - | 2 | 6 |
| - | 3 | 7 |
| - ---------



#turbo 

Sub Main 

/if "@Param0"=="bag" {
|Close all open windows, then open Inventory window 
/cleanup
/press i

|Open pack #8 
/click right inv 7 
|Open Pack#7 
/click right inv 6 
|Open Pack#6 
/click right inv 5 

|Start Bagging Gear 

|Bag Left Ear 
/click left lear 
/click left pack 7 0
|Bag Right Ear 
/click left rear 
/click left pack 7 1 
|Bag Neck 
/click left neck 
/click left pack 7 2 
|Bag Face 
/click left face 
/click left pack 7 3 
|Bag Head 
/click left head 
/click left pack 7 4 
|Bag Left Wrist 
/click left lwrist 
/click left pack 7 5 
|Bag Right Wrist 
/click left rwrist 
/click left pack 7 6 
|Bag Arms 
/click left arms 
/click left pack 7 7 
|Bag Hands 
/click left hands 
/click left pack 6 0 
|Bag Shoulder 
/click left shoulders
/click left pack 6 1 
|Bag Chest 
/click left chest 
/click left pack 6 2 
|Bag Back 
/click left back 
/click left pack 6 3 
|Bag Waist 
/click left waist 
/click left pack 6 4 
|Bag Legs 
/click left legs 
/click left pack 6 5 
|Bag Feet 
/click left feet 
/click left pack 6 6 
|Bag Right Finger 
/click left rfinger 
/click left pack 6 7 
|Bag Left Finger 
/click left lfinger 
/click left pack 5 0
|Bag Ranged
/click left range
/click left pack 5 3
|Bag ammo
/click left ammo
/click left pack 5 4
|Close Backpacks 
|Bag Secondary
/click left secondary
/click left pack 5 2
|Bag Primary
/click left primary
/click left pack 5 1
/cleanup
 
}


/if "@Param0"=="unbag" {
|Close all open windows, then open Inventory window 
/cleanup
/press i

|Open pack #8 
/click right inv 7 
|Open Pack#7 
/click right inv 6 
|Open Pack#6 
/click right inv 5 

/click left pack 5 0
/autoinv
/click left pack 5 1
/autoinv
/click left pack 5 2
/autoinv
/click left pack 5 3
/autoinv
/click left pack 5 4
/autoinv
/click left pack 5 5
/autoinv
/click left pack 5 6
/autoinv
/click left pack 5 7
/autoinv

/click left pack 6 0
/autoinv
/click left pack 6 1
/autoinv
/click left pack 6 2
/autoinv
/click left pack 6 3
/autoinv
/click left pack 6 4
/autoinv
/click left pack 6 5
/autoinv
/click left pack 6 6
/autoinv
/click left pack 6 7
/autoinv


/click left pack 7 0
/autoinv
/click left pack 7 1
/autoinv
/click left pack 7 2
/autoinv
/click left pack 7 3
/autoinv
/click left pack 7 4
/autoinv
/click left pack 7 5
/autoinv
/click left pack 7 6
/autoinv
/click left pack 7 7
/autoinv
/cleanup
}


/return 


DrMadd
a lesser mummy
a lesser mummy
Posts: 43
Joined: Tue Jun 03, 2003 1:03 pm

Post by DrMadd » Wed Feb 04, 2004 9:37 am

Code: Select all

/if "@Param0"=="bag" { 
|Close all open windows, then open Inventory window 
/cleanup 
/press i 
Is the /press I necessary? According to the MQ manual
/cleanup
Closes all open windows and then opens inventory window
so a /cleanup would close all windows then open inventory, then a /press I would close it... Which isn't what the desired effect is correct?

Or am I missing something ?

inorpo
a lesser mummy
a lesser mummy
Posts: 31
Joined: Sat Nov 29, 2003 1:44 pm

Post by inorpo » Wed Feb 04, 2004 2:13 pm

DrMadd wrote:

Code: Select all

/if "@Param0"=="bag" { 
|Close all open windows, then open Inventory window 
/cleanup 
/press i 
Is the /press I necessary? According to the MQ manual
/cleanup
Closes all open windows and then opens inventory window
so a /cleanup would close all windows then open inventory, then a /press I would close it... Which isn't what the desired effect is correct?

Or am I missing something ?

/cleanup just closes all windows...

MrSmallie
a hill giant
a hill giant
Posts: 167
Joined: Fri Oct 11, 2002 11:18 am

Post by MrSmallie » Thu Feb 05, 2004 8:18 am

ionsf wrote:i'm tired....what do you use this for? Why would i use this...
First use that comes to my mind is the old HP item / zoning trick...
Me
[img]http://home.comcast.net/~mrsmallie/ches.JPG[/img]

dman
a hill giant
a hill giant
Posts: 181
Joined: Fri Dec 05, 2003 12:54 pm

Post by dman » Thu Feb 05, 2004 6:09 pm

i'm tired....what do you use this for? Why would i use this...
Bagging all you droppables on RZ also seems to be a good use of this script right before you get pvp killed.

DrMadd
a lesser mummy
a lesser mummy
Posts: 43
Joined: Tue Jun 03, 2003 1:03 pm

Post by DrMadd » Thu Feb 05, 2004 8:12 pm

Script is for on Rallos where you can loose any 1 item when you get killed by other players.

You can not loot anything in bags, so this quicly shoves everything in bags so you loose nothing if someone PK's you.

But, they can NOT take Primary, Secondary, Range, or Ammo... So no need to have the script remove these items.

Also, no need to remove NoDrop items.

So other than modifying the script yourself for the slots you need bagged, anyone know how to have a script check for the NODROP tag ?

User avatar
Bad Karma
a snow griffon
a snow griffon
Posts: 346
Joined: Sat Nov 22, 2003 9:34 pm
Contact:

Post by Bad Karma » Mon Feb 09, 2004 6:27 am

DrMadd wrote:So other than modifying the script yourself for the slots you need bagged, anyone know how to have a script check for the NODROP tag ?
MacroQuest 2 Manual wrote:$cursor(option)
Returns cursor item information
option can be: id, lore, magic, name, nodrop, norent, size, stack, type, value, weight

$cursor() Returns TRUE or FALSE. TRUE if the cursor has an item on it.
$cursor(nodrop) Returns TRUE if the item on the cursor is NODROP
Only drawback is, you would still have to pick the item up to make the check (which is the only way to do this right now). Would be easier and quicker to just |comment out the slots you keep your NoDrop stuff in, and hope they are still there when you get PK'd.

If you REALLY have to have this put in, though, just create a Sub NoDrop, and /call to it on each item.
[b]- Bad Karma
________________________________________[/b]

In our own quest for excellence, we should strive to take the time to help those who help themselves.

All others should [b]RTFM[/b]!!!!!!!!!