Пример #1
0
		protected override void OnTick() 
		{ 
                  	ed.Loyalty = 100;

			MercLoyaltyTimer lt = new MercLoyaltyTimer( ed, TimeSpan.FromSeconds( 5.0 ) );
			lt.Start();
			ed.EndMercLoyalty = DateTime.Now + TimeSpan.FromSeconds( 5.0 );

			Stop();
		}
Пример #2
0
		protected override void OnTick()
		{
			/*
			foreach (NetState state in NetState.Instances)
			{
				if (state.Mobile == null)
				{
					continue;
				}

				
				Mobile owner = state.Mobile;

				if (ed.ControlMaster == owner) 
					ed.Loyalty = Loyalty.WonderfullyHappy; 
				
			}
			*/

			var lt = new MercLoyaltyTimer(ed, TimeSpan.FromSeconds(5.0));
			lt.Start();
			ed.EndMercLoyalty = DateTime.UtcNow + TimeSpan.FromSeconds(5.0);

			Stop();
		}