Page 1 of 1

Destroy Gold/Silver/Copper

Posted: Sun Sep 19, 2004 3:52 am
by Vayeco Dynn
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.

Posted: Sun Sep 19, 2004 6:48 am
by ztrike
Hi,

the NBH script has a nice destroy coins feature in it..

http://www.macroquest2.com/phpBB2/viewtopic.php?t=7894

works like a charm..

Posted: Sun Sep 19, 2004 9:26 am
by dman

Code: Select all

/notify InventoryWindow IW_Money3 leftmouseup 
This should you get going.

Posted: Sun Sep 19, 2004 10:08 am
by Vayeco Dynn
Ah thanks so much, I woke up this morning and had 1k copper on my monk! :P

Posted: Tue Apr 26, 2005 1:37 am
by leptoid
I can't get it to pick up all my money... it brings up the accept window...

Posted: Tue Apr 26, 2005 2:33 am
by blueninja
leptoid wrote:I can't get it to pick up all my money... it brings up the accept window...
Try /nomodkey /shift /notify ...

Posted: Tue Apr 26, 2005 3:21 am
by wizzyman

Code: Select all

#event Encumbered "You are encumbered!"
#event NoMoreEnc "You are no longer encumbered."

Code: Select all

/if (${Encumbered}) /call Destroy

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.