Page 1 of 1

[SOLVED]Event Handlers and Item Links

Posted: Tue Jan 28, 2014 11:06 pm
by mponthepc
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.

Re: Event Handlers and Item Links

Posted: Wed Jan 29, 2014 12:58 am
by EqMule
Don't know, I'll investigate and get back to you.
Thanks for the info.

Re: Event Handlers and Item Links

Posted: Wed Jan 29, 2014 10:29 am
by EqMule
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')) {

Re: Event Handlers and Item Links

Posted: Wed Jan 29, 2014 1:37 pm
by mponthepc
As I'm sure you already knew...that changed fixed it. Thank you.

Re: [SOLVED]Event Handlers and Item Links

Posted: Fri Jan 16, 2026 8:15 pm
by xyilla

Re: [SOLVED]Event Handlers and Item Links

Posted: Fri Jan 16, 2026 8:16 pm
by xyilla

Re: [SOLVED]Event Handlers and Item Links

Posted: Fri Jan 16, 2026 8:17 pm
by xyilla