Tradeskill Combiner - New UI

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

Moderator: MacroQuest Developers

secrettoo
orc pawn
orc pawn
Posts: 29
Joined: Sat Oct 25, 2003 10:56 am

Tradeskill Combiner - New UI

Post by secrettoo » Thu May 20, 2004 7:28 pm

This tradeskill macro will make any recipe. Just bring up the tradeskill UI, select the recipe from the list box, then run the macro. There are lots of macros that do tradeskills, but this is just the one I wrote while no other ones worked with the new UI. So take your own pick.

- It will keep doing the recipe until it runs out of a component.
- It echo's skill ups to the MQ2 window with the tradeskill name and skill number.
- Works with UI changes from 17th May zip onwards.

SecretToo

-------------------------------------------


Code: Select all

| Tradeskill macro to perform Combine and Autoinv one a selected recipe
| Usage: Bring up Tradeskill Window, select Recipe, then run the macro.
| SecretToo v1.1 -  2nd May 2004 - Initial version
|                   15th May 2004 - skill ups and cursor handling
|                   20th May 2004 - window idents fixed for 17th May zip
|

#turbo 10

#event EvtNoMoreStuff "#*#you don't have everything you need for this recipe#*#"
#event EvtSkillUp "You have become better at #1#! (#2#)"

Sub Main 

:mainloop
  /notify COMBW_CombineArea COMBW_CombineButton leftmouseup 
  /delay 1s
  /doevents
:autoequip
  /newif (${Cursor.ID}!=NULL) {
    /notify COMBW_CombineArea COMBW_AutoInvButton leftmouseup
    /delay 1s 
    /goto :autoequip
  }
  /doevents
  /goto :mainloop

/return


Sub Event_EvtNoMoreStuff(string Line)

  /echo Out of components!
  /popup Out of components!
  /squelch /endmac

/return


Sub Event_EvtSkillUp(string Line, string skillname, string skillnum)

  /echo Skill Raise! ${skillname} is now ${skillnum}. 

/return
Last edited by secrettoo on Mon May 24, 2004 4:36 pm, edited 3 times in total.

Mimatas
a hill giant
a hill giant
Posts: 262
Joined: Wed Mar 10, 2004 4:22 pm

Post by Mimatas » Thu May 20, 2004 7:31 pm

This looks like it didn't require much effort to make... However, you put in more effort that I was willing to (I wanted the same thing, but laziness prevailed), so thanks a ton. I'm gonna give it a shot next time I work on tradeskilling.

secrettoo
orc pawn
orc pawn
Posts: 29
Joined: Sat Oct 25, 2003 10:56 am

Post by secrettoo » Thu May 20, 2004 7:36 pm

You're welcome and thanks for the compliment :-) No it required very little effort, about 15 minutes, but it does the job very well and I thought it would help everyone here by posting it.

SecretToo

Onezero
a ghoul
a ghoul
Posts: 95
Joined: Thu Jan 01, 2004 1:19 pm
Location: Normal, IL
Contact:

Post by Onezero » Thu May 20, 2004 7:41 pm

This might help, code brackets are your friend.

Code: Select all

| Tradeskill macro to perform Combine and Autoinv one a selected recipe 
| Usage: Bring up Tradeskill Window, select Recipe, then run the macro. 
| SecretToo v1.1 - 2nd May 2004 - Initial version 
| 15th May 2004 - skill ups and cursor handling 
| 

#turbo 10 

#event EvtNoMoreStuff "#*#you don't have everything you need for this recipe#*#" 
#event EvtSkillUp "You have become better at #1#! (#2#)" 

Sub Main 

:mainloop 
/notify TradeskillWnd CombineButton leftmouseup 
/delay 1s 
/doevents 
:autoequip 
/newif (${Cursor.ID}!=NULL) { 
/notify TradeskillWnd AutoInvButton leftmouseup 
/delay 1s 
/goto :autoequip 
} 
/doevents 
/goto :mainloop 

/return 


Sub Event_EvtNoMoreStuff(string Line) 

/echo Out of components! 
/popup Out of components! 
/squelch /endmac 

/return 


Sub Event_EvtSkillUp(string Line, string skillname, string skillnum) 

/echo Skill Raise! ${skillname} is now ${skillnum}. 

/return
.[b].[/b]:[b]:[/b] Onezero
"[i]Health is merely the slowest rate at which you can die.[/i]"

Oid
a snow griffon
a snow griffon
Posts: 416
Joined: Thu Oct 17, 2002 3:26 am
Contact:

