There is some difficult in function Send_ResistInfos() in sendstat.inc Like you see, fire resistances -7936
But, there isn't FireProtection on character!
Code: Select all
var resistances := GetObjProtections( character );
var fire := CInt( resistances["FireProtection"] );
if( fire > 0 )
packet.SetInt16( 70, fire );
else
packet.SetInt16( 70, 0x10000 + fire );
endif
var cold := CInt( resistances["WaterProtection"] );
if( cold > 0 )
packet.SetInt16( 72, cold);
else
packet.SetInt16( 72, 0x10000 + cold );
endifI have delete 0x10000 from packet.SetInt16( 70, 0x10000 + fire );
packet.SetInt16( 70, fire );
And all was right, but I can't understand, what cause in 0x10000 ?
Remind, this error only in Fire Protection!
Thanks, with best regards!