#include "inc_arenapc"

void main()
{
    object oPC = GetPCSpeaker();
    object oCreature = ArenaSummon("cs1_cot");
    int iPCLevel = GetHitDice(oPC);
    int iLevelUp = 1;

    while (iLevelUp < iPCLevel)
    {
        if (iLevelUp > 7 && iLevelUp < 18) iLevelUp = LevelUpHenchman(oCreature, CLASS_TYPE_DIVINE_CHAMPION, TRUE, PACKAGE_DIVINE_CHAMPION);
        else iLevelUp = LevelUpHenchman(oCreature, CLASS_TYPE_PALADIN, TRUE, GetCreatureStartingPackage(oCreature));
    }

    EquipNPC(oCreature, iLevelUp);

        SendMessageToPC(oPC, GetName(oCreature) + "'s level = Paladin " + IntToString(GetLevelByClass(CLASS_TYPE_PALADIN, oCreature)) + ", Champion of Torm " + IntToString(GetLevelByClass(CLASS_TYPE_DIVINE_CHAMPION, oCreature)));

}

