Very simple practice macro

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

Moderator: MacroQuest Developers

Me.Name
a lesser mummy
a lesser mummy
Posts: 56
Joined: Thu Mar 11, 2004 11:49 pm
Location: ${Me.Bound}

Very simple practice macro

Post by Me.Name » Thu Jun 10, 2004 5:16 pm

I wanted to have a very simple macro to facilitate skillups and such. This macro Just hits your 0 (or 10th) hotkey repeatedly. It takes one parameter (in tenths of a second) for delay and defaults to 10 (1 second) if no value is given. Just put whatever you want to practice on your 0 hotkey. Sitting stopps the macro.
There is a line for destroying whatever is on your cursor for Conjuration practice, but it is commented out. Just remove the "|" before the "/destroy" if you want this feature. Another idea - If you wish to save whatever is on your cursor (if using fishing, foraging, conjuring) just change the "|/destroy" to "/autoinventory".

Edit: It assumes you have your 10th hotkey mapped to the default of "0"

WARNING:
This macro is NOT intended to be run AFK. You have been warned.


I welcome all suggestions/crtiques. This is my first macro posting.

Code: Select all

| repeat.mac
|
| This macro does nothing but hit your "0" hotkey repeatedly
| with a specified delay. If no parameter is given, defaults to
| 10 (1 second). Macro ends if you sit down.
|

Sub Main
	/declare delaytime   int   local   ${Param0}
	/if (${delaytime}<=0) /varset delaytime 10

	:loop
	/keypress 0
	/delay ${delaytime}
	|/destroy
	/if (!${Me.Sitting}) /goto :loop
/endmacro
Last edited by Me.Name on Mon Jun 14, 2004 2:11 am, edited 2 times in total.

BlackTooth
a lesser mummy
a lesser mummy
Posts: 50
Joined: Mon Dec 08, 2003 10:32 am

Post by BlackTooth » Thu Jun 10, 2004 10:56 pm

Geesh where was this kinda stuff when we had to actually practice sense heading lol. I had to reassign all my hotkeys to my movement ones lol.


I was thinkin to that something like this would be awesome for the bazaar... Set it to say some trader stuff every half hour or something. Think this would attract suspicion?

Me.Name
a lesser mummy
a lesser mummy
Posts: 56
Joined: Thu Mar 11, 2004 11:49 pm
Location: ${Me.Bound}

Post by Me.Name » Fri Jun 11, 2004 11:27 am

I would add a random delay. Make it vary somewhere between 5 and 6 min maybe. Even better would be have your macro include 3 or 4 messages that are similar and pick one randomly. Even have one with a typo. Hard part would be links in the message.

There's a project for you macro pros - a macro that will make bazaar /ooc messages and automatically include the item links.

User avatar
SukMage
a ghoul
a ghoul
Posts: 88
Joined: Fri Jun 04, 2004 5:08 pm

Post by SukMage » Fri Jun 11, 2004 11:42 am

That's a good idea... I'm a macro newb though. It would be possible to pull links from your inventory and the price from your bazaar ini though, right? Hmmm... It'd be neat.

ab2304
orc pawn
orc pawn
Posts: 20
Joined: Tue Jun 01, 2004 3:19 pm

Post by ab2304 » Fri Jun 11, 2004 12:14 pm

Actually, I would use only 1 particular string (or 4). No changes, no mispellings. Whenever I am advertising, I use Shift-up to get my last message and hit enter, so I dont have to keep retyping it. It would not be odd to see the same message over and over.

The hard part would be : If someone buys the item your advertising for, how do you remove that part of the message? Guess you could put many strings together. If someone buys your Centi_Longsword, remove it from the list. If list <1, dont display message. Have a second list with prices you want for the corrosponding item. With nested for loops to first add the /auction WTS part, then second for loop to add Item[iCount] and Price[iCount]

If someone wants to code this up, its all there.

theafkxper
a hill giant
a hill giant
Posts: 207
Joined: Sun Sep 08, 2002 6:41 pm

Post by theafkxper » Fri Jun 11, 2004 3:06 pm

BlackTooth wrote:Geesh where was this kinda stuff when we had to actually practice sense heading lol. I had to reassign all my hotkeys to my movement ones lol.

Just for the record they were Right Here but that was a good bit before your MQ2 time :D

Me.Name
a lesser mummy
a lesser mummy
Posts: 56
Joined: Thu Mar 11, 2004 11:49 pm
Location: ${Me.Bound}

Post by Me.Name » Fri Jun 11, 2004 7:06 pm

Getting a macro to make the link in /auction may be difficult, but how about one that just adds the name of what ever item is in the first slot of your first trader satchel? Could maybe even pull it right from trader window. Not sure how you could include a price (could this also be pulled right from trader window?). I like the read your bazaar.ini idea. It would be just like the standard EQ merchants - they always say "have you seen the ${first item in inventory} i just got in". That way the message would automaticaly change when you sold that item. Just keep your trader satchel items ordered in "popularity" desending order.

For those fans of pseudocode (this is NOT a macro!):

Code: Select all

Sub Main
	:loop
	itemforsale = top item in trader satchel
	price = price for ${itemforsale} in bazaar.ini file
	/auction Now selling ${itemforsale} for amazing low price of ${price}. Better hurry!
	Random delay for around 5 minutes
	If (still in trader mode) /goto :loop
End Main
Yes it is sloppy but it helps me get my logic worked out before worring about syntax.
Last edited by Me.Name on Sun Jun 13, 2004 3:22 am, edited 1 time in total.

BlackTooth
a lesser mummy
a lesser mummy
Posts: 50
Joined: Mon Dec 08, 2003 10:32 am

about the Bazaar.ini

Post by BlackTooth » Fri Jun 11, 2004 9:50 pm

Does the bazaar.ini file change everytime that you go into trader mode?
Or does it save the item names and prices of every item you put for sale?
Cuz if you could make it so that it saved only what you put up that particular time then you could have it read the prices and item names every half hour or something and resave and recheck the file every 5 min or so, so that it gets updated as you sell items

Me.Name
a lesser mummy
a lesser mummy
Posts: 56
Joined: Thu Mar 11, 2004 11:49 pm
Location: ${Me.Bound}

Post by Me.Name » Sat Jun 12, 2004 1:45 am

It saves each item and it's price. Even if sold. Stays after leaving trader mode.

gehenna
orc pawn
orc pawn
Posts: 17
Joined: Fri Apr 16, 2004 10:03 pm

Post by gehenna » Sat Jun 12, 2004 8:30 pm

This macro always ends for no reason. Anyone know why?

gehenna
orc pawn
orc pawn
Posts: 17
Joined: Fri Apr 16, 2004 10:03 pm

Post by gehenna » Sun Jun 13, 2004 3:03 am

When I try and run this macro I get the error

Couldn't find label loop

Then it ends after only one keypress. Any ideas?

Thanks

Me.Name
a lesser mummy
a lesser mummy
Posts: 56
Joined: Thu Mar 11, 2004 11:49 pm
Location: ${Me.Bound}

Post by Me.Name » Sun Jun 13, 2004 3:21 am

I'm an idiot. Macro code in first post has been fixed.

Doh!

gehenna
orc pawn
orc pawn
Posts: 17
Joined: Fri Apr 16, 2004 10:03 pm

Post by gehenna » Sun Jun 13, 2004 1:26 pm

Thanks for fixing it. I thought it was something I was doing since no one above me said anything Lol.