Jotox1 you are not right, see code in Arc/Aspire since some object field values are hext/bit/negative sometimes, or just flagged, so in this case this might work but my code is correct for every other uint value or field flag.
Jotox1 you are not right, see code in Arc/Aspire since some object field values are hext/bit/negative sometimes, or just flagged, so in this case this might work but my code is correct for every other uint value or field flag.
![]()
Find about scripting, programming and music! My blog: https://worldofsmth.wordpress.com!
In Arcemu Object.cpp: [Object::ModUnsigned32Value(uint32 index, int32 mod)]
Code:if( (int32)m_uint32Values[index] < 0 ) m_uint32Values[index] = 0;
That code should not be like that, there are fields and values in wow that can be negative.
![]()
Find about scripting, programming and music! My blog: https://worldofsmth.wordpress.com!
(My emphasis)
Unsigned means you don't use the MSB as a plus/minus sign, but rather use the whole length of the int to store a number.
EDIT: Also, prepending a variable name with p denotes a Player pointer.
Last edited by TheSpidey; 07-17-2009 at 09:31 AM.