示例#1
0
        void GMtotown(string name)         // need to rework...
        {
            byte number = FileDB.GetTeleport(name);

            if (number == 255)
            {
                return;
            }
            if (Timer.Movement != null)
            {
                Timer.Movement.Dispose();
            }
            BuffAllClose();
            client.Send(Packet.TeleportOtherStart());

            //ObjectDeSpawn();
            ObjectDeSpawnCheck();
            DeSpawnMe();

            Character.InGame = false;
            Teleport_UpdateXYZ(number);
            client.Send(Packet.TeleportImage(ObjData.Manager.PointBase[number].xSec, ObjData.Manager.PointBase[number].ySec));

            Character.Teleport = true;
            ObjectSpawnCheck();
        }