public static void MobileQuery( NetState state, PacketReader pvSrc )
{
Mobile from = state.Mobile;
pvSrc.ReadInt32(); // 0xEDEDEDED
int type = pvSrc.ReadByte();
Mobile m = World.FindMobile( pvSrc.ReadInt32() );
if ( m != null )
{
switch ( type )
{
case 0x00: // Unknown, sent by godclient
{
if ( VerifyGC( state ) )
Console.WriteLine( "God Client: {0}: Query 0x{1:X2} on {2} '{3}'", state, type, m.Serial, m.Name );
break;
}
case 0x04: // Stats
{
m.OnStatsQuery( from );
break;
}
case 0x05:
{
m.OnSkillsQuery( from );
break;
}
default:
{
pvSrc.Trace( state );
break;
}
}
}
}