link.mac (Item Links Storage)

Macro depository for macros written before the user variable changes that broke all of them.

Moderator: MacroQuest Developers

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Post by kagonis » Wed Sep 03, 2003 7:51 pm

I will take a look at it later, right now I'm kinda swamped.

User avatar
ieatacid
Developer
Developer
Posts: 2727
Joined: Wed Sep 03, 2003 7:44 pm

Post by ieatacid » Wed Sep 03, 2003 8:43 pm

Cool, this thing rocked :)

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Thu Sep 04, 2003 5:32 am

$return is no longer int

/ini "INIPATH" "Links" "$return" "- $p1 -"

becomes

/ini "INIPATH" "Links" "$int($return)" "- $p1 -"

and the path is relative to the Macros directory.

However, the links didn't work for me, but maybe because I filter macros.

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Post by kagonis » Thu Sep 04, 2003 6:29 pm

I'm using a CVS compile from September 3rd. 2003...
/ini does not write to any files whatsoever
$ini does not read from any files whatsoever

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Thu Sep 04, 2003 9:56 pm

/ini & $ini fixed in CVS

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Post by kagonis » Fri Sep 05, 2003 1:33 am

This works with latests CVS, tested.
Only thing I noticed now though, is that it seems to hang when running it, where as before It just executed flawlessly.
I don't know if this is due to any changes in MQ, or if its due to the changes made to how links are working. My guess is MQ though, since the link is just a string to MQ, and a simple change to a "string" shouldn't make it hang as much as it does.

User avatar
ieatacid
Developer
Developer
Posts: 2727
Joined: Wed Sep 03, 2003 7:44 pm

Post by ieatacid » Fri Sep 05, 2003 2:23 am

Thanks. Seems to be running fine for me so far :)

Random
decaying skeleton
decaying skeleton
Posts: 5
Joined: Sun Jul 20, 2003 3:31 pm

Post by Random » Sat Sep 06, 2003 8:46 pm

Can't get this to work.

It seemingly works find, ini writes, but it won't add new items.

When I go to add a new one via /macro link add "itemlink" it just replaces the old one rather than adding another.

In other words, if the ini doesn't exist, it will make one, and add a link to key 1, but when I try to add another, it simply replaces key 1.

Also it doesn't list the links, when I go to /macro link list it just clears the timers vars and arrays and ends, even though there is an item in the ini.

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Post by kagonis » Sun Sep 07, 2003 2:50 am

Try using the new code I just updated in the initial post (wich I have personally tested, and are using ;).
My guess is that the problem is due to $return now handling strings as well.
So when the key asks for key 1, it wont find it cause in the ini file its added as 1.00. Or its the other way around, I cant remember :p

When the script was originally made $return only handled integers.

Basically all that has been changed from the original version to the current version, is the added $ini() around all places where it is writing or reading to or from the ini file.

You could try and paste a line from the ini file here on the thred, should say something like:

Code: Select all

[color=red]1[/color]=- 0008781-00001-00001-00001-00001-0000135081543Twisted Twig Charm -
The important part is that the key (what I highlighted with red) MUST be an integer (a whole number, ie "1" and not "1.00").

Anyway, I'm writing too much babble right now, time for bed ;)

Ecchi_User
orc pawn
orc pawn
Posts: 18
Joined: Fri Aug 30, 2002 6:34 am

Currently

Post by Ecchi_User » Thu Sep 18, 2003 6:35 am

I'm just curious, does this macro work currently?

I haven't compiled the newest MQ yet. Since reading around the boards, it seems like there's a few minor issues. Just wondering, cause if the issues aren't there or a big deal, I'll compile and start using it again.

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Post by kagonis » Thu Sep 18, 2003 12:48 pm

It works..

Ecchi_User
orc pawn
orc pawn
Posts: 18
Joined: Fri Aug 30, 2002 6:34 am

Thanks

Post by Ecchi_User » Thu Sep 18, 2003 11:31 pm

Thanks. Simple answer was all I was looking for. =)

Time to grab new zips and recompile now.