22 lines
717 B
Plaintext
22 lines
717 B
Plaintext
#include "inc_arenapc"
|
|
|
|
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
object oCreature = ArenaSummon("cs1_assassin");
|
|
int iPCLevel = GetHitDice(oPC);
|
|
int iLevelUp = 1;
|
|
|
|
while (iLevelUp < iPCLevel)
|
|
{
|
|
if (iLevelUp > 7 && iLevelUp < 18) iLevelUp = LevelUpHenchman(oCreature, CLASS_TYPE_ASSASSIN, TRUE, PACKAGE_ASSASSIN);
|
|
else iLevelUp = LevelUpHenchman(oCreature, CLASS_TYPE_MONK, TRUE, GetCreatureStartingPackage(oCreature));
|
|
}
|
|
|
|
EquipNPC(oCreature, iLevelUp);
|
|
|
|
SendMessageToPC(oPC, GetName(oCreature) + "'s level = Monk " + IntToString(GetLevelByClass(CLASS_TYPE_MONK, oCreature)) + ", Assassin " + IntToString(GetLevelByClass(CLASS_TYPE_ASSASSIN, oCreature)));
|
|
|
|
}
|
|
|