Battle_Script_Pro.Form1.ForceTypeSuperCommand C# (CSharp) Method

ForceTypeSuperCommand() private method

private ForceTypeSuperCommand ( byte type ) : byte[]
type byte
return byte[]
        private byte[] ForceTypeSuperCommand(byte type)
        {
            if (type > 0x11 || type == 0x9)
            {
                type = 0;
            }
            byte[] stuff = new byte[12];
            stuff[0] = 0x2E;
            stuff[1] = 0xD2;
            stuff[2] = 0x3F;
            for (int i = 0; i < 3; i++)
            {
                stuff[3 + i] = 2;
            }
            stuff[6] = 0x2E;
            stuff[7] = 0xFB;
            stuff[8] = 0x3F;
            for (int i = 0; i < 2; i++)
            {
                stuff[9 + i] = 2;
            }
            stuff[11] = Convert.ToByte((0x80 + type));
            return stuff;
        }
Form1