1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

VIP system

Discussion in 'General Discussion' started by Ravenwolfe, Sep 9, 2013.

  1. Ravenwolfe
    Offline

    Moderator ServUO Developer

    Joined:
    Sep 7, 2013
    Messages:
    1,102
    Likes Received:
    117
    I noticed there is a VIP system, any documentation on how it is implemented?
     
  2. Milva
    Offline

    Admin Moderator

    Joined:
    Mar 3, 2013
    Messages:
    3,421
    Likes Received:
    385
    I'm not sure if the VIP System has been finished up yet, but @Insanity could
    can give more information about this :)
     
  3. Insanity
    Offline

    Insanity Active Member

    Joined:
    Mar 2, 2013
    Messages:
    276
    Likes Received:
    61
    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.
     
  4. Ravenwolfe
    Offline

    Moderator ServUO Developer

    Joined:
    Sep 7, 2013
    Messages:
    1,102
    Likes Received:
    117
    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.
     
  5. Regnak
    Offline

    Regnak Active Member

    Joined:
    Apr 1, 2013
    Messages:
    254
    Likes Received:
    43
    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 (C#):
    1.         public void Check()
    2.         {
    3.   if (this.LinkedMobile != null)
    4.   {
    5.             if (!this.LinkedMobile.Deleted || this.LinkedMobile != null)
    6.             {
    7.                 switch (this._Tier)
    8.                 {
    9.                     case VIPTier.None:
    10.                         {
    11.                             foreach (Bonus bonus in this._Bonuses)
    12.                             {
    13.                                 if (bonus.TimeStarted + bonus.ServicePeriod >= DateTime.Now)
    14.                                 {
    15.                                     bonus.Enabled = false;
    16.                                     bonus.ServicePeriod = TimeSpan.Zero;
    17.                                     bonus.TimeStarted = DateTime.MinValue;
    18.                                 }
    19.                             }
    20.                             break;
    21.                         }
    22.                     case VIPTier.Bronze:
    23.                         {
    24.                             if (this._TimeStarted + this._ServicePeriod >= DateTime.Now)
    25.                             {
    26.                                 this._TimeStarted = DateTime.MinValue;
    27.                                 this._ServicePeriod = TimeSpan.Zero;
    28.                             }
    29.  
    30.                             this._Canceled = true;
    31.                             this.LinkedMobile.AccessLevel = AccessLevel.Player;
    32.  
    33.                             goto case VIPTier.None;
    34.                         }
    35.                     case VIPTier.Silver:
    36.                         {
    37.                             goto case VIPTier.Bronze;
    38.                         }
    39.                     case VIPTier.Gold:
    40.                         {
    41.                             goto case VIPTier.Bronze;
    42.                         }
    43.                 }
    44.             }
    45.             else
    46.             {
    47.                 this._Canceled = true;
    48.             }
    49.   }
    50.         }
    Hopefully this will help some :)

    Kind regards,

    -Rek-
     
Similar Threads: VIP system
Forum Title Date
General Discussion VIP System Mar 26, 2017
General Discussion VIP System Dec 25, 2016
Discussions Ideas - Account Gold Count and VIP system Dec 5, 2016
Archived Bug Reports VIP System - Loot Gold From Corpses Deed Jul 15, 2014
Script Support Membleship VIP Dec 15, 2016
Archived Bug Reports VIP LEVEL Context Problem Aug 27, 2014
Script Support Quick Question on VIP Access Level. Apr 26, 2014