Self Automated Tradeskill Macros

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

Moderator: MacroQuest Developers

User avatar
Override
a hill giant
a hill giant
Posts: 179
Joined: Sun Dec 29, 2002 9:19 am

Post by Override » Thu Aug 12, 2004 6:03 pm

Yeah, i didn't think about Gnomes doing it, I just programed it to walk over the table. I guess those short people can't make it over, lol. I can change it a little so it will walk around. I have spent the past few days reprograming the way the macro walks. I now have it so all the locs are in an *.ini file and it puts all those locs in an array then walks those locs in an array with a lot shorter code then I have been using. That way if I have to change the path it is a LOT easier.
Self Automated Tradeskill Macros at:
[url=http://www.override13.com/mq2/]http://www.override13.com/mq2/[/url]

SvnRn
orc pawn
orc pawn
Posts: 24
Joined: Fri Aug 06, 2004 7:07 pm

Post by SvnRn » Sun Aug 15, 2004 1:31 am

Maybe it is just me, but when I try to use the fletching macro, it says there is no fletching kit found. I'm buying a fletching kit straight off the merchant that is listed to normally use in Abysmal Sea even.

hytiek
Contributing Member
Contributing Member
Posts: 54
Joined: Mon Jun 14, 2004 5:45 pm

Post by hytiek » Sun Aug 15, 2004 4:01 pm

SvnRn wrote:Maybe it is just me, but when I try to use the fletching macro, it says there is no fletching kit found. I'm buying a fletching kit straight off the merchant that is listed to normally use in Abysmal Sea even.
You have to have the fletching kit in the bottom right corner of your inventory, as the macro says :)

hytiek
Contributing Member
Contributing Member
Posts: 54
Joined: Mon Jun 14, 2004 5:45 pm

Post by hytiek » Sun Aug 15, 2004 4:36 pm

I used and really appreciated your fletching macro!

I needed to go past Skill 202 in order to do the Aim Grimel quest for the Signet of the Arcane. So I added a few things to make this macro get me to where I needed to be, which was Skill 220.

The total to skill up to 220 was about 70k plat (CHA:150). Each buy routine after Skill 202 was approximately 3600plat. This macro does not stop when you run out of money it continues to loop through even though within Buy.mac there is an event called Broke; but it doesn't work with said NPC in Abysmal Sea. I didn't fix it, because I had the plat to sit there, sorry!

Below is the new, modified, replaced code to make this great macro continue to skill 220 and above (this skill up routine can take you to 255 if you wish and have that kind of plat)


fletching.ini

Addition to INI file:

Code: Select all

[RSRB]
Cont=Fletching Kit
Comp0=hemp twine
Comp1=shadewood bow staff
-------------------------------------------------------------

fletching.mac

Addition to Sub Main:

Code: Select all

    /declare Twine item outer
    /declare Staff item outer
Change to Sub Main:

FIND:

Code: Select all

    /varset SkillMaxWanted 202
REPLACE WITH:

Code: Select all

    /varset SkillMaxWanted 220

Addition to :start (addition is in red)

FIND:

Code: Select all

/if (${Me.Skill[Fletching]}>=${SkillMaxWanted}) {
      /echo Fletching is at ${SkillMaxWanted}. Quiting!
      /endmacro
   }
REPLACE WITH:

Code: Select all

   /if (${Me.Skill[Fletching]}>=${SkillMaxWanted}) {
      /echo Fletching is at ${SkillMaxWanted}. Quiting!
      /endmacro
   }
   /if (${Me.Skill[Fletching]}>202) { 
      /varset Staff "shadewood bow staff" 
      /varset Twine "hemp twine" 
      /varset CombItemName "RSRB" 
      /varset ItemTo "Rough Shadewood Recurve Bow" 
   }
Change within :start (selling/buying routine)

FIND:

Code: Select all

       /call Sell ${AShafts}
       /delay 1s
       /call Sell ${GrooveN}
       /delay 1s
       /call Sell ${CFletching}
       /delay 1s
       /call Sell ${AHeads}
       /delay 1s
       /call Buy ${AShafts} 40
       /delay 1s
       /call Buy ${GrooveN} 40
       /delay 1s
       /call Buy ${CFletching} 40
       /delay 1s
       /call Buy ${AHeads} 40
       /delay 1s
REPLACE WITH:

Code: Select all

   /if (${Me.Skill[Fletching]}>202) {
       /call Sell ${Staff}
       /delay 1s
       /call Sell ${Twine}
       /delay 1s
       /call Buy ${Staff} 10
       /delay 1s
       /call Buy ${Twine} 10
       /delay 1s
    } else {
       /call Sell ${AShafts}
       /delay 1s
       /call Sell ${GrooveN}
       /delay 1s
       /call Sell ${CFletching}
       /delay 1s
       /call Sell ${AHeads}
       /delay 1s
       /call Buy ${AShafts} 40
       /delay 1s
       /call Buy ${GrooveN} 40
       /delay 1s
       /call Buy ${CFletching} 40
       /delay 1s
       /call Buy ${AHeads} 40
       /delay 1s
     }

