say a orc
when it dies i want to beable to carve its dead body but not sure what this code does
Code: Select all
if( (ourObj.morey>>24) == 0 )
{
var part1 = 1;
var part2 = ourObj.morey>>16;
var part3 = ourObj.morey>>8;
var part4 = ourObj.morey%256;
ourObj.morey = (part1<<24) + (part2<<16) + (part3<<8) + part4;
if( part2 != 0 || ourObj.carveSection != -1 )
ourObj.Carve( socket );
}i add this after all that
Code: Select all
else if( tileID == 0x0011 )
{
CreateBlankItem( socket, mChar, 4, "raw fish steak", 0x097A, 0x0000, "ITEM", true );
mChar.SysMessage( "just testing." );
}I'm not sure what I'm doing wrong but doesn't seem to want to carve up this dead body of this orc..