Help with a quick tradeskill macro

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

Psy
decaying skeleton
decaying skeleton
Posts: 6
Joined: Mon Jan 09, 2006 1:13 pm

Help with a quick tradeskill macro

Post by Psy » Thu Feb 16, 2006 8:49 pm

Hi everyone. I'm really terrible at writing macros, and have a request for a very simple one. I am looking for a macro to do combines for tradeskills after I buy ingredients and am already at the brew barrel, etc. I just want one that "combines" and "auto inventories" whatever I'm wanting to make, once I select what to make, then /endmacro after I'm out of 1 of the ingredients. I looked around already and couldn't find one to do this simple task. Please help. Thanks.

TheNewGuy
a snow griffon
a snow griffon
Posts: 307
Joined: Sat Jul 10, 2004 9:33 am
Contact:

Post by TheNewGuy » Thu Feb 16, 2006 8:52 pm

Hi!

Please search, or wjut wait a few days - one of these fuckers with a heart will spoonfeed it to ya.
[quote="dont_know_at_all"][quote="sybarite"]Um.. search works fine for me (used spell_routines.inc)... Try scrolling down you lazy fuck.

http://www.macroquest2.com/phpBB2/viewtopic.php?t=8964&highlight=spellroutines+inc[/quote]

That's great but he's looking for move.inc, you fucking spastic colon.[/quote]

Psy
decaying skeleton
decaying skeleton
Posts: 6
Joined: Mon Jan 09, 2006 1:13 pm

Post by Psy » Thu Feb 16, 2006 8:56 pm

Oh, I forgot to add 1 thing. It'd be nice if someone could add a line to stop combining if inventory is full. Thanks.

bardomatic
a ghoul
a ghoul
Posts: 131
Joined: Thu Apr 29, 2004 12:09 am

Post by bardomatic » Thu Feb 16, 2006 9:00 pm

Here you go, just type /mac tradeskill to start and /end to end make sure you have the recipe highlighted that you want to do.

tradeskill.mac

Code: Select all

Sub Main
   :loop
      /notify COMBW_CombineArea COMBW_CombineButton leftmouseup
      /delay 35
      /notify COMBW_CombineArea COMBW_AutoInvButton leftmouseup
      /delay 15
      /goto :loop
/end

Psy
decaying skeleton
decaying skeleton
Posts: 6
Joined: Mon Jan 09, 2006 1:13 pm

Post by Psy » Thu Feb 16, 2006 9:03 pm

Thanks, is there a way for it to add for it to stop if inventory is full?

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Thu Feb 16, 2006 9:03 pm

Pay- There are macro's in the MQ2 depot that do this, whether they work or not I don't know.

Or, feel free to actually donate to the dev's that make this program available to you and take a look at the VIP macros.
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

Psy
decaying skeleton
decaying skeleton
Posts: 6
Joined: Mon Jan 09, 2006 1:13 pm

Post by Psy » Thu Feb 16, 2006 9:05 pm

I found macros to make specific things, such as getting a tradeskill up to xx level. I just didn't find one that would work for what I want.

NeXuS
a lesser mummy
a lesser mummy
Posts: 75
Joined: Thu Jun 23, 2005 9:25 pm

Post by NeXuS » Thu Feb 16, 2006 9:09 pm


Psy
decaying skeleton
decaying skeleton
Posts: 6
Joined: Mon Jan 09, 2006 1:13 pm

Post by Psy » Thu Feb 16, 2006 9:22 pm

THANKS! That was exactly what I was looking for. Good work NeXus!!!

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Re: Help with a quick tradeskill macro

Post by wassup » Thu Feb 16, 2006 10:27 pm

Psy wrote:Hi everyone. I'm really terrible at writing macros, and have a request for a very simple one. I am looking for a macro to do combines for tradeskills after I buy ingredients and am already at the brew barrel, etc. I just want one that "combines" and "auto inventories" whatever I'm wanting to make, once I select what to make, then /endmacro after I'm out of 1 of the ingredients. I looked around already and couldn't find one to do this simple task. Please help. Thanks.
This is what I use, I have the tradeskill container opened already though:

