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

Staff AccessLevel colors

Discussion in 'General Discussion' started by Hank, Mar 7, 2014.

  1. Hank
    Offline

    Hank Active Member

    Joined:
    Nov 14, 2013
    Messages:
    971
    Likes Received:
    152
    I just thought I'd share this tid-bit with everyone.
    In playermobile.cs you can find this. This is what you and others see under your name if you are staff.

    You can change the color of each accesslevel by changing the html color value.
    Here is a site for a simple HTML color picker. [Link]
    I believe you can comment out or remove this entire thing to get rid of having your access level under your name as a staff.
    Code (C#):
    1.  
    2. if (AccessLevel > AccessLevel.Player)
    3.        {
    4.          string color = "";
    5.          switch (AccessLevel)
    6.          {
    7.            case AccessLevel.VIP:
    8.              color = "#1EFF00";
    9.              break;
    10.            case AccessLevel.Counselor:
    11.              color = "#00BFFF";
    12.              break; //Deep Sky Blue
    13.            case AccessLevel.Decorator:
    14.              color = "#FF8000";
    15.              break;
    16.            case AccessLevel.Spawner:
    17.              color = "#E6CC80";
    18.              break;
    19.            case AccessLevel.GameMaster:
    20.              color = "#FF0000";
    21.              break; //Red
    22.            case AccessLevel.Seer:
    23.              color = "#00FF00";
    24.              break; //Green
    25.            case AccessLevel.Administrator:
    26.              color = "#0070FF";
    27.              break;
    28.            case AccessLevel.Developer:
    29.              color = "#A335EE";
    30.              break;
    31.            case AccessLevel.CoOwner:
    32.              color = "#FFD700";
    33.              break;
    34.            case AccessLevel.Owner:
    35.              color = "#FFD700";
    36.              break;
    37.          }
    38.          if (IsStaff())
    39.          {
    40.            list.Add(
    41.              1060658, "{0}\t{1}", "Staff", String.Format("<BASEFONT COLOR={0}>{1}", color, GetAccessLevelName(AccessLevel)));
    42.          }
    43.          else
    44.          {
    45.            list.Add(1060658, "VIP");
    46.          }
    47.        }
    48.  
    49.  
     
    #1 Hank, Mar 7, 2014
    Last edited: Mar 7, 2014
    • Two Thumbs Up Two Thumbs Up x 1
  2. xG00BERx
    Offline

    xG00BERx Active Member

    Joined:
    Jan 6, 2014
    Messages:
    405
    Likes Received:
    39
Similar Threads: Staff AccessLevel
Forum Title Date
ServUO Discussion Joeku's staff rune book Jan 28, 2018
Archived Bug Reports Staff Member Online or not - dead giveaway Jan 24, 2018
Archived Bug Reports Undertaker's Staff - New crash Jan 23, 2018
Archived Bug Reports Staff triggers the gauntlet to create more spawn Jan 14, 2018
Archived Bug Reports Staff Orbs Not Working Properly Dec 23, 2017
Archived Bug Reports Undertaker's Staff crashes server Oct 19, 2017
General Discussion Staff for shards Aug 22, 2017