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

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

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