Esempio n. 1
0
 public void MaievSendModule(ref WS_PlayerData.CharacterObject objCharacter)
 {
     if (!objCharacter.WardenData.Ready)
     {
         throw new ApplicationException("Maiev.mod not ready!");
     }
     WorldServiceLocator._WorldServer.Log.WriteLine(LogType.DEBUG, "[{0}:{1}] SMSG_WARDEN_DATA [{2}]", objCharacter.client.IP, objCharacter.client.Port, WorldServiceLocator._WS_Warden.Maiev.ModuleName);
     Packets.PacketClass r = new Packets.PacketClass(Opcodes.SMSG_WARDEN_DATA);
     r.AddInt8(0);
     r.AddByteArray(WorldServiceLocator._WS_Warden.Maiev.WardenModule);
     r.AddByteArray(WorldServiceLocator._WS_Warden.Maiev.ModuleKey);
     r.AddUInt32(checked ((uint)WorldServiceLocator._WS_Warden.Maiev.ModuleSize));
     WorldServiceLocator._WS_Warden.SendWardenPacket(ref objCharacter, ref r);
 }
Esempio n. 2
0
 public void MaievSendSeed(ref WS_PlayerData.CharacterObject objCharacter)
 {
     Packets.PacketClass r = new Packets.PacketClass(Opcodes.SMSG_WARDEN_DATA);
     r.AddInt8(5);
     r.AddByteArray(objCharacter.WardenData.Seed);
     WorldServiceLocator._WS_Warden.SendWardenPacket(ref objCharacter, ref r);
 }
Esempio n. 3
0
 public void SendTutorialFlags(ref WS_Network.ClientClass client, ref WS_PlayerData.CharacterObject Character)
 {
     Packets.PacketClass SMSG_TUTORIAL_FLAGS = new Packets.PacketClass(Opcodes.SMSG_TUTORIAL_FLAGS);
     try
     {
         SMSG_TUTORIAL_FLAGS.AddByteArray(Character.TutorialFlags);
         client.Send(ref SMSG_TUTORIAL_FLAGS);
     }
     finally
     {
         SMSG_TUTORIAL_FLAGS.Dispose();
     }
 }
Esempio n. 4
0
            public Packets.PacketClass GetPacket()
            {
                Packets.PacketClass packet = new Packets.PacketClass(Opcodes.SMSG_WARDEN_DATA);
                packet.AddInt8(2);
                foreach (string tmpStr in UsedStrings)
                {
                    packet.AddString2(tmpStr);
                }
                packet.AddInt8(0);
                byte i = 0;

                foreach (CheatCheck Check in Checks)
                {
                    byte   xorCheck  = (byte)(WorldServiceLocator._WS_Warden.Maiev.CheckIDs[(uint)Check.Type] ^ Character.WardenData.xorByte);
                    byte[] checkData = Check.ToData(xorCheck, ref i);
                    packet.AddByteArray(checkData);
                }
                packet.AddInt8(Character.WardenData.xorByte);
                return(packet);
            }
Esempio n. 5
0
 public void MaievSendUnk(ref WS_PlayerData.CharacterObject objCharacter)
 {
     Packets.PacketClass unk = new Packets.PacketClass(Opcodes.SMSG_WARDEN_DATA);
     try
     {
         unk.AddInt8(3);
         unk.AddByteArray(new byte[56]
         {
             20,
             0,
             96,
             208,
             254,
             44,
             1,
             0,
             2,
             0,
             32,
             26,
             54,
             0,
             192,
             227,
             53,
             0,
             80,
             241,
             53,
             0,
             192,
             245,
             53,
             0,
             3,
             8,
             0,
             119,
             108,
             147,
             169,
             4,
             0,
             0,
             96,
             168,
             64,
             0,
             1,
             3,
             8,
             0,
             54,
             133,
             234,
             240,
             1,
             1,
             0,
             144,
             244,
             69,
             0,
             1
         });
         WorldServiceLocator._WS_Warden.SendWardenPacket(ref objCharacter, ref unk);
     }
     finally
     {
         unk.Dispose();
     }
 }