AOC_PRC8/_module/nss/givelevel.nss
Jaysyn904 5e558169a0 Initial Commit
Initial Commit
2025-04-03 11:24:16 -04:00

9 lines
284 B
Plaintext

void main()
{
object oPC = GetPCSpeaker();
int nLevel = GetHitDice(oPC); //Get level
int nXP = GetXP(oPC); //Save XP so we can restore it afterwards
int nLevelXP = (nLevel) * (nLevel + 2) * 500; //Work out how much XP will delevel the PC
SetXP(oPC, nLevelXP); //Set that level
}