Rune_PRC8/_module/nss/vata_rogue.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

20 lines
489 B
Plaintext

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