Skip to content

AGENT_BARENA_OPERATION

DummkopfOfHachtenduden edited this page Jul 17, 2023 · 7 revisions

0x34D2 - SERVER_AGENT_BARENA_OPERATION

1   byte    barenaOperation
switch(barenaOperation)
{
    case 0x0:
    case 0x1:    
    case 0x2:
        1   byte    BArenaMatchType
        2   ushort  BArenaGameTypeMask
        
        //UIIT_STT_ARENA_RANDOMMATCH
        //UIIT_STT_ARENA_PARTY
        //UIIT_STT_ARENA_GUILD
        //UIIT_STT_ARENA_JOB
        
        //UIIT_MGS_ARENA_JOIN_GUIDANCE_DISPLAY        
        //UIIT_STT_ARENA_SCORE
        
        //UIIT_MGS_ARENA_JOIN_GUIDANCE_DISPLAY
        //UIIT_STT_ARENA_FLAG
        
        //UIIT_MGS_ARENA_JOIN_GUIDANCE_DISPLAY_NOTIFY       
        //UIIT_MGS_ARENA_JOIN_GUIDANCE
    break;

    case 0x3:
        1   byte    BArenaMatchType
        2   ushort  BArenaGameTypeMask
        //UIIT_MGS_ARENA_JOIN_WINDOW_COMPLETION        
    break;
    
    case 0x4:
        1   byte    unkByte0
        1   byte    unkByte1
        
        //ASSERT - m_pRankWnd != null
        //ASSERT - m_pScoreWnd != null
    break;
    
    case 0x5:
        1   byte    BArenaMatchType
        //UIIT_MGS_ARENA_END
    break;
    
    case 0x6:
    case 0x7:
    case 0x10:
        1   byte    unkByte0        
    break;
    
    case 0x8:
        4   uint    MaxTime //in ms
        //UIIT_MGS_ARENA_START
    break;
    
    case 0x9:
        1   byte    BArenaMatchType
        1   byte    BArenaGameResult
        1   byte    ArenaCoinCount
        4   uint    SkillExp
    break;
    
    case 0xB:    
    case 0xC:
        1   byte    unkByte0    //assuming BArenaMatchType
        //UIIT_MGS_ARENA_JOIN_ING
    break;    
    
    case 0xD:
    case 0xE:
        1   byte    BArenaMatchType
        2   ushort  BArenaGameTypeMask
        
        //UIIT_MGS_ARENA_START_ALARM
        //UIIT_MSG_ARENA_GAME_ENTERD_ERORR
    break;
    
    case 0xF:
        1   byte    BArenaMatchType
        2   ushort  BArenaGameTypeMask
        
        //UIIT_MGS_ARENA_JOIN_ING2
    break;
    
    case 0xFF:
        1   byte    barenaUpdate
        switch(barenaUpdate)
        {
            case 0:
                1   byte    BArenaRequestType
                1   byte    BArenaGameType
                
                //UIIT_MGS_ARENA_JOIN_WINDOW_COMPLETION_DISPLAY
                //UIIT_MGS_ARENA_CANCEL_DISPLAY
            break;
            
            case 2:
                //UIIT_MGS_ARENA_ALREADY_JOIN_ERR
            break;
            
            case 3:
                //UIIT_MGS_ARENA_UNKNOWN_USER
            break;
            
            case 4:
                //UIIT_MGS_ARENA_CANT_PARTICIPATE_RIGHT_NOW
            break;
            
            case 5:
                //UIIT_MSG_FLAGWAR_GAME_JOIN_LEVEL_ERORR
            break;
            
            case 6:
                //UIIT_MSG_FLAGWAR_GAME_CANCEL
            break;
            
            case 8:
                //UIIT_MGS_ARENA_ENTRANCE_FAIL
            break;
            
            case 9:
                //UIIT_MSG_ARENA_GAME_ENTERD_ERORR
            break;
            
            case 0xB:
                //UIIT_MGS_ARENA_CANT_PARTICIPATE_ENTRANCE_CONDITION_PARTY
            break;
            
            case 0xC:
                //UIIT_MGS_ARENA_CANT_PARTICIPATE_ENTRANCE_CONDITION_GUILD
            break;
            
            case 0xD:
                //UIIT_MGS_ARENA_CANT_PARTICIPATE_ENTRANCE_CONDITION
            break;
            
            //---------------------------------------------
            
            case 0x40:
                4   uint    gainedPoints
                //UIIT_MGS_ARENA_SCORE_ACQUISITION        
            break,
            
            case 0x41:
                4   uint    TotalRedPoints
                4   uint    TotalBluePoints
                1   byte    rankCount
                    1   byte    rank.BArenaTeam
                    2   ushort  rank.Name.Length
                    *   string  rank.Name
                    4   uint    rank.Points
            break;
            
            //---------------------------------------------
            
            case 0x80:
                2   ushort  Name.Length
                *   string  Name
                //UIIT_MSG_FLAGWAR_PICKUP_FLAG_OURTEAM        
            break;
            
            case 0x81:
                //UIIT_MSG_FLAGWAR_PICKUP_FLAG_OTHERTEAM
            break;
            
            case 0x82:
                //5 seconds pickup timer
            break;
            
            case 0x83:
                //UIIT_MSG_FLAGWAR_FLAG_DROP
            break;
            
            case 0x84:
                1   byte    BArenaTeam
                2   ushort  Name.Length
                *   string  Name
                //UIIT_MGS_ARENA_FLAGWAR_RED
                //UIIT_MGS_ARENA_FLAGWAR_BLUE
                //UIIT_MGS_ARENA_FLAGWAR_INSTALLED_DISPLAY
            break;
            
            case 0x85:
                //UIIT_MSG_FLAGWAR_PLAYER_FLAG_PICKUP
            break;
            
            case 0x86:
                //UIIT_MGS_ARENA_FLAGWAR_PLAYER_PUTDOWN_FLAG
            break,
            
            case 0x87:
                //UIIT_MGS_ARENA_FLAGWAR_ERR_CANT_PICKING_FLAG_IN_SAFEZONE
            break;
            
            case 0x88:
                4   uint    unkUInt0
                4   uint    unkUInt1        
            break;
            
            case 0x89:
                //UIIT_MGS_ARENA_ERR_FLAG_PICKUP
            break;
            
            //---------------------------------------------
                
            case 0xF0:
                4   uint    MaxTime //in ms
                4   uint    ElaspedTime //in ms
                1   byte    unkByte0    //00
                1   byte    unkByte1    //01
            break;
            
            case 0xF1:
                //UIIT_MGS_ARENA_END_GUIDANCE
            break;
            
            case 0xF2:
                //UIIT_MSG_ARENA_REWARD_MESSAGE_ERR
            break;
        }
    break;
}

See also

Clone this wiki locally