I noticed there is a VIP system, any documentation on how it is implemented?
public void Check()
{
if (this.LinkedMobile != null)
{
if (!this.LinkedMobile.Deleted || this.LinkedMobile != null)
{
switch (this._Tier)
{
case VIPTier.None:
{
foreach (Bonus bonus in this._Bonuses)
{
if (bonus.TimeStarted + bonus.ServicePeriod >= DateTime.Now)
{
bonus.Enabled = false;
bonus.ServicePeriod = TimeSpan.Zero;
bonus.TimeStarted = DateTime.MinValue;
}
}
break;
}
case VIPTier.Bronze:
{
if (this._TimeStarted + this._ServicePeriod >= DateTime.Now)
{
this._TimeStarted = DateTime.MinValue;
this._ServicePeriod = TimeSpan.Zero;
}
this._Canceled = true;
this.LinkedMobile.AccessLevel = AccessLevel.Player;
goto case VIPTier.None;
}
case VIPTier.Silver:
{
goto case VIPTier.Bronze;
}
case VIPTier.Gold:
{
goto case VIPTier.Bronze;
}
}
}
else
{
this._Canceled = true;
}
}
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.