Initial commit
Initial commit [v9.7]
This commit is contained in:
22
_module/nss/hench_upbarbaria.nss
Normal file
22
_module/nss/hench_upbarbaria.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
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_BARBARIAN);
|
||||
nInt--;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user