I was tired of doing the fame adding in the database, couldn't find it here, so I made one. If this is already here, feel free to delete the thread.
Code:
internal class Fame : Command
{
public Fame()
: base("fame", 1)
{
}
protected override bool Process(Player player, RealmTime time, string[] args)
{
if (args[0] == "")
{
player.SendHelp("Usage: /fame <Fame Amount>");
return false;
}
try
{
int newFame = Convert.ToInt32(args[0]);
int newXP = Convert.ToInt32(newFame.ToString() + "000");
player.Fame = newFame;
player.Experience = newXP;
player.SaveToCharacter();
player.Client.Save();
player.UpdateCount++;
player.SendInfo("Updated Fame To: " + newFame);
}
catch
{
player.SendInfo("Error Setting Fame");
return false;
}
return true;
}
}