Jar of Clockwork Grease

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

dedpoet
a hill giant
a hill giant
Posts: 247
Joined: Sat Aug 14, 2004 12:22 pm

Jar of Clockwork Grease

Post by dedpoet » Tue Mar 22, 2005 8:32 pm

This macro will make jars of clockwork grease, a very tedious combine. Directions are at the top of the macro.

The only thing this does not do currently is deal well with a failed combine. I'll get that shortly, but I just wanted to get this posted. Enjoy.

Code: Select all

|/////////////////////////////////////////////////////////////////////////////
| Grease.mac by dedpoet
|
| Attempts to make a Jar of Clockwork Grease until out of components.
|
| You will need the following items in your inventory: Water Flask, Block of
| Clay, Small Jar Sketch, Quality Firing Sheet, Clockwork Grease.  You will
| need your last inventory slot open.
|
| Stand between the pottery wheel and the kiln and run grease.mac.
| 
| This macro uses the pack subs written by Override and quite a bit of his
| code.  Also thanks to JJ for the shoves in the right direction with the
| window stuff 
|\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

#turbo

#event CombineError "#*#There was no place to put that#*#"
#event CombineError "#*#You cannot combine these items in this container type!#*#"
#event CombineError "#*#did not accept these items#*#"

Sub Main

| Let's make an Unfired Small Container
    /call OpenPacks
    /delay 2s

	:GreaseLoop

	/itemtarget Pottery Wheel
	/face item
	/nomodkey /click left item
	/delay 1s
	/nomodkey /notify TradeSkillWnd COMBW_ExperimentButton leftmouseup
	/delay 1s
	
	/if (!${FindItem[=Water Flask].InvSlot}) /goto :Done
	/nomodkey /ctrl /itemnotify ${FindItem[=Water Flask].InvSlot} leftmouseup
	/nomodkey /itemnotify enviro1 leftmouseup
	
	/if (!${FindItem[=Block of Clay].InvSlot}) /goto :Done
	/nomodkey /ctrl /itemnotify ${FindItem[=Block of Clay].InvSlot} leftmouseup
	/nomodkey /itemnotify enviro2 leftmouseup

	/if (!${FindItem[=Small Jar Sketch].InvSlot}) /goto :Done
	/nomodkey /ctrl /itemnotify ${FindItem[=Small Jar Sketch].InvSlot} leftmouseup
	/nomodkey /itemnotify enviro3 leftmouseup

	/combine enviro
	/delay 15
	/doevents
	/call ClearCursor
	/delay 5
	/nomodkey /keypress esc
	/delay 1s

| Let's make it into a Small Clay Jar

	/itemtarget Kiln
	/nomodkey /click left item
	/delay 1s
	/nomodkey /notify TradeSkillWnd COMBW_ExperimentButton leftmouseup
	/delay 1s

	/if (!${FindItem[=Unfired Small Container].InvSlot}) /goto :Done
	/nomodkey /ctrl /itemnotify ${FindItem[=Unfired Small Container].InvSlot} leftmouseup
	/nomodkey /itemnotify enviro1 leftmouseup
  	
	/if (!${FindItem[=Quality Firing Sheet].InvSlot}) /goto :Done
	/nomodkey /ctrl /itemnotify ${FindItem[=Quality Firing Sheet].InvSlot} leftmouseup
	/nomodkey /itemnotify enviro2 leftmouseup

	/combine enviro
	/delay 15
	/doevents
	/call ClearCursor
	/nomodkey /keypress esc
	/delay 1s

| Open our new jar and put 2 greases in it
   
	/itemnotify pack8 rightmouseup
	/delay 1s
   
	/if (!${FindItem[=Clockwork Grease].InvSlot}) /goto :Done
	/nomodkey /ctrl /itemnotify ${FindItem[=Clockwork Grease].InvSlot} leftmouseup
	/nomodkey /itemnotify in pack8 1 leftmouseup
	/delay 5

	/if (!${FindItem[=Clockwork Grease].InvSlot}) /goto :Done
	/nomodkey /ctrl /itemnotify ${FindItem[=Clockwork Grease].InvSlot} leftmouseup
	/nomodkey /itemnotify in pack8 2 leftmouseup
  	
	/combine pack8
	/delay 15
	/doevents
	/call ClearCursor
	/delay 20

| We should have a grease.  Let's start over.
	/goto :GreaseLoop

| When we run out of components.
	:Done
	/echo We're out of components.  Ending macro.
	/beep
	/cleanup
	/end
