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

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

Post by mcswanbeck » Mon Feb 02, 2004 5:59 pm

bob_the_builder wrote:You can change the macroquest.ini to point to a shared network drive for the macros. Then you will only need to edit one place for all your MQ2 machines.
Hmm.. now this does indeed make sense, but how will MQ and/or this macro act if I load autolink.mac on two machines sharing the same macro directory?

I'm especially thinking about when some links an item in a channel I have joined on both toons, so autolink access the .ini-file at the same time...

Is that handled so the .ini-files doesn't get corrupted in any way?
/mcswanbeck

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

Post by ml2517 » Mon Feb 02, 2004 6:06 pm

I wouldn't run this macro on more than one machine at the same time unless you go through and comment out all of the possible operations that write to the INI file. Theoretically if 2 things tried to write to the same INI file at the same time you could have a problem. I guess it boils down to where you are and how often people send item links through your monitored channels.

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

Post by ml2517 » Sat Feb 14, 2004 12:11 am

Updated:

All links are now cached in an array upon macro startup and upon new links being added. Lookups and additions should be alot faster. Have fun.

Teh_ish
UI Guru
Posts: 168
Joined: Wed Nov 05, 2003 12:18 am

Post by Teh_ish » Sat Feb 14, 2004 1:38 am

Request: Anti-aug support.. Anything that has less then 5 dashes is generally an aug'd item
OMGWTFBBQ

robdawg
a ghoul
a ghoul
Posts: 114
Joined: Tue Mar 23, 2004 11:54 am
Contact:

...

Post by robdawg » Thu Mar 25, 2004 4:49 pm

Does this macro still work for anyone.

I have tried it, and I can get the

/echo list

command to work, but the item links are not clickable.

Furthermore, the /echo ssearch does not work and only returns part of the item name.

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

Post by ml2517 » Thu Mar 25, 2004 6:29 pm

If you are talking about the item links in the mq2chatwnd, that is a known issue with MQ2 (or working as intended, but still a MQ2 issue).

I'd have to check ssearch but it was working the last time I tried it.

User avatar
Bad Karma
a snow griffon
a snow griffon
Posts: 346
Joined: Sat Nov 22, 2003 9:34 pm
Contact:

Post by Bad Karma » Thu Mar 25, 2004 10:51 pm

I used it last night with no problems.
Are you IN the chat channel that it is sending results to? ;)
[b]- Bad Karma
________________________________________[/b]

In our own quest for excellence, we should strive to take the time to help those who help themselves.

All others should [b]RTFM[/b]!!!!!!!!!

robdawg
a ghoul
a ghoul
Posts: 114
Joined: Tue Mar 23, 2004 11:54 am
Contact:

....

Post by robdawg » Fri Mar 26, 2004 6:43 pm

yes I am in the right channel to see the ssearch out put

/echo ssearch sword /1

I usually only get part of the Item name or I get part of the item ID and part of the item name.

I will be testing it more if I can get the new offsets to work. Will probably just have to wait for a new zipfile. :)

One thing that might be the problem is that I see these in the bottom of the autolink macro

Not sure if that is supposed to be in the code, but if not then what is supposed to be in its place.

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

Post by ml2517 » Fri Mar 26, 2004 7:50 pm

Just copy and paste it into notepad and then save it as autolink.mac and it should be fine.

I have yet to test the macro because I haven't had time to update MQ2. It worked fine as of the last time I updated it at least.

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

Post by ml2517 » Sat Mar 27, 2004 12:05 am

Not sure what to tell you, I just tested it. It's running better than I remember it running. :D

Maybe verify that you don't have junk in your INI files or something and that you have the latest version of autolink.

Also, exactly what you see on this website is how it would look in notepad. With the goofy characters etc.
Last edited by ml2517 on Sat Mar 27, 2004 6:42 am, edited 1 time in total.

