22 lines
812 B
Plaintext
22 lines
812 B
Plaintext
#include "inc_arenapc"
|
|
|
|
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
object oCreature = ArenaSummon("cs1_weaponmast");
|
|
int iPCLevel = GetLevelByPosition(1, oPC) + GetLevelByPosition(2, oPC) + GetLevelByPosition(3, oPC);
|
|
int iLevelUp = 1;
|
|
|
|
while (iLevelUp < iPCLevel)
|
|
{
|
|
if (iLevelUp > 7 && iLevelUp < 18) iLevelUp = LevelUpHenchman(oCreature, CLASS_TYPE_WEAPON_MASTER, TRUE, PACKAGE_WEAPONMASTER);
|
|
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)) + ", Weapon Master " + IntToString(GetLevelByClass(CLASS_TYPE_WEAPON_MASTER, oCreature)));
|
|
|
|
}
|
|
|