Esempio n. 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);
        }
Esempio n. 2
0
File: CTF.cs Progetto: LordEnigma/UO
        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);
        }
Esempio n. 3
0
File: CTF.cs Progetto: LordEnigma/UO
        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);
        }
Esempio n. 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);
        }
Esempio n. 5
0
File: CTF.cs Progetto: LordEnigma/UO
        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);
        }
Esempio n. 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();
        }
Esempio n. 7
0
File: CTF.cs Progetto: LordEnigma/UO
        public virtual void OnFlagTimeout(CTFFlag flag)
        {
            PlaySound(749);

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

			LocalBroadcast("[{0}]: Flag has been returned to the base!", flag.Team.Name);
		}
Esempio n. 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);
		}
Esempio n. 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);
		}
Esempio n. 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);
		}