22 lines
742 B
Plaintext
22 lines
742 B
Plaintext
#include "inc_arenapc"
|
|
|
|
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
object oCreature = ArenaSummon("cs1_blackguard");
|
|
int iPCLevel = GetHitDice(oPC);
|
|
int iLevelUp = 1;
|
|
|
|
while (iLevelUp < iPCLevel)
|
|
{
|
|
if (iLevelUp > 7 && iLevelUp < 18) iLevelUp = LevelUpHenchman(oCreature, CLASS_TYPE_BLACKGUARD, TRUE, PACKAGE_BLACKGUARD);
|
|
else iLevelUp = LevelUpHenchman(oCreature, CLASS_TYPE_BARBARIAN, TRUE, GetCreatureStartingPackage(oCreature));
|
|
}
|
|
|
|
EquipNPC(oCreature, iLevelUp);
|
|
|
|
SendMessageToPC(oPC, GetName(oCreature) + "'s level = Barbarian " + IntToString(GetLevelByClass(CLASS_TYPE_BARBARIAN, oCreature)) + ", Blackguard " + IntToString(GetLevelByClass(CLASS_TYPE_BLACKGUARD, oCreature)));
|
|
|
|
}
|
|
|