Beispiel #1
0
        public virtual void OnFlagStolen(CTFFlag flag, PlayerMobile attacker, CTFTeam enemyTeam)
        {
            UpdateStatistics(enemyTeam, attacker, s => ++ s["Flags Stolen"]);

            PlaySound(748);

            LocalBroadcast("[{0}]: {1} has stolen the flag of {2}!", enemyTeam.Name, attacker.Name, flag.Team.Name);
        }
Beispiel #2
0
        public virtual void OnFlagStolen(CTFFlag flag, PlayerMobile attacker, CTFTeam enemyTeam)
        {
            EnsureStatistics(attacker)["Flags Stolen"]++;

            PlaySound(748);

            LocalBroadcast("[{0}]: {1} has stolen the flag of team {2}!", enemyTeam.Name, attacker.Name, flag.Team.Name);
        }
Beispiel #3
0
        public virtual void OnFlagReturned(CTFFlag flag, PlayerMobile defender)
        {
            EnsureStatistics(defender)["Flags Returned"]++;

            if (FlagReturnPoints > 0)
            {
                AwardPoints(defender, FlagReturnPoints);
            }

            PlaySound(749);

            LocalBroadcast("[{0}]: {1} has returned the flag of team {0}!", flag.Team.Name, defender.Name);
        }
Beispiel #4
0
        public virtual void OnFlagCaptured(CTFFlag flag, PlayerMobile attacker, CTFTeam enemyTeam)
        {
            UpdateStatistics(enemyTeam, attacker, s => ++ s["Flags Captured"]);

            if (FlagCapturePoints > 0)
            {
                AwardPoints(attacker, FlagCapturePoints);
            }

            PlaySound(747);

            LocalBroadcast("[{0}]: {1} has captured the flag of {2}!", enemyTeam.Name, attacker.Name, flag.Team.Name);
        }
Beispiel #5
0
        public virtual void OnFlagCaptured(CTFFlag flag, PlayerMobile attacker, CTFTeam enemyTeam)
        {
            EnsureStatistics(attacker)["Flags Captured"]++;

            if (FlagCapturePoints > 0)
            {
                AwardPoints(attacker, FlagCapturePoints);
            }

            PlaySound(747);

            LocalBroadcast("[{0}]: {1} has captured the flag of team {2}!", enemyTeam.Name, attacker.Name, flag.Team.Name);
            LocalBroadcast("Team {0} now has {1:#,0} / {2:#,0} flag captures!", enemyTeam.Name, enemyTeam.Caps, CapsToWin);
        }
Beispiel #6
0
        public virtual void SpawnFlag()
        {
            if (Battle.State != PvPBattleState.Running)
            {
                if (Flag != null && !Flag.Deleted)
                {
                    Flag.Delete();
                }

                Flag = null;
                return;
            }

            if (Flag == null || Flag.Deleted)
            {
                Flag = new CTFFlag(this);
            }

            Flag.Carrier = null;
            Flag.Reset();
        }
Beispiel #7
0
        public virtual void OnFlagTimeout(CTFFlag flag)
        {
            PlaySound(749);

            LocalBroadcast("[{0}]: Flag has been returned to the base!", flag.Team.Name);
        }
Beispiel #8
0
		public virtual void OnFlagTimeout(CTFFlag flag)
		{
			PlaySound(749);

			LocalBroadcast("[{0}]: Flag has been returned to the base!", flag.Team.Name);
		}
Beispiel #9
0
		public virtual void OnFlagReturned(CTFFlag flag, PlayerMobile defender)
		{
			EnsureStatistics(defender)["Flags Returned"]++;

			if (FlagReturnPoints > 0)
			{
				AwardPoints(defender, FlagReturnPoints);
			}

			PlaySound(749);

			LocalBroadcast("[{0}]: {1} has returned the flag of team {0}!", flag.Team.Name, defender.Name);
		}
Beispiel #10
0
		public virtual void OnFlagStolen(CTFFlag flag, PlayerMobile attacker, CTFTeam enemyTeam)
		{
			EnsureStatistics(attacker)["Flags Stolen"]++;

			PlaySound(748);

			LocalBroadcast("[{0}]: {1} has stolen the flag of team {2}!", enemyTeam.Name, attacker.Name, flag.Team.Name);
		}
Beispiel #11
0
		public virtual void OnFlagCaptured(CTFFlag flag, PlayerMobile attacker, CTFTeam enemyTeam)
		{
			EnsureStatistics(attacker)["Flags Captured"]++;

			if (FlagCapturePoints > 0)
			{
				AwardPoints(attacker, FlagCapturePoints);
			}

			PlaySound(747);

			LocalBroadcast("[{0}]: {1} has captured the flag of team {2}!", enemyTeam.Name, attacker.Name, flag.Team.Name);
			LocalBroadcast("Team {0} now has {1:#,0} / {2:#,0} flag captures!", enemyTeam.Name, enemyTeam.Caps, CapsToWin);
		}