Ejemplo n.º 1
0
 public void WritePacket(Commons.Networking.AsyncConnection connection, Commons.Networking.ByteBuffer packet)
 {
     packet.WriteUInt(_id);
     packet.WriteInt(_name.Length);
     packet.WriteBytes(Encoding.UTF8.GetBytes(_name));
     packet.WriteInt(_responseid);
 }
Ejemplo n.º 2
0
 public void WritePacket(Commons.Networking.AsyncConnection connection, Commons.Networking.ByteBuffer packet)
 {
     packet.WriteUInt(_id);
     packet.WriteString(_mapname);
     packet.WriteString(_mapid);
     packet.WriteBytes(new byte[] { 0x4A, 0x23, 0xFD, 0x46, 0x00, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 });
     packet.WriteString("\\world\\areas\\" + _mapid + "\\area.dat");
 }
Ejemplo n.º 3
0
        public void WritePacket(Commons.Networking.AsyncConnection connection, Commons.Networking.ByteBuffer packet)
        {
            packet.WriteUInt(_id);
            packet.WriteInt(5); // character count ?

            packet.WriteUInt(0x4e308655);

            WriteCharacterInfo(packet, new Character()
            {
                Name = "Zeus", Level = 99, Class = CharacterClass.SithInquisitor, AreaSpec = MapAreas.PCShip_PhantomX70B
            }, 0);
            WriteCharacterInfo(packet, new Character()
            {
                Name = "LilGreenShit", Level = 99, Class = CharacterClass.JediConsular, AreaSpec = MapAreas.IlumS
            }, 1);
            WriteCharacterInfo(packet, new Character()
            {
                Name = "SuperSayan501", Level = 51, Class = CharacterClass.Trooper, AreaSpec = MapAreas.BelsavisS
            }, 2);
            WriteCharacterInfo(packet, new Character()
            {
                Name = "Tampix", Level = 1, Class = CharacterClass.SithWarrior, AreaSpec = MapAreas.CoruscantR
            }, 3);
            if (Program.LastCreatedChar != null)
            {
                WriteCharacterInfo(packet, Program.LastCreatedChar, 4);
            }
            else
            {
                WriteCharacterInfo(packet, new Character()
                {
                    Name = "Bananaaaaa", Level = 8, Class = CharacterClass.BountyHunter, AreaSpec = MapAreas.PCShip_ThunderclapBT7
                }, 4);
            }

            string xml = "";

            xml += "<status><userdata><entitlement id=\"30\"    uniqueId=\"539043\"    date_created=\"1311840392836\"    date_consumed =\"\"    ";
            xml += "date_started=\"\" description=\"Early Game Access\" gameInfo=\"\" shard_name=\"he1012\" key=\"\" type=\"G\"/>";

            xml += "<entitlement id=\"39\"    uniqueId=\"15130593\"    date_created=\"1323871237000\"    date_consumed =\"\"    ";
            xml += "date_started=\"\" description=\"Head Start\" gameInfo=\"Created by Head Start Package\" shard_name=\"he1012\" key=\"\" type=\"G\"/>";

            xml += "<entitlement id=\"2013\"    uniqueId=\"19669424\"    date_created=\"1324371113907\"    date_consumed =\"\"    ";
            xml += "date_started=\"\" description=\"SWTOR_COLLECTORS_RETAIL\" gameInfo=\"{&quot;transactionalEmail&quot;: {&quot;templatePrefix&quot;:&quot;PurchaseConfirmation.CR&quot;}}\" shard_name=\"he1012\" key=\"\" type=\"G\"/>";

            xml += "<entitlement id=\"7\"    uniqueId=\"19669425\"    date_created=\"1324371113909\"    date_consumed =\"\"    ";
            xml += "date_started=\"\" description=\"Subcriber Shard Access\" gameInfo=\"\" shard_name=\"he1012\" key=\"\" type=\"G\"/>";

            xml += "<entitlement id=\"40\"    uniqueId=\"22765385\"    date_created=\"1324593971139\"    date_consumed =\"\"    ";
            xml += "date_started=\"\" description=\"Security Key Associated\" gameInfo=\"\" shard_name=\"he1012\" key=\"\" type=\"G\"/>";

            xml += "<entitlement id=\"71\"    uniqueId=\"29277571\"    date_created=\"1327348302784\"    date_consumed =\"\"    ";
            xml += "date_started=\"\" description=\"Early Founder\" gameInfo=\"\" shard_name=\"he1012\" key=\"\" type=\"G\"/></userdata></status>";

            packet.WriteString(xml);
            packet.WriteLong(0);
        }
Ejemplo n.º 4
0
        public void ExecutePacket(Commons.Networking.AsyncConnection connection, Commons.Networking.ByteBuffer packet)
        {
            packet.ReadUInt();
            packet.ReadShort();
            string requestdeObjectName = packet.ReadString(); // OmegaServerProxyObjectName
            string signature           = packet.ReadString(); // b7a6bba3:8ab55405:d7b5d3e1:5bc541f9

            packet.ReadString();                              // Client
            uint objectId = packet.ReadUInt();

            SignatureService.ClientSignatureResponse(connection, requestdeObjectName, objectId, signature);
        }
Ejemplo n.º 5
0
 public void WritePacket(Commons.Networking.AsyncConnection connection, Commons.Networking.ByteBuffer packet)
 {
     packet.WriteUInt(_id);
     packet.WriteString("AreaServer-" + _mapname + "-" + _mapid + "-1-:areaserver");
 }
Ejemplo n.º 6
0
 public void WritePacket(Commons.Networking.AsyncConnection connection, Commons.Networking.ByteBuffer packet)
 {
     packet.WriteUInt(_id);
     packet.WriteUInt(1);
 }
Ejemplo n.º 7
0
 void IServerPacket.WritePacket(Commons.Networking.AsyncConnection connection, Commons.Networking.ByteBuffer packet)
 {
     packet.WriteUInt(_id);
 }