Ok, got tired of my 100 monk always killing his stamina wasting monstas, so I have taking bits and pieces and some of my own ideas to create a new command. I looked at the #mana command and saw it wasnt always refilling mana all the way, but i kept looking and found there is already an alg. to calc how much your max mana is, so i inserted it into the set mana command, that way you always get your max mana returned to you. the #heal command is now blended in, and i added a line of code to cast invigor on yourself thus refilling your stamina. All of this in one easy to use command
else if (strcasecmp(sep.arg[0], "#recover") == 0 && (admin >=10))
{
if (target == 0)
{
this->SetMana(CalcMaxMana());
this->Heal();
SpellFinished(222, 0, 10, 0);
}
else
{
target->SetMana(CalcMaxMana());
target->Heal();
SpellFinished(222, target->GetID(), 10, 0);
}
}