Exemplo n.º 1
0
 public GuildPacket(DataPacket inPacket)
     : base(inPacket)
 {
     if (inPacket.ReadByte(24) > 0)
     {
         Strings = StringPacker.Analyze(this, 24);
     }
 }
Exemplo n.º 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];
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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]));
                 }
             }
         }
     }
 }
Exemplo n.º 5
0
 public MessagePacket(StringPacker Message)
     : base((ushort)(24 + Message.Size), PacketType.MessagePacket)
 {
     Message.AppendAndFinish(this, 24);
     Time = 0;
 }
Exemplo n.º 6
0
 public SpawnNPCPacket(StringPacker namestring)
     : base((ushort)(24 + namestring.Size), PacketType.SpawnNPCPacket)
 {
     namestring.AppendAndFinish(this, 22);
 }
Exemplo n.º 7
0
 public SpawnNPCPacket(StringPacker namestring)
     : base((ushort)(24 + namestring.Size), PacketType.SpawnNPCPacket)
 {
     namestring.AppendAndFinish(this, 22);
 }
Exemplo n.º 8
0
 public SpawnPacket(StringPacker strings)
     : base((ushort)(218 + strings.Size), PacketType.SpawnPacket)
 {
     strings.AppendAndFinish(this, 218);
 }
 public CharacterInfoPacket(StringPacker Names)
     : base((ushort)(112 + Names.Size), PacketType.CharacterInfoPacket)
 {
     Names.AppendAndFinish(this, 110);
 }
Exemplo n.º 10
0
 public NPCResponsePacket(StringPacker strings)
     : base((ushort)(12 + strings.Size), PacketType.NPCResponsePacket)
 {
     strings.AppendAndFinish(this, 12);
 }
Exemplo n.º 11
0
 public StringPacket(DataPacket inPacket)
     : base(inPacket)
 {
     Strings = StringPacker.Analyze(inPacket, 9);
 }
Exemplo n.º 12
0
 public StringPacket(StringPacker strings)
     : base((ushort)(9 + strings.Size), PacketType.StringPacket)
 {
     strings.AppendAndFinish(this, 9);
 }
Exemplo n.º 13
0
 public NPCResponsePacket(StringPacker strings)
     : base((ushort)(12 + strings.Size), PacketType.NPCResponsePacket)
 {
     strings.AppendAndFinish(this, 12);
 }
Exemplo n.º 14
0
 public SpawnPacket(StringPacker strings)
     : base((ushort)(218 + strings.Size), PacketType.SpawnPacket)
 {
     strings.AppendAndFinish(this, 218);
 }
Exemplo n.º 15
0
 public GuildPacket(StringPacker strings)
     : base((ushort)(28 + strings.Size), PacketType.GuildPacket)
 {
     strings.AppendAndFinish(this, 24);
 }
Exemplo n.º 16
0
 public MessagePacket(StringPacker Message)
     : base((ushort)(24 + Message.Size), PacketType.MessagePacket)
 {
     Message.AppendAndFinish(this, 24);
     Time = 0;
 }
Exemplo n.º 17
0
 public CharacterInfoPacket(StringPacker Names)
     : base((ushort)(112 + Names.Size), PacketType.CharacterInfoPacket)
 {
     Names.AppendAndFinish(this, 110);
 }
Exemplo n.º 18
0
 public StringPacket(StringPacker strings)
     : base((ushort)(9 + strings.Size), PacketType.StringPacket)
 {
     strings.AppendAndFinish(this, 9);
 }
Exemplo n.º 19
0
 public GuildPacket(StringPacker strings)
     : base((ushort)(28 + strings.Size), PacketType.GuildPacket)
 {
     strings.AppendAndFinish(this, 24);
 }