24 lines
486 B
Plaintext
24 lines
486 B
Plaintext
|
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--;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|