public override void OnRead(RiftClient From) { try { XmlSerializer xmls = new XmlSerializer(typeof(ClientAuthCertificate)); ClientAuthCertificate Cert = xmls.Deserialize(new MemoryStream(Encoding.UTF8.GetBytes(Certificate))) as ClientAuthCertificate; if (CharacterServer.Config.UseCertificate) From.Acct = CharacterServer.AcctMgr.GetAccount(Cert.Sessionkey); else From.Acct = CharacterServer.AcctMgr.GetAccount(Cert.Username, Cert.Hash); } catch { From.Disconnect(); } if (From.Acct == null) { Log.Error("Authentication", "Failed !"); From.Disconnect(); } else { HandshakeAuthenticationResponse Rp = new HandshakeAuthenticationResponse(); Rp.SessionTicket = (long)BitConverter.ToUInt64(Guid.NewGuid().ToByteArray(), 0); From.Acct.SessionTicket = Rp.SessionTicket; From.Acct.Dirty = true; AccountMgr.AccountDB.SaveObject(From.Acct); From.SendSerialized(Rp); } }
public override void OnRead(RiftClient From) { Log.Dump("ClientKey", ClientKey, 0, ClientKey.Length); From.InitCrypto(ClientKey); HandshakeCompression Cp = new HandshakeCompression(); Cp.Enabled = true; From.SendSerialized(Cp); From.EnableSendCompress(); #region 1.1 Client HandshakeServerKey ServerKey = new HandshakeServerKey(); ServerKey.Nid = 420; ServerKey.ServerKey = From.LocalPublicKey; From.SendSerialized(ServerKey); #endregion #region 1.2 Client //HandshakeServerKey ServerKey = new HandshakeServerKey(); //ServerKey.Nid = 2980549511; //ServerKey.Unk = 3061945505; //ServerKey.ServerKey = From.LocalPublicKey; //From.SendSerialized(ServerKey); #endregion }
public override void OnRead(RiftClient From) { Log.Success("CharacterListRequest", "Characters For : " + From.GetIp + " RPC : " + From.Rm.RpcInfo.Description()); if (From.Acct == null || From.Rm == null) return; LobbyCharacterListResponse ListRp = new LobbyCharacterListResponse(); Character[] Chars = From.Rm.GetObject<CharactersMgr>().GetCharacters(From.Acct.Id); foreach (Character Char in Chars) ListRp.Characters.Add(Char); From.SendSerialized(ListRp); Log.Success("Characters","Count = " + ListRp.Characters.Count); if (From.JustCreatedCharacter >= 0) { long CharacterId = From.JustCreatedCharacter; From.JustCreatedCharacter = -1; LobbyCharacterSelectRequest Request = new LobbyCharacterSelectRequest(); Request.GUID = CharacterId; Request.OnRead(From); } }
public override void OnRead(RiftClient From) { Log.Success("WorldList", "Request : In Progress"); Realm[] Realms = CharacterServer.AcctMgr.GetRealms(); LobbyWorldListResponse Rp = new LobbyWorldListResponse(); foreach(Realm Rm in Realms) { LobbyWorldEntry Entry = new LobbyWorldEntry(); Entry.RealmID = Rm.RiftId; Entry.PVP = Rm.PVP == 1; Entry.Recommended = Rm.Recommended == 1; Entry.Population = 0; Entry.RP = Rm.RP == 1; Entry.Version = Rm.ClientVersion; Entry.CharactersCount = Rm.GetObject<CharactersMgr>().GetCharactersCount(From.Acct.Id); Entry.Language = Rm.Language; if (Rm.Online > 0) Entry.AddField(16, EPacketFieldType.True, (bool)true); Rp.Realms.Add(Entry); } Log.Success("WorldList", "Count = " + Rp.Realms.Count); From.SendSerialized(Rp); }
public override void OnRead(RiftClient From) { Log.Success("SelectRequest", "Enter on World : " + From.GetIp + ",GUID=" + GUID); if (From.Acct == null || From.Rm == null) { Log.Error("LobbyCharacterSelectRequest", "Acct or Rm == null"); return; } Character Char = From.Rm.GetObject<CharactersMgr>().GetCharacter(GUID); if (Char == null || Char.AccountId != From.Acct.Id) { Log.Error("SelectRequest", "Invalid CharacterId = " + GUID); From.Disconnect(); return; } MapServerInfo Info = From.Rm.GetObject<WorldMgr>().GetMapInfo(); if (Info == null) { Log.Error("SelectRequest", "No map loaded ! Run MapServer"); return; } Log.Success("SelectRequest", "Entering on Map : " + Info.MapAdress); Info.GetObject<MapMgr>().RegisterConnecting(From.Acct.Username,Char.CharacterId); LobbyCharacterSelectResponse Rp = new LobbyCharacterSelectResponse(); Rp.Ips.Add(Info.MapAdress); From.SendSerialized(Rp); }
public override void OnRead(RiftClient From) { if (From.Character != null) { Log.Success("WorldDisconnect", "Character disconnectig : " + From.Character.CharacterName); From.Disconnect(); } }
public override void OnRead(RiftClient From) { if(From.Acct == null || From.Rm == null) return; string Name = From.Rm.GetObject<CharactersMgr>().GetRandomName(); ISerializablePacket Packet = new ISerializablePacket(); Packet.Opcode = (int)Opcodes.LobbyCharacterRandomNameResponse; Packet.AddField(1, EPacketFieldType.ByteArray, Name); From.SendSerialized(Packet); }
public override void OnRead(RiftClient From) { Log.Success("LobbyCharacterDeleteRequest", "Deleting Character : " + GUID); if (From.Acct == null || From.Rm == null) return; CharactersMgr Mgr = From.Rm.GetObject<CharactersMgr>(); bool Result = Mgr.DeleteCharacter(GUID, From.Acct.Id); // TODO : Check in game player LobbyCharacterDeleteResponse DeleteResult = new LobbyCharacterDeleteResponse(); DeleteResult.Result = Convert.ToInt64(!Result); // Result, 15 Error must wait logout, 0 OK From.SendSerialized(DeleteResult); }
public override void OnRead(RiftClient From) { Realm Rm = CharacterServer.AcctMgr.GetRealm((int)RealmId); if (Rm != null) From.Rm = Rm; if (From.Rm == null) { Log.Error("WorldSelectRequest", "Realm null : " + From.GetIp); From.Disconnect(); return; } LobbyWorldSelectResponse Rp = new LobbyWorldSelectResponse(); From.SendSerialized(Rp); }
public override void OnRead(RiftClient From) { Log.Success("CreationCache", "Requesting Creation cache request : " + From.Rm.RpcInfo.Description()); if (From.Acct == null || From.Rm == null) return; CacheTemplate[] Tmps = From.Rm.GetObject<WorldMgr>().GetTemplates(); foreach (CacheTemplate Tmp in Tmps) From.SendSerialized(WorldMgr.BuildCache(Tmp.CacheID, Tmp.CacheType, Tmp)); CacheData[] Dts = From.Rm.GetObject<WorldMgr>().GetDatas(); foreach (CacheData Tmp in Dts) From.SendSerialized(WorldMgr.BuildCache(Tmp.CacheID, Tmp.CacheType, Tmp)); ISerializablePacket Packet = new ISerializablePacket(); Packet.Opcode = (long)Opcodes.LobbyCharacterCreationCacheResponse; From.SendSerialized(Packet); }
public override void OnRead(RiftClient From) { if (From.Acct == null || From.Rm == null) return; CharactersMgr Mgr = From.Rm.GetObject<CharactersMgr>(); if (Mgr.GetCharactersCount(From.Acct.Id) >= 6) { From.Disconnect(); return; } ISerializablePacket Response = new ISerializablePacket(); Response.Opcode = (int)Opcodes.LobbyCharacterCreateResponse; if (Mgr.CharacterExist(Name)) Response.AddField(0, EPacketFieldType.Unsigned7BitEncoded, (long)CharacterCreateResponses.INVALID_NAME); else { Character Char = new Character(); Char.AccountId = From.Acct.Id; Char.CharacterName = Name; Char.Email = From.Acct.Email; Char.Info = new CharacterInfo(); Char.Info.Class = Class; Char.Info.CustomPacket = this.CharacterCustom; Char.Info.Level = Mgr.StartingLevel; Char.Info.Race = Race; Char.Info.Sex = Sex; long CharacterID = Mgr.AddCharacter(Char); Response.AddField(0, EPacketFieldType.Unsigned7BitEncoded, (long)CharacterCreateResponses.CREATE_OK); From.JustCreatedCharacter = CharacterID; } From.SendSerialized(Response); }
public virtual void OnRead(RiftClient From) { Log.Error("OnRead", "Unknown ISerialized packet : " + GetType().Name); }
public override void OnRead(RiftClient From) { }
public override void OnRead(RiftClient From) { Log.Info("WorldCanConnect", "Connecting..."); ISerializablePacket Packet = new ISerializablePacket(); Packet.Opcode = 0x1E9A; Packet.AddField(1, EPacketFieldType.True, false); From.SendSerialized(Packet); }
public override void OnRead(RiftClient From) { Log.Success("HanshakeVersion", "Version = " + Version); From.ClientVersion = Version; }
public override void OnRead(RiftClient From) { PingPong Pong = new PingPong(); Pong.Timestamp = (UInt32)Timestamp; From.SendSerialized(Pong); }
public override void OnRead(RiftClient From) { Log.Success("HanshakeCompression", "Client Compression : " + Enabled); From.EnableReceiveCompress(); }
public override void OnRead(RiftClient From) { Log.Success("Authentification", "Email = " + Email + " SessionTicket = " + SessionTicket); long Char = MapServer.Maps.GetConnecting(Email); if (Char == 0) { Log.Error("Authentification", "Not authentified email : " + Email); From.Disconnect(); return; } From.Acct = MapServer.Accounts.GetAccountByUsername(Email); if (From.Acct == null) { Log.Error("Authentification", "Not valid account :" + Email); From.Disconnect(); return; } From.Character = MapServer.Characters.GetCharacter(Char); if (From.Acct == null) { Log.Error("Authentification", "Not valid character :" + Char); From.Disconnect(); return; } WorldAuthenticationResponse Rp = new WorldAuthenticationResponse(); Rp.AddField(0, EPacketFieldType.True, (bool)true); From.SendSerialized(Rp); CacheTemplate[] Tmps = MapServer.World.GetTemplates(); foreach (CacheTemplate Tmp in Tmps) From.SendSerialized(WorldMgr.BuildCache(Tmp.CacheID, Tmp.CacheType, Tmp)); CacheData[] Dts = MapServer.World.GetDatas(); foreach (CacheData Tmp in Dts) From.SendSerialized(WorldMgr.BuildCache(Tmp.CacheID, Tmp.CacheType, Tmp)); WorldCacheUpdated Updated = new WorldCacheUpdated(); Updated.GUID = Char; From.SendSerialized(Updated); ///////////////////////////////////////////////////////////////////// // Send Inventory ///////////////////////////////////////////////////////////////////// WorldEntityUpdate Update = new WorldEntityUpdate(); Update.AddField(6, EPacketFieldType.Raw8Bytes, (long)Char); From.SendSerialized(Update); ////////////////////////////////////////////////////////////////////// ISerializablePacket Packet1 = new ISerializablePacket(); Packet1.Opcode = 0x03F6; Packet1.AddField(0, EPacketFieldType.Raw4Bytes, new byte[4] { 0x20, 0xB1, 0x59, 0x41 }); Packet1.AddField(1, EPacketFieldType.ByteArray, new byte[] { 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 }); byte[] UnkGuid = new byte[8] { 0xCB, 0x34, 0x3D, 0x94, 0x23, 0x04, 0xCC, 0x01 }; Packet1.AddField(2, EPacketFieldType.Raw8Bytes, UnkGuid); From.SendSerialized(Packet1); ISerializablePacket Packet2 = new ISerializablePacket(); Packet2.Opcode = 0x02E9; Packet2.AddField(0, EPacketFieldType.List, new List<long>() { 3605869292 }); From.SendSerialized(Packet2); ISerializablePacket Packet3 = new ISerializablePacket(); Packet3.Opcode = 0x2D7F; From.SendSerialized(Packet3); /********************************************/ WorldZoneInfo ZoneInfo = new WorldZoneInfo(); ZoneInfo.ZoneFileName = "Mathosia1"; ZoneInfo.Description = MapServer.World.GetText(290412351); ZoneInfo.DisplayName = MapServer.World.GetText(1647389394); From.SendSerialized(ZoneInfo); WorldStartingPosition StartPosition = new WorldStartingPosition(); StartPosition.MapName = "guardian_map"; From.SendSerialized(StartPosition); WorldPositionExtra ExtraPosition = new WorldPositionExtra(); ExtraPosition.MapName = "guardian_map"; ISerializablePacket Extra = new ISerializablePacket(); Extra.Opcode = (long)Opcodes.WorldStartingPositionExtra; Extra.AddField(0, EPacketFieldType.Packet, ExtraPosition); From.SendSerialized(Extra); }
public override void OnRead(RiftClient From) { Log.Info("WorldMapLoaded", "Map loaded for : " + From.Character.CharacterName); long CharacterId = From.Character.CharacterId; { WorldTemplateUpdate Update = new WorldTemplateUpdate(); Update.GUID = CharacterId; Update.Field1 = new byte[] { 0xEB,0x04,0x4F,0x1F,0x02,0x5F,0x17,0x07,0x90,0x01,0x07,0xAE,0x05,0x9E,0x02,0x00,0x9F, 0x12,0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xDF,0x12,0x24, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xD0, 0x05,0xD8,0x05,0x07,0xC1,0x1E,0x57,0xF5,0x05,0x07,0x07 }; From.SendSerialized(Update); } { ISerializablePacket Packet = new ISerializablePacket(); Packet.Opcode = 0x1973; From.SendSerialized(Packet); } { ISerializablePacket Packet = new ISerializablePacket(); Packet.Opcode = 0x1E7F; Packet.AddField(0, EPacketFieldType.False, false); Packet.AddField(1, EPacketFieldType.False, false); Packet.AddField(2, EPacketFieldType.False, false); Packet.AddField(3, EPacketFieldType.List, new List<ISerializablePacket>()); Packet.AddField(4, EPacketFieldType.Unsigned7BitEncoded, (long)3); Packet.AddField(5, EPacketFieldType.Unsigned7BitEncoded, (long)30); Packet.AddField(6, EPacketFieldType.False, false); Packet.AddField(7, EPacketFieldType.List, new List<long>()); Packet.AddField(8, EPacketFieldType.List, new List<long>()); From.SendSerialized(Packet); } { WorldChannelJoinned Channel = new WorldChannelJoinned(); Channel.ChannelName = "Niveau 1-9"; Channel.CharacterName = From.Character.CharacterName; Channel.Field2 = 5; From.SendSerialized(Channel); } { WorldChannelJoinned Channel = new WorldChannelJoinned(); Channel.ChannelName = "Mathosia"; Channel.CharacterName = From.Character.CharacterName; Channel.Field2 = 2; From.SendSerialized(Channel); } { WorldTemplateUpdate Update = new WorldTemplateUpdate(); Update.GUID = CharacterId; Update.Field1 = new byte[] { 0xEB,0x04,0x4F,0x1F,0x02,0x5F,0x17,0x07,0xE7,0x02,0xBB,0x99,0x01,0x4E,0xA0,0x1F,0x1A,0x02,0x07,0x56,0xA0,0x1F,0x1A,0x02,0x07,0x58,0xA0,0x1F,0x1A,0x02,0x07,0x5E,0xA0,0x1F,0x19,0x07,0x60,0xA0,0x1F,0x19,0x07,0x66,0xA0,0x1F,0x19,0x07,0x70,0xA0,0x1F,0x1A,0x02,0x07,0xEA,0xBA,0xC9,0x65,0xA0,0x1F,0x19,0x07,0xAC,0xBA,0xEE,0x78,0xA0,0x1F,0x1A,0x02,0x07,0xA0,0x8C,0x88,0x9C,0x01,0xA0,0x1F,0x19,0x07,0x90,0xD6,0xBA,0x88,0x02,0xA0,0x1F,0x1A,0x02,0x07,0xD8,0xD2,0x84,0xAA,0x02,0xA0,0x1F,0x1A,0x02,0x07,0x9E,0x83,0x90,0x87,0x03,0xA0,0x1F,0x1A,0x02,0x07,0x8C,0xE7,0xF5,0x8E,0x03,0xA0,0x1F,0x1A,0x02,0x07,0x86,0xDE,0x9D,0xE9,0x03,0xA0,0x1F,0x19,0x07,0xF6,0xD4,0xCE,0xF4,0x03,0xA0,0x1F,0x1A,0x02,0x07,0xE2,0xA8,0xF2,0x8A,0x04,0xA0,0x1F,0x1A,0x02,0x07,0xD2,0x92,0xCB,0xB3,0x05,0xA0,0x1F,0x19,0x07,0xE0,0xFD,0xF3,0x92,0x06,0xA0,0x1F,0x1A,0x02,0x07,0xE6,0xB7,0xF4,0x94,0x06,0xA0,0x1F,0x1A,0x02,0x07,0xAE,0xBA,0xFD,0xC6,0x06,0xA0,0x1F,0x1A,0x02,0x07,0xB6,0xA5,0xF2,0x8C,0x07,0xA0,0x1F,0x19,0x07,0xC2,0xE4,0xA7,0x9A,0x07,0xA0,0x1F,0x1A,0x02,0x07,0xDE,0x9A,0xE4,0xCA,0x07,0xA0,0x1F,0x19,0x07,0xEC,0xF9,0xF1,0xDF,0x07,0xA0,0x1F,0x1A,0x02,0x07,0xA4,0xDE,0xC0,0xB1,0x08,0xA0,0x1F,0x1A,0x02,0x07,0xE8,0xCE,0xFA,0x81,0x09,0xA0,0x1F,0x1A,0x02,0x07,0x94,0xB1,0xA8,0xBB,0x09,0xA0,0x1F,0x1A,0x02,0x07,0x8A,0x95,0x8E,0xC8,0x09,0xA0,0x1F,0x1A,0x02,0x07,0xD8,0xF7,0xF3,0xFD,0x09,0xA0,0x1F,0x1A,0x02,0x07,0xFA,0xF1,0xE0,0xBA,0x0A,0xA0,0x1F,0x1A,0x02,0x07,0xCE,0xDA,0xE7,0xEE,0x0B,0xA0,0x1F,0x19,0x07,0xF6,0xA2,0x94,0xC1,0x0C,0xA0,0x1F,0x1A,0x02,0x07,0xE2,0xD0,0xE6,0xD0,0x0C,0xA0,0x1F,0x1A,0x02,0x07,0x88,0xFD,0xC2,0xD6,0x0D,0xA0,0x1F,0x1A,0x02,0x07,0x8C,0xA8,0xAA,0xF8,0x0D,0xA0,0x1F,0x19,0x07,0x88,0xBF,0x82,0xFE,0x0E,0xA0,0x1F,0x1A,0x02,0x07,0xBA,0xC4,0xB6,0x90,0x0F,0xA0,0x1F,0x1A,0x02,0x07,0xE7,0x03,0xBB,0x05,0x0A,0xAF,0x02,0x01,0x07,0x90,0x01,0x07,0x94,0x05,0xE7,0x05,0xBB,0x21,0x02,0xBF,0x1B,0x24,0xDF,0x92,0xC3,0x45,0x2C,0xC8,0x23,0xCF,0x7D,0x3C,0x82,0x9B,0xBB,0x22,0x97,0x04,0x90,0x1C,0x04,0x9B,0xEC,0x3E,0x73,0x07,0x07,0x04,0xBF,0x1B,0x24,0xEB,0x36,0xDE,0x44,0x2C,0x33,0x45,0x7A,0x77,0x32,0x15,0x3C,0x82,0x9B,0xBB,0x22,0x97,0x04,0x90,0x1C,0x04,0x5F,0x2D,0x02,0x4F,0x07,0x07,0x0A,0xBF,0x1B,0x24,0x87,0xD4,0x3F,0x5B,0x3A,0x02,0x97,0x04,0x90,0x1C,0x04,0x1E,0x3B,0xD5,0x2D,0x07,0x07,0x0E,0xBF,0x1B,0x24,0x62,0x00,0xDB,0x11,0x3C,0x6F,0x69,0x28,0x59,0x97,0x04,0x90,0x1C,0x04,0x7F,0xC2,0xC0,0x7C,0x07,0x07,0x10,0xBF,0x1B,0x24,0x9A,0x41,0xDC,0x01,0x3C,0x6F,0x69,0x28,0x59,0x97,0x04,0x90,0x1C,0x04,0x5E,0x8B,0x6F,0x26,0x07,0x07,0x12,0xBF,0x1B,0x24,0x9E,0xFC,0x62,0x77,0x3C,0x82,0x9B,0xBB,0x22,0x97,0x04,0x90,0x1C,0x04,0xB7,0x94,0xB3,0x29,0x07,0x07,0x16,0xBF,0x1B,0x24,0x48,0xF1,0xD4,0x0D,0x32,0x14,0x3C,0x6F,0x69,0x28,0x59,0x97,0x04,0x90,0x1C,0x04,0x8A,0x09,0x42,0x17,0x07,0x07,0x2E,0xBF,0x1B,0x24,0xE6,0x82,0x84,0x33,0x3C,0xB3,0xCD,0x6F,0x6A,0x97,0x04,0x90,0x1C,0x04,0x53,0x58,0x26,0x30,0x07,0x07,0x9F,0x06,0x57,0xA9,0x0E,0x02,0x03,0x2A,0xE8,0x07,0x41,0x07,0xDF,0x06,0x57,0x94,0x0E,0x07,0xD7,0x07,0xC2,0x05,0x12,0x05,0xDF,0x05,0x93,0x07,0x06,0xC6,0x01,0x14,0x14,0x1A,0x14,0x12,0x00,0x14,0x14,0x14,0x14,0x14,0x02,0x16,0x1A,0x00,0x00,0x00,0x00,0x8C,0x02,0x00,0x00,0x00,0x00,0x00,0x14,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0xCC,0x0B,0xD0,0x0F,0xC8,0x01,0x14,0x04,0x00,0x00,0x14,0x00,0x00,0x00,0xC8,0x01,0xC8,0x01,0x00,0x00,0x06,0x00,0xC8,0x01,0x00,0x00,0x00,0x00,0x00,0xC8,0x01,0x00,0x00,0x00,0x14,0x00,0x14,0x00,0x00,0xD0,0x0F,0x00,0x00,0x00,0x06,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xB4,0x01,0x00,0x00,0x00,0xC8,0x01,0xC8,0x01,0xC8,0x01,0xC8,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC8,0x01,0x00,0x00,0x00,0xDF,0x06,0x93,0x07,0x06,0xC6,0x01,0x14,0x14,0x1A,0x14,0x12,0x00,0x14,0x14,0x14,0x14,0x14,0x02,0x16,0x1A,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0xCC,0x0B,0xD0,0x0F,0xC8,0x01,0x14,0x04,0x00,0x00,0x14,0x00,0x00,0x00,0xC8,0x01,0xC8,0x01,0x00,0x00,0x06,0x00,0xC8,0x01,0x00,0x00,0x00,0x00,0x00,0xC8,0x01,0x00,0x00,0x00,0x14,0x00,0x14,0x00,0x00,0xD0,0x0F,0x00,0x00,0x00,0x06,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xB4,0x01,0x00,0x00,0x00,0xC8,0x01,0xC8,0x01,0xC8,0x01,0xC8,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC8,0x01,0x00,0x00,0x00,0x07,0xDA,0x01,0x0F,0xE4,0x01,0x82,0x86,0x19,0x66,0x07,0xAE,0x05,0x97,0x04,0xF4,0x05,0x0C,0x00,0x00,0x00,0x00,0x1C,0x00,0x00,0x00,0x00,0x07,0x9F,0x1E,0x97,0x02,0xB6,0x0E,0x01,0xDF,0x01,0xD7,0x01,0x90,0x1C,0x07,0x90,0x1C,0x07,0x90,0x1C,0x07,0x07,0xB6,0x0E,0xDF,0x01,0xD7,0x01,0x90,0x1C,0x07,0x90,0x1C,0x07,0x90,0x1C,0x07,0x07,0xB6,0x0E,0xDF,0x01,0xD7,0x01,0x90,0x1C,0x07,0x90,0x1C,0x07,0x90,0x1C,0x07,0x07,0xB6,0x0E,0xDF,0x01,0xD7,0x01,0x90,0x1C,0x07,0x90,0x1C,0x07,0x90,0x1C,0x07,0x07,0x07,0xC1,0x1E,0x57,0xF5,0x05,0x0F,0x1F,0x0A,0x01,0x5F,0x0B,0x84,0x9A,0xCC,0xE1,0x0C,0x07,0x4F,0x1F,0x0A,0x01,0x5F,0x0B,0x1E,0x07,0x07,0x9F,0x07,0x2B,0x06,0x08,0x18,0x04,0x02,0x07 }; From.SendSerialized(Update); } // Character Information { PacketInStream Entity = new PacketInStream(MapServer.BuildPlayer, MapServer.BuildPlayer.Length); WorldEntityUpdate Update = PacketProcessor.ReadPacket(ref Entity) as WorldEntityUpdate; if(Update.Build(From.Character)) From.SendSerialized(Update); } WorldServerMOTD Motd = new WorldServerMOTD(); Motd.Text = "Welcome to Strawberry-Pr0jcts RiftEMU for patch 1.2"; From.SendSerialized(Motd); }