Complete n00b

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

poosader
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sun Aug 15, 2004 8:14 am

Complete n00b

Post by poosader » Sun Aug 15, 2004 8:28 am

The title says it all. I have no idea what I am doing here. It took me a while to even figure out the compression and stuff. Now I look at it and am completely boggled.

I have no idea where to write the "scripts", nor what to write. I'm still unsure of how to upload them while I am in game. I am completely computer illiterate when it comes to programming and script writing. I probably won't understand it unless you make it as if you were talking to a 13 year old. All I know is that I wanna be a GM tradeskiller without carpal tunnel by the time I turn 21. So:
/click <Combine button>
/click <delete item>
/click <delete item>
would be the only thing i need, well that and someway to repeat it. I can go out and get the supplies etc, go back to the forge, brew barrel etc. Just dont wanna be forced to sit and click.
Noob IRL

Chill
Contributing Member
Contributing Member
Posts: 435
Joined: Fri May 07, 2004 5:06 pm
Location: Erie, PA

Post by Chill » Sun Aug 15, 2004 2:34 pm

Most simple "scripts" will be found as macros in forums like Macro Depot v3.0. They use a fairly simple psuedo-C++ style code that you can pick up pretty easily.

If your main goal at this point is to automate tradeskill combines, I would search that forum for tradeskill/combine macros. I have one I use all the time that works well for me. My Combines.mac will repeat a highlighted recipie for you until you run out of components or it hits a specified number of combines. It pauses when you target yourself and gives success/failure info on the run. It does not, however, give any skillup info because I am already maxed on my skills and I honestly dont care about that.

Other people have written a number of macros that will tell you how many skill ups you have gotten, stop you when you get to a certain skill, etc. Some will even run around and buy stuff for you. If thats what you're looking for, do a search and you will probably find several macros to do what you want.

Once you pick one out, save it in your ..\MQ2\Release\Macros folder as <whatever>.mac. Fire up MQ2 then EQ and type /mac <whatever>.

Good luck.

poosader
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sun Aug 15, 2004 8:14 am

Post by poosader » Sun Aug 15, 2004 7:13 pm

Humm, how do i turn it into one of those icons? paste into notepad?
Noob IRL

Chill
Contributing Member
Contributing Member
Posts: 435
Joined: Fri May 07, 2004 5:06 pm
Location: Erie, PA

Post by Chill » Sun Aug 15, 2004 8:09 pm

icons? what icons? copy the macro, paste it into notepad, save as <some macro>.mac in your macro directory like I said above.

This is all after you get MQ2 working by downloading it and compiling with Visual C++ as described in other posts. If you havent made it that far yet, go look in the Help forum before worrying about macros.

Mystic_Blue
a lesser mummy
a lesser mummy
Posts: 69
Joined: Sat Jan 22, 2005 3:31 am

Post by Mystic_Blue » Mon Jan 24, 2005 5:53 pm

Hmm, I think they may be asking about the same pronblem I am having...

And I think I have found a solution.

I am running XP on my development computer, however I run EQ on a win98 machine. Not sure that matters, but I mention it anyway.

When I cut and paste a .mac or .inc file into notepad, and save it, the resultant file shows up as a text file as the file TYPE, even with .mac or .inc extensions

While the macros included with with the MQ2 release show us a MAC file TYPE. And show a different icon.

The macros cut and pasted into Notepad also will not run.

However, I have found that IF one loads up VS.net and then opens each file in turn, then SAVES AS with changed file type from TEXT FILES to ALL FILES, Then the file type changes to MAC FILE or INCLUDE FILE types.

One can also completly avoid this by opening a blank ( new ) file in VS.net to do the cut and paste into, then save it properly.

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Mon Jan 24, 2005 6:55 pm

Anytime you save a file you are copying from here, you need to change the save as box to All and give the file the proper extention.
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

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

Post by dedpoet » Tue Jan 25, 2005 10:33 am

The problem with notepad is that it tacks a .txt extension onto file names by default. So, if you save a file as mymacro.mac, it actually saves as mymacro.mac.txt. However, Windows defaults to not showing file extensions that it knows, which is why you are seeing a text file icon.

If you go to the Tools menu under My Computer and choose Window Options, you can find a check box to turn this behavior off. It varies a little bit depending on OS, but look for something called "Hide extensions of known file types" and turn it off. Now you will see entire file names. You can now find your file that you saved, highlight it, press F2, and get rid of that .txt extension.

If you are considering really getting into macro writing, you'll probably want to look into a more robust text editor such as Ultraedit or Textpad.

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Tue Jan 25, 2005 3:28 pm

Read my above post, all you have to do is change the "Save As" choice to All instead of the default Text, and name it mymacro.mac
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!