Post by Oid » Thu May 20, 2004 9:01 pm

Code: Select all

code brackets are your friend.  Use them.  They are good.
Smokey the Lax says only you can prevent reproduction.

BrainDeath
a ghoul
a ghoul
Posts: 86
Joined: Sun Mar 07, 2004 5:00 pm

Post by BrainDeath » Thu May 20, 2004 10:49 pm

If either of the notify statements are working after the May 17 zip, I would like to know how you did it. I would think that

Code: Select all

/notify COMBW_CombineArea COMBW_CombineButton leftmouseup
and
/notify COMBW_CombineArea COMBW_AutoInvButton leftmouseup
would be required.

secrettoo
orc pawn
orc pawn
Posts: 29
Joined: Sat Oct 25, 2003 10:56 am

Post by secrettoo » Thu May 20, 2004 11:18 pm

You're right, code fixed and reposted to stop the comments. I hadnt run it since the 17th May zip is the answer. I changed my other macros to use new window identifiers, but didnt change this one.

Works now anyway. Enjoy etc.

Treehugger
decaying skeleton
decaying skeleton
Posts: 2
Joined: Fri May 07, 2004 3:16 pm

Post by Treehugger » Sun Jun 13, 2004 12:58 pm

How would you add a line to destroy a certian item? Sometimes it's just not worth saving the item to sell to a vendor, the skillups are the only reward.

amml
a lesser mummy
a lesser mummy
Posts: 68
Joined: Thu Apr 22, 2004 4:55 pm

Post by amml » Sun Jun 20, 2004 10:53 am

use

Code: Select all

/destroy
instead of

Code: Select all

/notify TradeskillWnd AutoInvButton leftmouseup 

User avatar
Fuergrissa
a grimling bloodguard
a grimling bloodguard
Posts: 607
Joined: Mon Dec 08, 2003 3:46 pm
Location: UK

Post by Fuergrissa » Sun Jun 20, 2004 5:38 pm

amml wrote:use

Code: Select all

/destroy
instead of

Code: Select all

/notify TradeskillWnd AutoInvButton leftmouseup 
NO NO NO , Sorry to jump in here but NEVER use a /destroy in any macro UNLESS you run a check on the cursor first, if you pick anything from your inventory without thinking what your doing its gone, the best way is to add an ini file to log what you make and ONLY destroy items that exist in the ini ONCE you have edited the ini file.
No offence Amml I know your intentions where good.

This should work, I have not tested as im about to go to bed, if it does not then let me know ill knock up a macro and test it for you.

Code: Select all

Sub CheckItem 
      /declare ItemSetting int local 
      /declare NotFound int local 
      /varset NotFound -1 
      /varset ItemSetting ${Ini[combine.ini,ItemList,${Cursor.Name},${NotFound}]} 
      /delay 5
      /if (${ItemSetting}==${NotFound}) { 
      /ini "combine.ini" "ItemList" "${Cursor.Name}" "1" 
      /varset ItemSetting 1 
      }
      /if (${ItemSetting}==1) { 
  :BagIt 
      /autoinv
      /delay 5 
      /if (${Cursor.ID}) /goto :BagIt
      /return
      } else { 
      /Call Destroy
      /return
      } 
      /return 
      
Sub Destroy
      /destroy
      /return
[quote]"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."[/quote]

amml
a lesser mummy
a lesser mummy
Posts: 68
Joined: Thu Apr 22, 2004 4:55 pm

Post by amml » Sun Jun 20, 2004 6:19 pm

so true, thx =)

theoneandonly
orc pawn
orc pawn
Posts: 26
Joined: Sun Apr 11, 2004 6:39 pm

Post by theoneandonly » Sun Jun 20, 2004 6:50 pm

this seems like a stolen and modified version of Meatballs Vanilla Combine

User avatar
Fuergrissa
a grimling bloodguard
a grimling bloodguard
Posts: 607
Joined: Mon Dec 08, 2003 3:46 pm
Location: UK

Post by Fuergrissa » Mon Jun 21, 2004 2:37 am

theoneandonly wrote:this seems like a stolen and modified version of Meatballs Vanilla Combine
Virtually everyone starts by using other peoples macros and learning from them, using parts of them and modifying them to suit their means. the Correct term is Borrowing not STOLEN, if in the first place Meatballs combine macro was written from his/hers head rather than from looking at someone elses macro first and then using part of it to make his/hers.
[quote]"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."[/quote]