_COMMON

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

kaz
a ghoul
a ghoul
Posts: 103
Joined: Tue Jan 14, 2003 4:09 am

_COMMON

Post by kaz » Tue Jan 14, 2003 4:47 am

I found $count() was not returning proper values for stacked items, so I investigated and found an extra 2 bytes in memory somewhere between

signed long AC; // 0x14
and
...
BYTE Stackable; // 0x36

changing
BYTE Unknown0274[2]; // 0x34
to:
BYTE Unknown0274[4]; // 0x34

will fix it and and thus make
BYTE Stackable; // 0x38

this gives proper stack counts although I did not have time to investigate and see if the extra 2 bytes were the result of one of the WORD's being expanded to a DWORD (which I suspect is probably the case).


kaz

lifewolf
a ghoul
a ghoul
Posts: 143
Joined: Fri Oct 18, 2002 6:29 pm

Re: _COMMON

Post by lifewolf » Tue Jan 28, 2003 10:38 am

kaz wrote:I found $count() was not returning proper values for stacked items, so I investigated and found an extra 2 bytes in memory somewhere between

signed long AC; // 0x14
and
...
BYTE Stackable; // 0x36

changing
BYTE Unknown0274[2]; // 0x34
to:
BYTE Unknown0274[4]; // 0x34

will fix it and and thus make
BYTE Stackable; // 0x38

this gives proper stack counts although I did not have time to investigate and see if the extra 2 bytes were the result of one of the WORD's being expanded to a DWORD (which I suspect is probably the case).


kaz

Probably why clicking stacks in OldUI is fubar