Code: Select all

Sub Main
   :endlessloop
   /if (${Window[TradeSkillWnd].Open}) {
      /delay 1
      /notify COMBW_CombineArea COMBW_CombineButton leftmouseup
      :clearmore
      /if (${Cursor.ID}) {
         /autoinv
         /delay 1
         /goto :clearmore
      }
   }
   /goto :endlessloop
/return

User avatar
gimp
a grimling bloodguard
a grimling bloodguard
Posts: 584
Joined: Fri Oct 29, 2004 9:28 am
Location: internet

Post by gimp » Fri Feb 17, 2006 7:30 am

this is what i use. it does exactly what you asked for, you need the ingredients. open tradeskill window and select what to make then /mac combine

it ignores skillups and such, i use it to make large quantities of something
it displays success rate, successes and fails. it stops when you are out of ingredients or inventory is full

Code: Select all

|combine.mac by gimp
sub Main
	/declare finish int outer 0
	/declare countsuccess	int outer 0
	/declare countfail		int outer 0
	/declare counttotal		int outer 0
	
	/echo Starting

	:CombineLoop
	/notify COMBW_CombineArea COMBW_CombineButton leftmouseup
	/doevents
	/delay 5
	/if (${Cursor.ID}) {
		/autoinventory

		/if (${Me.FreeInventory} < 1) {
			/echo Out of inventory slots!
			/return
		}
	}

	/if (${finish}==1) {
		/echo Done. ${countsuccess}/${counttotal} (${Math.Calc[ (${countsuccess}/${counttotal})*100 ]}%) items created
		/return
	}
	/goto :CombineLoop
/return

#Event nomore "Sorry, but you don't have everything you need for this recipe#*#"
Sub Event_nomore
	/varset finish 1
/return

#Event create "You have fashioned the items together to create something new#*#"
Sub Event_create
	/varcalc countsuccess ${countsuccess}+1
	/varcalc counttotal ${countsuccess}+${countfail}
	/echo ${countsuccess}/${counttotal} successes (${Math.Calc[ (${countsuccess}/${counttotal})*100 ]}% success rate)
/return

#Event failed "You lacked the skills#*#"
Sub Event_failed
	/varcalc countfail ${countfail}+1
	/varcalc counttotal ${countsuccess}+${countfail}
	/echo ${countfail}/${counttotal} failures (${Math.Calc[ (${countsuccess}/${counttotal})*100 ]}% success rate)
/return

Everdead
a lesser mummy
a lesser mummy
Posts: 70
Joined: Wed Feb 16, 2005 4:02 pm

Post by Everdead » Tue Mar 07, 2006 3:06 pm

Sorry to bump this semi old thread.
/notify COMBW_CombineArea COMBW_CombineButton leftmouseup
is not working for me to combine I am having to manualy click the combine button. I have just been setting up a simple

/click left
/autoinventory

loop but was trying to get a real one made that would hit combine and everything working on tradeskills for 4 characters at the same time so I can't run multi instances and /click left at same time.

Appreciate any help if I missed somewhere this command was changed sorry.

armysoldier
a hill giant
a hill giant
Posts: 189
Joined: Mon Jun 27, 2005 2:13 am
Location: Florida (Stationed at FT Carson CO)

Post by armysoldier » Tue Mar 07, 2006 8:53 pm

to all

COMBW_CombineArea is now TradeskillWnd

The window name changed


thats for NEW UI only

Everdead
a lesser mummy
a lesser mummy
Posts: 70
Joined: Wed Feb 16, 2005 4:02 pm

Post by Everdead » Tue Mar 07, 2006 9:37 pm

awesome thanks. Didn't catch the change.

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1436
Joined: Sun Feb 19, 2023 7:11 am

Great Updated Product Info Guide

Post by FrankJScott » Tue Sep 12, 2023 8:20 pm

Please use Google before posting Top Rated Updated Product Blog Info 6b3ce3c