public bool ChangeData(int nPower, int nSecs, int nTimes = 0, uint wCaster = 0) { try { m_nData = nPower; m_tKeep.SetInterval(nSecs * 1000); m_tKeep.Update(); m_dwCaster = wCaster; if (m_pOwner is Character) { Character pUser = m_pOwner as Character; if (Identity == FlagInt.AZURE_SHIELD) { pUser.UpdateAzureShield(nSecs, nPower, Level); } pUser.RecalculateAttributes(); } return(true); } catch { return(false); } }
public void SetDelay() { if (m_dbMagictype == null) { return; } if (m_tDelay == null) { m_tDelay = new TimeOutMS((int)Timeout); } m_tDelay.Startup((int)Timeout); m_tDelay.SetInterval((int)Timeout); m_tDelay.Update(); }