PRC8/trunk/scripts/mer_wwolf.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

31 lines
707 B
Plaintext

void AbilityUsesPerDay(object oCompanion, int nLevel)
{
int iMax, i;
int coneAbi = nLevel / 5;
switch(coneAbi)
{
case 1 : iMax = 7; break;
case 2 : iMax = 6; break;
case 3 : iMax = 5; break;
case 4 : iMax = 4; break;
case 5 : iMax = 3; break;
case 6 : iMax = 2; break;
case 7 : iMax = 1; break;
}
if(iMax > 0)
{
for(i = 1; i <= iMax; i++)
DecrementRemainingSpellUses(oCompanion, 230);
}
}
void main()
{
object oCompanion = OBJECT_SELF;
int nLevel = GetHitDice(oCompanion);
ExecuteScript("prc_ai_fam_rest", oCompanion);
DelayCommand(6.0f, AbilityUsesPerDay(oCompanion, nLevel));
}