[SOLVED]Event Handlers and Item Links

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

mponthepc
a lesser mummy
a lesser mummy
Posts: 37
Joined: Sun Mar 06, 2005 1:01 pm

[SOLVED]Event Handlers and Item Links

Post by mponthepc » Tue Jan 28, 2014 11:06 pm

I noticed the change you mentioned with checking for toon names and trimming the binary character off the character names in events. I've altered my macros to take this into account.

Has the event handlers for items also changed? For example:
I look for someone linking an item in chat, and put it into theItem. If the item starts with a binary character I know it's a link and trim it. After this patch the macro isn't firing because it doesn't detect that there is any binary character at all in the string. So...

/If (${theItem.Left[1].Equal[Binary Character Here]}) {
/varset theItem ${theItem.Right[-57]}
}

The name will show up as 0209DD0EBFD00000000000000000000000000000000000005AD86150Apocryphal Illuminator Bracer and still include all that nonesense before the item name.

Also I do use the info in that string as well because it contains a hex value which is the actual ItemID.

EqMule
Developer
Developer
Posts: 2697
Joined: Fri Jan 03, 2003 9:57 pm
Contact:

Re: Event Handlers and Item Links

Post by EqMule » Wed Jan 29, 2014 12:58 am

Don't know, I'll investigate and get back to you.
Thanks for the info.
My status o/
If you like MQ2 and would like to contribute, please do. My goal is 25 donations per month.
So far I've received Image donations for this month's patches.

Bitcoin: 1Aq8ackjQ4f7AUvbUL7BE6oPfT8PmNP4Zq
Krono: PM me.
I can always use characters for testing, PM me if you can donate one.

EqMule
Developer
Developer
Posts: 2697
Joined: Fri Jan 03, 2003 9:57 pm
Contact:

Re: Event Handlers and Item Links

Post by EqMule » Wed Jan 29, 2014 10:29 am

yes it is correct, I did break it.

I will have it fixed in the next zip, but if you want to fix it yourself prior to me releasing here is how:

in MQ2DataVars.cpp on line 628:
change:

Code: Select all

					if(char *pDest = strrchr(szTemp,'\x12')) {
to:

Code: Select all

					if(char *pDest = strchr(szTemp,'\x12')) {
My status o/
If you like MQ2 and would like to contribute, please do. My goal is 25 donations per month.
So far I've received Image donations for this month's patches.

Bitcoin: 1Aq8ackjQ4f7AUvbUL7BE6oPfT8PmNP4Zq
Krono: PM me.
I can always use characters for testing, PM me if you can donate one.

mponthepc
a lesser mummy
a lesser mummy
Posts: 37
Joined: Sun Mar 06, 2005 1:01 pm

Re: Event Handlers and Item Links

Post by mponthepc » Wed Jan 29, 2014 1:37 pm

As I'm sure you already knew...that changed fixed it. Thank you.