[fab]LeftToMax Command
Yea..I have writers block and there isn't really anything complicated to do in fab so I am just posting a bunch of commands that may or may not work
Here is the LeftToMax command
it tells you how much pots you need till maxed
If anyone has any good ideas just tell me so I can attempt to make it and hopefully get out of this writers block
Here is the LeftToMax command
it tells you how much pots you need till maxed
Code:
internal class LeftToMax : Command
{
public LeftToMax() : base("lefttomax") { }
protected override bool Process(Player player, RealmTime time, string[] args)
{
int Hp = player.ObjectDesc.MaxHitPoints - player.Stats[0];
int Mp = player.ObjectDesc.MaxMagicPoints - player.Stats[1];
int Atk = player.ObjectDesc.MaxAttack - player.Stats[2];
int Def = player.ObjectDesc.MaxDefense - player.Stats[3];
int Spd = player.ObjectDesc.MaxSpeed - player.Stats[4];
int Vit = player.ObjectDesc.MaxHpRegen - player.Stats[5];
int Wis = player.ObjectDesc.MaxMpRegen - player.Stats[6];
int Dex = player.ObjectDesc.MaxDexterity - player.Stats[7];
player.SendInfo(Hp +"Till maxed Health");
player.SendInfo(Mp + "Till maxed Mana");
player.SendInfo(Atk + "Till maxed Attack");
player.SendInfo(Def + "Till maxed Defense");
player.SendInfo(Spd + "Till maxed Speed");
player.SendInfo(Vit + "Till maxed HpRegen");
player.SendInfo(Wis + "Till maxed MpRegen");
player.SendInfo(Dex + "Till maxed Dexterity");
return true;
}
}
If anyone has any good ideas just tell me so I can attempt to make it and hopefully get out of this writers block
