Lankhmar_PRC8/_module/nss/hench_upbard.nss

24 lines
486 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
void main()
{
object oPC = GetPCSpeaker();
//This will ensure that the hench levels only themselves up.
object oTarget = OBJECT_SELF;
int nInt;
if (GetIsObjectValid(oTarget))
{
//We only want to level up one level at a time.
nInt = 1;
while (nInt>0)
{
//level up by class. You can look in constants
//over to the right and find prestige classes
//to level up as well.
LevelUpHenchman(oTarget, CLASS_TYPE_BARD);
nInt--;
}
}
}