Пример #1
0
 public GuildPacket(DataPacket inPacket)
     : base(inPacket)
 {
     if (inPacket.ReadByte(24) > 0)
     {
         Strings = StringPacker.Analyze(this, 24);
     }
 }
Пример #2
0
 public MessagePacket(DataPacket inPacket)
     : base(inPacket)
 {
     string[] strings = StringPacker.Analyze(inPacket, 24);
     From    = strings[0];
     To      = strings[1];
     Unknown = strings[2];
     Message = strings[3];
 }
Пример #3
0
 public NPCResponsePacket(DataPacket inPacket)
     : base(inPacket)
 {
     string[] stringdata = StringPacker.Analyze(this, 12);
     if (stringdata.Length > 0)
     {
         InputData = stringdata[0];
     }
     else
     {
         InputData = string.Empty;
     }
 }
Пример #4
0
 public static void Handle(Entities.GameClient client, DataPacket packet)
 {
     Console.WriteLine("TYPE: {0}", packet.ReadByte(4));
     if (packet.ReadByte(4) > 2)
     {
         string[] Strings = StringPacker.Analyze(packet, 12);
         if (Strings != null)
         {
             if (Strings.Length > 0)
             {
                 if (client.CPs >= 5)
                 {
                     client.CPs -= 5;
                     Threads.BroadcastThread.AddBroadcast(Packets.Message.MessageCore.CreateBroadcast(client.Name, Strings[0]));
                 }
             }
         }
     }
 }
Пример #5
0
 public StringPacket(DataPacket inPacket)
     : base(inPacket)
 {
     Strings = StringPacker.Analyze(inPacket, 9);
 }