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:
    972
    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:
    301
    Likes Received:
    35
Similar Threads: Staff AccessLevel
Forum Title Date
General Discussion Staff for shards Aug 22, 2017
ServUO Discussion Activation of NPC / Mobile spawners if staff member is hidden Aug 5, 2017
Custom Releases Lich Staff Jun 27, 2017
ServUO Discussion Vet rewards gump for staff members? Jun 9, 2017
Custom Releases Automative Staff May 24, 2017
Looking For Help Frag N Play (PVP) - Looking for staff Apr 27, 2017
Looking For Help New Shard. Seeking Staff. Inquire within. Mar 21, 2017