Beispiel #1
0
        public static bool RespawnAdd(Player Plr, ref List<string> Values)
        {
            byte Realm = (byte)GetInt(ref Values);
            Zone_Respawn Respawn = new Zone_Respawn();
            Respawn.PinX = (UInt16)Plr.X;
            Respawn.PinY = (UInt16)Plr.Y;
            Respawn.PinZ = (UInt16)Plr.Z;
            Respawn.WorldO = Plr.Heading;
            Respawn.ZoneID = Plr.Zone.ZoneId;
            Respawn.Realm = (byte)Realm;
            WorldMgr.Database.AddObject(Respawn);
            WorldMgr.LoadZone_Respawn();

            GMCommandLog Log = new GMCommandLog();
            Log.PlayerName = Plr.Name;
            Log.AccountId = (uint)Plr.Client._Account.AccountId;
            Log.Command = "ADD RESPAWN TO " + Plr.Zone.ZoneId + " " + (UInt16)Plr.X + " " + (UInt16)Plr.Y;
            Log.Date = DateTime.Now;
            WorldMgr.Database.AddObject(Log);

            return true;
        }
Beispiel #2
0
        public static bool RespawnAdd(Player Plr, ref List<string> Values)
        {
            Zone_Respawn Respawn = new Zone_Respawn();
            Respawn.PinX = (UInt16)Plr.X;
            Respawn.PinY = (UInt16)Plr.Y;
            Respawn.PinZ = (UInt16)Plr.Z;
            Respawn.WorldO = Plr.Heading;
            Respawn.ZoneID = Plr.Zone.ZoneId;
            Respawn.Realm = (byte)Plr.Realm;
            WorldMgr.Database.AddObject(Respawn);
            WorldMgr.LoadZone_Respawn();

            return true;
        }