Page 1 of 1

another bug : getItemAtSlot(30)

PostPosted: Sat Nov 24, 2012 7:36 pm
by Batlin
Today I found a new OSI bug in the demo.

I've documented the getItemAtSlot function at our wiki : . While documenting I realized there was something not right.

I've used Python (using uodmp ) to verify this bug. I do not believe the bug can be triggered through normal gameplay.

UO Demo getItemAtSlot.png
getItemAtSlot crash bug
UO Demo getItemAtSlot.png (28.38 KiB) Viewed 248793 times

Re: another bug : getItemAtSlot(30)

PostPosted: Sat Nov 24, 2012 7:53 pm
by Garret
Interesting that in my packet guide, layer 30 (0x1E) is listed as "Shop Max".
I'll try to dig where was the source of this information.

Maybe it functions different when applied to the vendor mobile instead of the player mobile, but they have forgot to check that object is not player when layer is 30?

Re: another bug : getItemAtSlot(30)

PostPosted: Sun Nov 25, 2012 10:28 am
by Batlin

Re: another bug : getItemAtSlot(30)

PostPosted: Sun Nov 25, 2012 10:54 am
by Garret
Classic range check typo then.
Haven't found source of my information.
In all runuo versions I have, 0x1D (Bank) is the last valid one. (so it was not the source)

Re: another bug : getItemAtSlot(30)

PostPosted: Sun Nov 25, 2012 11:25 am
by Batlin

Re: another bug : getItemAtSlot(30)

PostPosted: Sun Nov 25, 2012 11:33 am
by Garret
Just found it too =)