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(); }
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(); }