Page 1 of 1

Very simple practice macro

Posted: Thu Jun 10, 2004 5:16 pm
by Me.Name
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

Posted: Thu Jun 10, 2004 10:56 pm
by BlackTooth
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?

Posted: Fri Jun 11, 2004 11:27 am
by Me.Name
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.

Posted: Fri Jun 11, 2004 11:42 am
by SukMage
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.

Posted: Fri Jun 11, 2004 12:14 pm
by ab2304
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.

Posted: Fri Jun 11, 2004 3:06 pm
by theafkxper
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

Posted: Fri Jun 11, 2004 7:06 pm
by Me.Name
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.

about the Bazaar.ini

Posted: Fri Jun 11, 2004 9:50 pm
by BlackTooth
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

Posted: Sat Jun 12, 2004 1:45 am
by Me.Name
It saves each item and it's price. Even if sold. Stays after leaving trader mode.

Posted: Sat Jun 12, 2004 8:30 pm
by gehenna
This macro always ends for no reason. Anyone know why?

Posted: Sun Jun 13, 2004 3:03 am
by gehenna
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

Posted: Sun Jun 13, 2004 3:21 am
by Me.Name
I'm an idiot. Macro code in first post has been fixed.

Doh!

Posted: Sun Jun 13, 2004 1:26 pm
by gehenna
Thanks for fixing it. I thought it was something I was doing since no one above me said anything Lol.