/return


sub ClearCursor 
	:Loop 
	/if (!${Cursor.ID}) /return 
	/autoinv 
	/delay 5 
	/doevents 
	/goto :Loop
/return


Sub OpenPacks
   /declare bag int local 0

   /newif (!${Window[InventoryWindow].Open}) /keypress inventory
   /delay 1
   /for bag 1 to 8 step 1
      /newif (!${Window[pack${bag}].Open}) /itemnotify pack${bag} rightmouseup
   /next bag
   /delay 1
/return

Sub Event_CombineError
   /echo Combine error encountered.  Ending macro.
   /beep
   /end
/return

FrankJScott
naggy
naggy
Posts: 2390
Joined: Sun Feb 19, 2023 7:11 am

Top Hints For Choosing Download Windows Programs Free

Post by FrankJScott » Tue Mar 07, 2023 8:32 am

In reply to the man inquiring about ashampoo uninstaller download, programs for pc free download, spyder python free download for windows 7 32 bit, must have free software for windows 10, download free unzip program for windows 10, your uninstaller free download for windows 10 64 bit, I highly suggest this listen to this podcast about microsoft programs url or iobit uninstaller free windows 10, master excel, free word processor for windows, matc microsoft office, belarc advisor free download for windows 10, ms word processing software, not to mention this next page for download windows programs free details on top of all software for pc free download, daemon tools free download windows 8, iobit uninstaller download 64 bit, iobit uninstaller 64 bit, belarc advisor free download for windows 7, download revo uninstaller freeware, alongside all this read review about download microsoft programs free details which is as good as mac word processing program, microsoft word certification, download power point 2007 64 bit, free archiver for pc, best software download for pc, registry mechanic freeware, . Also, have a look at this on yahoo for windows software link on top of microsoft office specialist, macro learning in excel, ms publisher software, download kingsoft pc doctor, windows 98 software download, beginner to advanced excel, as well as this check this out on microsoft programs torrent site alongside all free word program for mac, master microsoft office, download iobit uninstaller 64 bit, programs like one note, best software for windows xp, free unzip software for windows 10 64 bit, on top of on the main page for windows software blog which is also worth a look as well as computer software windows 10 free download, microsoft hup windows 10, free unzip app for pc, word document program, free word program, microsoft certified educator, also. I also suggest this our site for windows software blog and don't forget zip program free windows 10, microsoft office specialist certification, winzip rar software free download 64 bit, best program for flowcharts microsoft, all microsoft programs, pc decrapifier download free, not to mention this more bonuses for download windows software free details and don't forget aarp microsoft office discount, free unzip windows 10, default word processor for microsoft windows, bullzip printer download, microsoft hud, registry cleaner windows 10 free download, alongside all he said about microsoft programs info not to mention microsoft 365 programs, daemon tools free download windows 8, microsoft access vba, cpcc microsoft office, ms project certification, free winzip program windows 10, which is also great. Finally, have a look at this her response for download windows programs free details with all software for pc free download, word program for chromebook, iobit uninstaller download free, ms data visualization, absolute uninstaller free download, microsoft excel certification cost, for good measure. Check more @ New Facts For Choosing Download Windows Software Free ce3c8de

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Jar of Clockwork Grease

Post by xyilla » Fri May 02, 2025 9:53 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Jar of Clockwork Grease

Post by xyilla » Fri May 02, 2025 9:54 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Jar of Clockwork Grease

Post by xyilla » Fri May 02, 2025 9:55 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Jar of Clockwork Grease

Post by xyilla » Fri May 02, 2025 9:56 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Jar of Clockwork Grease

Post by xyilla » Fri May 02, 2025 11:10 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Jar of Clockwork Grease

Post by xyilla » Fri May 02, 2025 11:11 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Jar of Clockwork Grease

Post by xyilla » Fri May 02, 2025 11:12 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Jar of Clockwork Grease

Post by xyilla » Fri May 02, 2025 11:13 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Jar of Clockwork Grease

Post by xyilla » Fri May 02, 2025 11:14 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Jar of Clockwork Grease

Post by xyilla » Fri May 02, 2025 11:16 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Jar of Clockwork Grease

Post by xyilla » Fri May 02, 2025 11:17 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Jar of Clockwork Grease

Post by xyilla » Fri May 02, 2025 11:19 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Jar of Clockwork Grease

Post by xyilla » Fri May 02, 2025 11:20 am