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
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);
}
}