24 lines
520 B
Plaintext
24 lines
520 B
Plaintext
//Written by kookoo 8-13-8
|
|
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_SHADOWDANCER);
|
|
nInt--;
|
|
}
|
|
}
|
|
}
|