RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Resource icon

[2.x] Staff level under character's name

Felladrin

Sorceror
Felladrin submitted a new resource:

Staff level under character's name (version 1.0) - Easy way to show your players who is officially a staff member

This is a fast mod to let your players know who is officially member of the staff.



All you need to do is to open PlayerMobile.cs and look for the line:
C#:
base.GetProperties(list);
Then, under this line you add the following:
C#:
if (AccessLevel > AccessLevel.Player)
{
    switch (AccessLevel)
    {
        case AccessLevel.Counselor:...

Read more about this resource...
 

Vladamir

Sorceror
Just an addition, for those people who are interested. You can also color code your staff ranks by adding this to your PlayerMobile.cs instead.

Code:
 public static string[] AccessLevelNames = new string[]
            {
                "Player", "Counselor", "Game Master", "Seer", "Administrator", "Developer", "Owner"
            };
   
        public override void AddNameProperties( ObjectPropertyList list )
        {
            base.AddNameProperties(list);
 
        if (AccessLevel > AccessLevel.Player)
            {
                string color = "";
                switch (AccessLevel)
                {
                    case AccessLevel.Counselor: color = "#00BFFF"; break; //Deep Sky Blue
                    case AccessLevel.GameMaster: color = "#FF0000"; break; //Red
                    case AccessLevel.Seer: color = "#00FF00"; break; //Green
                    case AccessLevel.Administrator: color = "#0070FF"; break;
                    case AccessLevel.Developer: color = "#A335EE"; break;
                    case AccessLevel.Owner: color = "#FFD700"; break;
                }
                list.Add(1060658, "{0}\t{1}", "Staff", String.Format("<BASEFONT COLOR={0}>{1}", color, AccessLevelNames[(int)AccessLevel]));
            }
        }
 

nikkor1132

Sorceror
I like this alot i think it gives staff more of a acceptable look then just (Shard Owner) as a title.
Thanks for your submission.
 
Top