PGCC_PRC8/_module/nss/vata_fightera.nss
Jaysyn904 e51634d39b Initial upload
Initial upload.
2024-10-09 14:17:22 -04:00

23 lines
496 B
Plaintext

#include "inc_arenapc"
void main()
{
object oPC = GetPCSpeaker();
object oCreature = ArenaSummon("cs1_fighter");
int iPCLevel = GetLevelByPosition(1, oPC) + GetLevelByPosition(2, oPC) + GetLevelByPosition(3, oPC);
int iLevelUp = 1;
while (iLevelUp < iPCLevel)
{
iLevelUp = LevelUpHenchman(oCreature, CLASS_TYPE_FIGHTER, TRUE);
}
EquipNPC(oCreature, iLevelUp);
SendMessageToPC(oPC, GetName(oCreature) + "'s level = " + IntToString(iLevelUp));
}