Packet 0x3122 ? S>C

06/20/2020 01:50 Tazdingo7#1
Hi!

Anyone knows what is this packet 3122 used for ?

Sometimes an account (especially GMs accounts and yes, the account with every character in) gets bugged this cause random dcs every X seconds and the gameserver shows this message: Unhandled Game SR_MSG: 0x3122 [data size: 10].

I think the data size is vinculated with the error. But why ?

Thanks alot!


3122 | 30BF | 1 | Object thay đổi trạng thái (die, start/end bersek) [Only registered and activated users can see links. Click Here To Register...]
06/23/2020 08:25 JellyBitz#2
SERVER_ENTITY_STATE_UPDATE = 0x30BF

HP / MP / BadStatus updates on any object. I never saw 0x3122 actually.

Randoms DC sounds as client crashing handling something wrong.
This is the structure I always handled with no problems:
PHP Code:
public static void EntityStatusUpdate(Packet packet)
{
    
SREntity e InfoManager.GetEntity(packet.ReadUInt());
    
// Check if the entity has been despawned already
    
if (== null)
        return;
    
SRModel entity = (SRModel)e;
    
    
byte unkByte01 packet.ReadByte();
    
byte unkByte02 packet.ReadByte();
    
    
SRTypes.EntityStateUpdate updateType = (SRTypes.EntityStateUpdate)packet.ReadByte();
    switch (
updateType)
    {
        case 
SRTypes.EntityStateUpdate.HP:
            
entity.HP packet.ReadUInt();
            break;
        case 
SRTypes.EntityStateUpdate.MP:
            
entity.MP packet.ReadUInt();
            break;
        case 
SRTypes.EntityStateUpdate.HPMP:
        case 
SRTypes.EntityStateUpdate.EntityHPMP:
            
entity.HP packet.ReadUInt();
            
entity.MP packet.ReadUInt();
            break;
        case 
SRTypes.EntityStateUpdate.BadStatus:
            
entity.BadStatusFlags = (SRModel.BadStatus)packet.ReadUInt();
            break;
    }
    
// End of Packet
    
InfoManager.OnEntityStatusUpdated(updateTypeentity);

source: [Only registered and activated users can see links. Click Here To Register...]
06/27/2020 03:49 MeGaMaX#3
Quote:
Originally Posted by Tazdingo7 View Post
Hi!

Anyone knows what is this packet 3122 used for ?

Sometimes an account (especially GMs accounts and yes, the account with every character in) gets bugged this cause random dcs every X seconds and the gameserver shows this message: Unhandled Game SR_MSG: 0x3122 [data size: 10].

I think the data size is vinculated with the error. But why ?

Thanks alot!


3122 | 30BF | 1 | Object thay đổi trạng thái (die, start/end bersek) [Only registered and activated users can see links. Click Here To Register...]

0x3122 // Green book update.