User avatar
Bad Karma
a snow griffon
a snow griffon
Posts: 346
Joined: Sat Nov 22, 2003 9:34 pm
Contact:

Post by Bad Karma » Sat Mar 27, 2004 6:41 am

Sounds to me like your .ini file(s) somehow got corrupted.
If you edited them in notepad, make SURE you are not saving them in UTF-8. MQ2 does not play nicely with those, and will "break" whatever it's supposed to do. Just open it up, and SaveAs ANSI, and that should fix it, if that's the problem.
[b]- Bad Karma
________________________________________[/b]

In our own quest for excellence, we should strive to take the time to help those who help themselves.

All others should [b]RTFM[/b]!!!!!!!!!

robdawg
a ghoul
a ghoul
Posts: 114
Joined: Tue Mar 23, 2004 11:54 am
Contact:

...

Post by robdawg » Wed Mar 31, 2004 11:28 pm

Okay here is what my Items-R.ini files looks like

Code: Select all

[Links]
0='0021495-00001-00001-00001-00001-000015D5E03E3Ring of Thunderous Spirits'
Is that what it is supposed to save as, because that is how it is saving it to my ini. When I do the /sseach All I get in the clicky link is "Spirits ".

What is wierd is that my /list command works fine. I mean I can not click on item links within the MQ2 output window, but I think that is how it is supposed to work.

Thanks for your help so far.
ROBDAWG

[url=http://www.seathound.com]Seat Hound[/url]
[url=http://www.sportsrumormill.com]Sports Rumor Mill[/url]
[url=http://www.packerforum.com]Packer Forum[/url]

robdawg
a ghoul
a ghoul
Posts: 114
Joined: Tue Mar 23, 2004 11:54 am
Contact:

...

Post by robdawg » Thu Apr 01, 2004 5:18 pm

Okay I got it to work finally!

When using it from the char who is running autolink.mac this does not work :

/echo ssearch sword /2

That does not work.

But if I do a tell to the char running autolink.mac

/t *char name* link me you sword /2

it works good

Guess I just needed to mess with it some more.

someone give me an RTFM plz, thx.
ROBDAWG

[url=http://www.seathound.com]Seat Hound[/url]
[url=http://www.sportsrumormill.com]Sports Rumor Mill[/url]
[url=http://www.packerforum.com]Packer Forum[/url]

nightgod
a ghoul
a ghoul
Posts: 122
Joined: Sun Nov 02, 2003 4:39 am

Post by nightgod » Thu Apr 01, 2004 7:00 pm

RTFM!

always happy to give a hand when needed...

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

Post by Chyld989 » Fri Apr 09, 2004 4:02 pm

Quick request for ya'. I was just wondering if it would be possible to add support for showing multiple links (that wouldn't come from the same search) at a time, maybe even with text. For instance, maybe you'd want it to output this:
Either this:
You tell ffroom334:4, 'Bag of the Tinkerers,Iron Breastplate of the Demented,Shimmering Scale Bracer'
Or this:
You tell ffroom334:4, 'Check out my new stuff: Bag of the Tinkerers (bought in the bazaar), Iron Breastplate of the Demented (promised to do an exchange for someone, and then logged once they gave me this), and Shimmering Scale Bracer (stole this one from a girl)'
As of right now, I know of no way to do this (and maybe there's a reason for that). I was even thinking that maybe it could use this (or a similar) command: (I just threw in my list # and key # for each item, obviously yours would be different)
/echo show b 22, i 2, s 0 /4 Check out my new stuff: itemlink (bought in bazaar), itemlink (promised to do an exchange for someone, and then logged once they gave me this), and itemlink (stole this one from a girl)
With my version of the command, each list # and key # are seperated by commas, and then they're just substituted in for the word 'itemlink' in the text. If you don't type out 'itemlink' enough, all the extra links are thrown in at the end of the text.

Maybe there's something I'm missing, and that's why this isn't already in there. Just thought I'd throw out the request for it, and see what ya' say. Thanks.