22 lines
758 B
Plaintext
22 lines
758 B
Plaintext
#include "inc_arenapc"
|
|
|
|
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
object oCreature = ArenaSummon("cs1_dwarfdef");
|
|
int iPCLevel = GetHitDice(oPC);
|
|
int iLevelUp = 1;
|
|
|
|
while (iLevelUp < iPCLevel)
|
|
{
|
|
if (iLevelUp > 7 && iLevelUp < 18) iLevelUp = LevelUpHenchman(oCreature, CLASS_TYPE_DWARVEN_DEFENDER, TRUE, PACKAGE_DWARVEN_DEFENDER);
|
|
else iLevelUp = LevelUpHenchman(oCreature, CLASS_TYPE_FIGHTER, TRUE, GetCreatureStartingPackage(oCreature));
|
|
}
|
|
|
|
EquipNPC(oCreature, iLevelUp);
|
|
|
|
SendMessageToPC(oPC, GetName(oCreature) + "'s level = Fighter " + IntToString(GetLevelByClass(CLASS_TYPE_FIGHTER, oCreature)) + ", Dwarven Defender " + IntToString(GetLevelByClass(CLASS_TYPE_DWARVEN_DEFENDER, oCreature)));
|
|
|
|
}
|
|
|