Ejemplo n.º 1
0
        private static void OnC2SAskEnterWorld(ByteBuffer buffer, Connection connection)
        {
            var incPacket = new SyncPackets.C2SAskEnterWorld(buffer);
            var cc        = CCM.GetClientConnection(connection);

            var positionInfoPacket = new SyncPackets.S2CAnsPlayerPositionInfo(cc.Character);

            positionInfoPacket.Send(connection);

            var guildInformationPacket = new SyncPackets.S2CAnsGuildInfo(cc.Character);

            guildInformationPacket.Send(connection);

            var equipInformationPacket = new SyncPackets.S2CAnsEquipInfo(cc.Character);

            equipInformationPacket.Send(connection);
        }
Ejemplo n.º 2
0
        internal static void OnC2SAskEnterWorld(ByteBuffer buffer, Connection connection)
        {
            var incPacket = new SyncPackets.C2SAskEnterWorld(buffer);
            var client    = ClientManager.GetClient(connection);

            client.setAtZone(atZone.atVillage);
            //var AllplayerPackage = new SyncPackets.S2CSyncAllPlayers(1);
            //AllplayerPackage.Send(connection);

            var guildInformationPacket = new SyncPackets.S2CAnsGuildInfo(client.GetSelectedCharacter());

            guildInformationPacket.Send(connection);

            var equipInformationPacket = new SyncPackets.S2CAnsEquipInfo(client.GetSelectedCharacter());

            equipInformationPacket.Send(connection);

            var positionInfoPacket = new SyncPackets.S2CAnsPlayerPositionInfo(client.GetSelectedCharacter());

            positionInfoPacket.Send(connection);
        }