User avatar
Kambic
a lesser mummy
a lesser mummy
Posts: 74
Joined: Fri May 28, 2004 11:48 am

Post by Kambic » Mon Aug 16, 2004 10:15 am

The brewing and baking one together only cost me about 600pp. Very simple to do both. Change the first one:

Code: Select all

/if (${Me.Skill[Brewing]}>=${SkillMaxWanted}) {
/echo Brewing is at ${SkillMaxWanted}. Beginning the Baking macro!
/endmacro
to

Code: Select all

/if (${Me.Skill[Brewing]}>=${SkillMaxWanted}) {
/echo Brewing is at ${SkillMaxWanted}. Beginning the Baking macro!
/mac baking
Thanks again, works wonder :) Had no problems major problems so far.

User avatar
Override
a hill giant
a hill giant
Posts: 179
Joined: Sun Dec 29, 2002 9:19 am

Post by Override » Mon Aug 16, 2004 11:02 pm

Thanks for the info, I have updated pretty much all my macros to new versions but have not put them on the site yet. I do have the added to 250 on fletching. :) And I have fixed the part if you run out of money. I will release all of them in a day or two with the pottery one too. Been busy the past week so havent got around to finishing it up.
Self Automated Tradeskill Macros at:
[url=http://www.override13.com/mq2/]http://www.override13.com/mq2/[/url]

User avatar
Override
a hill giant
a hill giant
Posts: 179
Joined: Sun Dec 29, 2002 9:19 am

Post by Override » Mon Aug 16, 2004 11:36 pm

Ok, I ended up putting the updated macros up. I have not added the pottery one yet though, I will probably end up adding that in on wednesday if I have time tomorrow to finish it up tomorrow. Here is the update on the website:
August 17, 2004 11:30 pm EST

Updated the smithing macro (v2.6) to make the doors easier to go through, if it was open it would close the door and get stuck on door, now it should work a little bit better now and not get stuck on the door. The buy.inc (v1.4) was updated to fix the problem that if you were out of money it would not stop, it would just keep trying to buy it. And last but not least, the fletching macro (v2.8) was updated to go all the way up to 250 in skill. Just to let everyone know though, if you want to go from 202 to 250, it cost a LOT of money. The merchant way to go above 202 in fletching is very expensive, but if you got the money, then by all means, Go for it.
Self Automated Tradeskill Macros at:
[url=http://www.override13.com/mq2/]http://www.override13.com/mq2/[/url]

hytiek
Contributing Member
Contributing Member
Posts: 54
Joined: Mon Jun 14, 2004 5:45 pm

Post by hytiek » Tue Aug 17, 2004 1:07 am

Cool ! Thanks for the updates, and again, nice job bro!

Chyld989
a ghoul
a ghoul
Posts: 88
Joined: Mon Dec 22, 2003 3:29 pm

Post by Chyld989 » Tue Aug 17, 2004 3:34 am

Before I post the problem I'm having, let me just say that it's 2:30 in the morning, so there's a good chance I'm just retarded and missed something =) That said, here's the issue I'm having:

I was running the fletching macro and when it tried to combine the stuff I got the following message:
"[MQ2] Planar Fletching Kit"
"[MQ2] Could not find container Planar Fletching Kit"

So I look in my inventory, and in the bottom right corner is a Fletching Kit (not Planar). So I sell that one and go buy the Planar kit. I got back and run the macro again, and get this:
"[MQ2] Planar Fletching Kit"
"[MQ2] Please Wait ...... Cleaning out Planar container"
"[MQ2] Could not find container in your inventory"
"[MQ2] Container name = Planar"


Like I said, I probably just went retarded and missed something, but this is the issue I'm having. Feel free to flame me, but at least point out a fix (or a place to read about the already posted fix) in your flame ^_^

Thanks

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Tue Aug 17, 2004 8:56 pm

One problem I noticed is that they (well, the ones I looked at, fletching and jc) don't check for maxskill between every combine so if you have half a stack of ingredients left when you hit the defined skill max it will keep going until it runs out.

Apart from that, really impressive work you've done here.

Oh and a suggestion. Have you considered adding support for buying from PC traders in bazaar? For example, smithing is easy up to 186 or something like that if you buy padding from players. Would take a bit of work to set up the paths to walk between different merchants but it's definately doable. Could perhaps set up a max price to pay for the stuff.
Here's an old macro that could be useful http://macroquest2.com/phpBB2/viewtopic.php?t=4540 .

Tuirn
decaying skeleton
decaying skeleton
Posts: 1
Joined: Tue Jun 22, 2004 2:38 pm

Post by Tuirn » Tue Aug 17, 2004 11:31 pm

Chyld989 wrote:Before I post the problem I'm having, let me just say that it's 2:30 in the morning, so there's a good chance I'm just retarded and missed something =) That said, here's the issue I'm having:

I was running the fletching macro and when it tried to combine the stuff I got the following message:
"[MQ2] Planar Fletching Kit"
"[MQ2] Could not find container Planar Fletching Kit"

So I look in my inventory, and in the bottom right corner is a Fletching Kit (not Planar). So I sell that one and go buy the Planar kit. I got back and run the macro again, and get this:
"[MQ2] Planar Fletching Kit"
"[MQ2] Please Wait ...... Cleaning out Planar container"
"[MQ2] Could not find container in your inventory"
"[MQ2] Container name = Planar"


Like I said, I probably just went retarded and missed something, but this is the issue I'm having. Feel free to flame me, but at least point out a fix (or a place to read about the already posted fix) in your flame ^_^

Thanks
Ok, I ran into this same problem. The change I made was to add the following code to cleanpacks.inc at the top. It looks like someone has already tried to work around a simular issue here for the standard Fletching Kit and the Jeweler's Kit. When a combine container name is passed into this subroutine, it only sees the first word in the name. I'm sure there's a better way to fix the fletching macro instead, but I don't know how right now.

Code: Select all

sub cleanPack(string PackName)

    /if (${PackName.Equal[Planar]}) {
	/varset PackName Planar Fletching Kit
    }
~Tuirn

User avatar
Override
a hill giant
a hill giant
Posts: 179
Joined: Sun Dec 29, 2002 9:19 am

Post by Override » Wed Aug 18, 2004 12:13 am

Chyld989 wrote:Before I post the problem I'm having, let me just say that it's 2:30 in the morning, so there's a good chance I'm just retarded and missed something =) That said, here's the issue I'm having:

I was running the fletching macro and when it tried to combine the stuff I got the following message:
"[MQ2] Planar Fletching Kit"
"[MQ2] Could not find container Planar Fletching Kit"

So I look in my inventory, and in the bottom right corner is a Fletching Kit (not Planar). So I sell that one and go buy the Planar kit. I got back and run the macro again, and get this:
"[MQ2] Planar Fletching Kit"
"[MQ2] Please Wait ...... Cleaning out Planar container"
"[MQ2] Could not find container in your inventory"
"[MQ2] Container name = Planar"


Like I said, I probably just went retarded and missed something, but this is the issue I'm having. Feel free to flame me, but at least point out a fix (or a place to read about the already posted fix) in your flame ^_^

Thanks
I have set this macro to work in with standard fletching kits and standard jewelry kits since that is what you find in the abysmal sea. You can modify like Tuirn did up top or comment out the /call cleanPack ${Container}. Either way that will fix your problem with the Planar Kits.
Self Automated Tradeskill Macros at:
[url=http://www.override13.com/mq2/]http://www.override13.com/mq2/[/url]

User avatar
Override
a hill giant
a hill giant
Posts: 179
Joined: Sun Dec 29, 2002 9:19 am

Post by Override » Wed Aug 18, 2004 12:16 am

Chyld989,

Actually, I just realized that my ini file for fletching was messed up and did in fact say Planar Fletching Kit cause I was doing some fletching there the other day. I have updated it and updated it to the website. Sorry about that.
Self Automated Tradeskill Macros at:
[url=http://www.override13.com/mq2/]http://www.override13.com/mq2/[/url]

User avatar
Override
a hill giant
a hill giant
Posts: 179
Joined: Sun Dec 29, 2002 9:19 am

Post by Override » Wed Aug 18, 2004 12:27 am

Ok, I just put another update on the website. The pottery macro IS UP. I have had a lot of people messaging me about it so i figured I would put it up tonight. Here is the update on the site:
August 18, 2004 12:30 am EST

The pottery macro (v2.1) HAS been added. It includes the new walking function too that I am going to update all the macros with. The new way is a lot easier to add new pathways in if needed. Also, the fletching.zip I updated yesterday was messed up and had the wrong .ini file in it. Sorry about that. If you downloaded it and are having problems, please download the new one.
Enjoy!
Self Automated Tradeskill Macros at:
[url=http://www.override13.com/mq2/]http://www.override13.com/mq2/[/url]

A Troll
a lesser mummy
a lesser mummy
Posts: 30
Joined: Fri May 21, 2004 10:04 am

Post by A Troll » Thu Aug 19, 2004 5:31 am

i am the only one that CTD with the brewing mac ?
It will buy all stuff and then crash eq totally
not tried any other till now...