autolink.mac - Auto link storage/search - *New Parm Ready*

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

MultiWebberNL
orc pawn
orc pawn
Posts: 11
Joined: Sun Dec 21, 2003 10:41 am

Post by MultiWebberNL » Sun Jan 25, 2004 12:47 pm

Any chance you can make it listen to Raid and Channels? :)

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Sun Jan 25, 2004 1:04 pm

mcswanbeck wrote:I simply love this - it works fine now and I don't even notice it's running :D

Another small request though:
Make an optional parameter to the ssearch function like:

Code: Select all

/echo ssearch shinai /gu (sends the output to /gu if exactly ONE item is found)
/echo ssearch shinai /3 (sends the output to chat channel 3 if exactly ONE item is found)
... and maybe even:

Code: Select all

/echo ssearch shinai /tell johndoe (sends the output as a tell to johndoe if exactly ONE item is found)
If nothing is specified after the search word, then just send the output to the channel specified in the macro file.

Does that make sense?
Hmm not a bad idea. I'll see what I can do when I get some time.

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Sun Jan 25, 2004 1:11 pm

MultiWebberNL wrote:Any chance you can make it listen to Raid and Channels? :)
I have it monitoring every channel possible at the moment. :?

What do you mean by "Channels"? if you meant chat channels it should be doing that now. Is it not working?

MultiWebberNL
orc pawn
orc pawn
Posts: 11
Joined: Sun Dec 21, 2003 10:41 am

Post by MultiWebberNL » Sun Jan 25, 2004 1:58 pm

I was running older version! Yeah, slap me.

Can you snatch links from stuff as it's looted?

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Sun Jan 25, 2004 2:52 pm

mcswanbeck wrote:I simply love this - it works fine now and I don't even notice it's running :D

Another small request though:
Make an optional parameter to the ssearch function like:

Code: Select all

/echo ssearch shinai /gu (sends the output to /gu if exactly ONE item is found)
/echo ssearch shinai /3 (sends the output to chat channel 3 if exactly ONE item is found)
... and maybe even:

Code: Select all

/echo ssearch shinai /tell johndoe (sends the output as a tell to johndoe if exactly ONE item is found)
If nothing is specified after the search word, then just send the output to the channel specified in the macro file.

Does that make sense?
Updated with this feature request. Enjoy. :D

mcswanbeck
a lesser mummy
a lesser mummy
Posts: 70
Joined: Fri Jan 16, 2004 5:16 am

Post by mcswanbeck » Sun Jan 25, 2004 4:13 pm

ml2517 wrote:Updated with this feature request. Enjoy. :D
You are the best :)
/mcswanbeck

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Sun Jan 25, 2004 5:40 pm

Updated:
I went one step further and allow you to mix text in with the link when you send it to the channel of your choice.

You can now do things like this:

Code: Select all

/echo ssearch iron ore /tell johnny Have you ever seen this itemlink before?
The ouput would be a tell to johnny that says:
Have you ever seen this ITEMLINK before?

Code: Select all

/echo ssearch iron ore /1 Have you ever seen this itemlink before?
The ouput would be to chat channel 1 that says:
Have you ever seen this ITEMLINK before?

Code: Select all

/echo ssearch iron ore /chat #channelname Have you ever seen this?
The ouput would be to chat channel 'channelname' that says:
Have you ever seen this? ITEMLINK


So in short, if you want to just tack it on to the end of your text there is no need to put the word 'itemlink' in there.

If you'd like to put the link in the middle of some text you just plop the keyword 'itemlink' in the middle of the phrase.

All communications channels should work with this. Let me know if you see any problems.

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Sun Jan 25, 2004 6:20 pm

Updated:
One small bugfix for when you ssearch returned no results.

Also went ahead and added the channel redirects to the 'show' command as well. So you can do something like this:

Code: Select all

/echo show k 11 /tell johnny Are you talking about this itemlink ?? Or something else?
This would output to johnny in tell:
Are you talking about this ITEMLINK ?? Or something else?

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Sun Jan 25, 2004 7:47 pm

MultiWebberNL wrote:I was running older version! Yeah, slap me.

Can you snatch links from stuff as it's looted?
Hmm I'll look at it, I'm sure I can but no it wasn't in there.

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Sun Jan 25, 2004 8:01 pm

MultiWebberNL wrote:I was running older version! Yeah, slap me.

Can you snatch links from stuff as it's looted?
Updated:
It will now parse through group "looted" messages and grab links as well.

ionsf
a ghoul
a ghoul
Posts: 94
Joined: Wed Jan 14, 2004 10:19 pm

Post by ionsf » Sun Jan 25, 2004 10:05 pm

I have a feature request.... I would like to have the trader sitting in a channel that me and some very close friends hangout in.
We all use macroquest. So its safe...


The feature I would like is for us to be able to enter the commands in our channel. Like ssearch robe. And the bot would report the results to the channel.

In any event i'm gonna see if I can write it myself..small learning curve

mcswanbeck
a lesser mummy
a lesser mummy
Posts: 70
Joined: Fri Jan 16, 2004 5:16 am

Post by mcswanbeck » Mon Jan 26, 2004 3:17 am

Another small but not important thing...

If you do a ssearch and there is no results, then it still tries to fulfill the order.

I.e. if you use tells, then it sends a blank tell to the person you specified, if you use a chat channel, then it also tries to send a blank msg to the chat channel, which is not possible, so you get a warning.

So, maybe just cancel command if there are no items returned in the search?
/mcswanbeck

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Mon Jan 26, 2004 7:48 am

I think I fixed that a few posts up. Were you on the latest version?

mcswanbeck
a lesser mummy
a lesser mummy
Posts: 70
Joined: Fri Jan 16, 2004 5:16 am

Post by mcswanbeck » Mon Jan 26, 2004 8:49 am

ml2517 wrote:I think I fixed that a few posts up. Were you on the latest version?
That was v1.09
/mcswanbeck

fishez
orc pawn
orc pawn
Posts: 19
Joined: Tue Dec 09, 2003 3:42 pm

Post by fishez » Mon Jan 26, 2004 11:09 am

This works excellently!

Are you aware of any way to extract the information in the links like the value, stat info, etc to a separate file?