Exemple #1
0
        public virtual void OnFlagDropped(UOF_CTFFlag flag, PlayerMobile attacker, UOF_CTFTeam enemyTeam)
        {
            EnsureStatistics(attacker)["Flags Dropped"]++;

            PlaySound(746);

            LocalBroadcast("[{0}]: {1} has dropped the flag of team {2}!", enemyTeam.Name, attacker.Name, flag.Team.Name);
        }
Exemple #2
0
        public virtual void OnFlagStolen(UOF_CTFFlag flag, PlayerMobile attacker, UOF_CTFTeam enemyTeam)
        {
            EnsureStatistics(attacker)["Flags Stolen"]++;

            AwardPoints(attacker, 5);

            PlaySound(748);

            LocalBroadcast("[{0}]: {1} has stolen the flag of team {2}!", enemyTeam.Name, attacker.Name, flag.Team.Name);
        }
Exemple #3
0
        public virtual void OnFlagReturned(UOF_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);
        }
Exemple #4
0
        public virtual void OnFlagCaptured(UOF_CTFFlag flag, PlayerMobile attacker, UOF_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);
        }
Exemple #5
0
        public virtual void OnFlagTimeout(UOF_CTFFlag flag)
        {
            PlaySound(749);

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

			LocalBroadcast("[{0}]: Flag has been returned to the base!", flag.Team.Name);
		}
Exemple #7
0
		public virtual void OnFlagReturned(UOF_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);
		}
Exemple #8
0
		public virtual void OnFlagStolen(UOF_CTFFlag flag, PlayerMobile attacker, UOF_CTFTeam enemyTeam)
		{
			EnsureStatistics(attacker)["Flags Stolen"]++;

            AwardPoints(attacker, 5);

			PlaySound(748);

			LocalBroadcast("[{0}]: {1} has stolen the flag of team {2}!", enemyTeam.Name, attacker.Name, flag.Team.Name);
		}
Exemple #9
0
		public virtual void OnFlagCaptured(UOF_CTFFlag flag, PlayerMobile attacker, UOF_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);
		}
Exemple #10
0
		public virtual void OnFlagDropped(UOF_CTFFlag flag, PlayerMobile attacker, UOF_CTFTeam enemyTeam)
		{
			EnsureStatistics(attacker)["Flags Dropped"]++;

			PlaySound(746);

			LocalBroadcast("[{0}]: {1} has dropped the flag of team {2}!", enemyTeam.Name, attacker.Name, flag.Team.Name);
		}