Need help with a macro you are writing? Ask here!
Moderator: MacroQuest Developers
-
Vayeco Dynn
- a ghoul

- Posts: 113
- Joined: Wed Aug 25, 2004 3:00 am
Post
by Vayeco Dynn » Sun Sep 19, 2004 3:52 am
I've been thinking lately, and I just haven't been able to figure out a clean way to destroy money via macro without relying on cursor locations.
The way I thought you could do it is figure out where the gold silver and copper locations are on your screen, and then every time you want to destroy that stuff you open up the inventory screen and do a "/notify rightmouseup loc loc" kind of thing. However, this is pretty sloppy in my opinion. I'd like to not have to assume that the inventory window and other windows haven't moved in order for this macro to perform safely.
Are there some kind of functions/variables that allow you to manage your money cleanly and safely? If there are, I haven't had any luck finding them. Thanks in advance for the help.
-
dman
- a hill giant

- Posts: 181
- Joined: Fri Dec 05, 2003 12:54 pm
Post
by dman » Sun Sep 19, 2004 9:26 am
Code: Select all
/notify InventoryWindow IW_Money3 leftmouseup
This should you get going.
-
Vayeco Dynn
- a ghoul

- Posts: 113
- Joined: Wed Aug 25, 2004 3:00 am
Post
by Vayeco Dynn » Sun Sep 19, 2004 10:08 am
Ah thanks so much, I woke up this morning and had 1k copper on my monk!

-
leptoid
- a lesser mummy

- Posts: 35
- Joined: Tue May 11, 2004 4:47 pm
Post
by leptoid » Tue Apr 26, 2005 1:37 am
I can't get it to pick up all my money... it brings up the accept window...
-
blueninja
- a grimling bloodguard

- Posts: 541
- Joined: Thu Aug 28, 2003 7:03 am
- Location: Göteborg, Sweden
Post
by blueninja » Tue Apr 26, 2005 2:33 am
leptoid wrote:I can't get it to pick up all my money... it brings up the accept window...
Try /nomodkey /shift /notify ...
-
wizzyman
- a ghoul

- Posts: 106
- Joined: Fri Dec 10, 2004 6:03 pm
Post
by wizzyman » Tue Apr 26, 2005 3:21 am
Code: Select all
#event Encumbered "You are encumbered!"
#event NoMoreEnc "You are no longer encumbered."
Code: Select all
Sub Destroy
/keypress ESC hold
/keypress ESC
/keypress i hold
/keypress i
/delay 2s
/notify InventoryWindow IW_Money3 leftmouseup
/delay 2s
/notify QuantityWND QTYW_Accept_Button leftmouseup
/des
/notify InventoryWindow IW_Money2 leftmouseup
/delay 2s
/notify QuantityWND QTYW_Accept_Button leftmouseup
/des
/notify InventoryWindow IW_Money1 leftmouseup
/delay 2s
/notify QuantityWND QTYW_Accept_Button leftmouseup
/des
/delay 2s
/keypress i hold
/keypress i
/delay 1s
/doevents
/delay 5s
/if (${Encumbered}) {
/echo ending macro
/quit
/endmacro
} else {
/return
}
/return
Code: Select all
Sub Event_Encumbered
/varset Encumbered TRUE
/return
Sub Event_NoMoreEnc
/varset Encumbered FALSE
/return
This is what i use to destroy silver copper and gold when i get encumbered, the macro ll end if after destroy you re still encumbered.