protected override void OnTick() { int pay = m_Hire.CalcPay(); if (m_Hire.Bank < pay) { m_Hire.Say(true, "Thou hast not payed me! I quit!"); m_Hire.SetControlMaster(null); m_Hire.SummonMaster = null; m_Hire.Delta(MobileDelta.Noto); m_Hire.BondingBegin = DateTime.MinValue; m_Hire.OwnerAbandonTime = DateTime.MinValue; m_Hire.IsBonded = false; m_Hire.Bank = 0; Stop(); } else { m_Hire.Bank -= pay; if (m_Hire.Bank < pay) { m_Hire.Say(true, String.Format("Thou must pay me my salary of {0}gp, or this will be my last day.", pay - m_Hire.Bank)); } else { m_Hire.Say(true, "Ahh, a new day already!"); } } }
protected override void OnTick() { int m_Pay = m_Hire.m_Pay; if (m_Hire.m_HoldGold <= m_Pay) { // Get the current owner, if any (updates HireTable) Mobile owner = m_Hire.GetOwner(); m_Hire.Say(503235, 0x3B2);// I regret nothing!postal m_Hire.Delete(); } else { m_Hire.m_HoldGold -= m_Pay; } }
protected override void OnTick() { int m_Pay = m_Hire.m_Pay; if (m_Hire.m_HoldGold <= m_Pay) { // Get the current owner, if any (updates HireTable) Mobile owner = m_Hire.GetOwner(); m_Hire.Say(true, "I thank thee for thy kindness!"); m_Hire.Delete(); } else { m_Hire.m_HoldGold -= m_Pay; } }