About GM command packet.

11/07/2017 01:25 iGamerFD#1
Hello everyone.

i'm trying to block some GM commands in my filter (Makeitem, Loadmonster, zoe, zoe2 etc.) Dont ask me why xD.


My question is how i can read the packet 0x7010 (GM Command packet), how i can know what command is sending my client to my filter and block/allow it.
11/07/2017 04:33 KingDollar#2
with reading the first byte

here is a simple code
Code:
            byte action = pck.ReadUInt8();
            GameCommands commandsEnum = (GameCommands)action;
            string commandName = commandsEnum.ToString();
Code:
public enum GameCommands : byte
{
    FindUser = 1,
    GoTown = 2,
    ToTown = 3,
    WorldStatus = 4,
    LoadMonster = 6,
    MakeItem = 7,
    MoveToUser = 8,
    WP = 10,
    Zoe = 12,
    Ban = 13,
    Invisible = 14,
    Invincible = 15,
    Recalluser = 17,
    Recallguild = 18,
    Liename = 19,
    Mobkill = 20,
    resetq = 28,
    Movetonpc = 31,
    Makerentitem = 38,
    Spawnunique_loc = 42
}