예제 #1
0
        public void Process(byte[] buffer, IConnection connection)
        {
            var msg = new ByteBuffer(buffer);

            var warp = new AdministratorWarp()
            {
                Player = Authentication.Players[connection.Index]
            };

            warp.AdminWarpLocation(msg.ReadInt32(), msg.ReadInt32());
        }
예제 #2
0
        public void Process(byte[] buffer, IConnection connection)
        {
            var pData = Authentication.Players[connection.Index];
            var msg   = new ByteBuffer(buffer);
            var name  = msg.ReadString();

            if (name.Length > 0)
            {
                var warp = new AdministratorWarp()
                {
                    Player = Authentication.Players[connection.Index]
                };

                warp.MovePlayerToMe(Authentication.FindByCharacter(name));
            }
        }
예제 #3
0
        public void Process(byte[] buffer, IConnection connection)
        {
            var pData = Authentication.Players[connection.Index];
            var msg   = new ByteBuffer(buffer);

            var warp = new AdministratorWarp()
            {
                Player = Authentication.Players[connection.Index]
            };

            var mapId = msg.ReadInt32();

            if (mapId > 0 || mapId <= Configuration.MaxMaps)
            {
                warp.MoveToMap(Global.GetMap(mapId));
            }
        }