Noticias:

Debes de estar registrado para poder ver el contenido indicado. Registrate o Conectate

Menú Principal

Event Match

Iniciado por Swarlog, Ago 14, 2022, 01:09 AM

Tema anterior - Siguiente tema

Swarlog

ExEventMatchManage: chdccScScd[ccdSdd]

    writeC(0xFE);
    writeH(0x30);
    writeD(123); // Race id whatever it means
    writeC(0x01); // team 1 id
    writeC(0x02); // team 2 id
    writeS("Red"); // Team 1 name
    writeC(0x01); // team 1 party status 0: not looking, 1 has party
    writeS("Blue"); // team 2 name
    writeC(0x01); // team 2 party status 0: not looking, 1 has party
    writeD(9); // players's size
    for (int i = 0; i < 9; i++)
    {
        writeC(Rnd.get(1, 2)); // player team id
        writeC(0x01); // party representive (leader)
        writeD(activeChar.getObjectId()); // player object id
        writeS(activeChar.getName()); // player name
        writeD(activeChar.getClassId().getId()); // player class id
        writeD(activeChar.getLevel()); // player level
    }

ExEventMatchMessage: chcs

    writeC(0xFE);
    writeH(0x0F);
    writeC(0x00); // 0 - custom text, 1 - Start, 2 - Finish, 3 - Game Over, 4 - 1, 5 - 2, 6 - 3, 7 - 4, 8 - 5
    writeS("custom text here only if previous C is 0");

ExEventMatchSpelledInfo: chdd[dhd]

     
    L2Effect[] effects = activeChar.getAllEffects();
     
    writeC(0xFE);
    writeH(0x04);
    writeD(activeChar.getObjectId());
    writeD(effects.length);
    for(L2Effect e : effects)
    {
        writeD(e.getSkill().getId()); // skill id
        writeH(e.getSkill().getLevel()); // skill level
        writeD(e.getAbnormalTime()); // duration
    }