VIP system

Milva

Administrator
Moderator
I'm not sure if the VIP System has been finished up yet, but @Insanity could
can give more information about this :)
 

Insanity

Rookie
It isn't finished just yet, sorry. Progress to it has been put on hold. It's a custom system that will be included in the long run, but other things are on the to-do list before it.

When I focus back on the VIP system, I will be gathering a lot of info and feedback. To build the system better, and include things that people believe to be a good idea.

Currently, the VIP system only has one feature that's in-place and working. As a proof of concept, and that is the free house modification VIP bonus.

Till then, if you have any sugestions. Feel free to add them to the suggestion forum.
 

Ravenwolfe

Moderator
ServUO Developer
Thanks for the update. I was unclear on what the intent was but after looking thru the scripts I can see that it is planned to be a donation reward system, very cool.
 

Regnak

Rookie
Hey !

I had to correct a bug in the VIP system, which was preventing my server to start today ... :(

Here is the corrected code :

Code:
		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;
			}
  }
		}

Hopefully this will help some :)

Kind regards,

-Rek-