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!

[RunUO 2.0 RC2]Jako Leveling System (Balanced Pet Leveling)

Bittiez

Sorceror
I noticed when exp starts getting higher, it runs off the side of the gump, so I changed part of the script in Animal Lore:

Replace your current private static string FormatStat( int val ) with the following: It will change 10,000 to 10k and 1,000,000 to 1m


Code:
        private static string FormatStat( int val )
        {
            String q = "";
            decimal m = 0;
            String mm = null;
            if ( val == 0 )
                return "<div align=right>---</div>";
            if (val >= 1000)
            {
                val = val / 1000;
                m = (decimal)val;
                q = "k";
                if (val >= 1000)
                {
                    val = val / 1000;
                    m = (decimal)val;
                    q = "m";
                }
                mm = m.ToString("N2");
            }
            if (mm == null)
            {
                return String.Format("<div align=right>{0}{1}</div>", val, q);
            }
            else
            {
                return String.Format("<div align=right>{0}{1}</div>", mm, q);
            }
        }
 
Top