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

22 lines
742 B
Plaintext

#include "inc_arenapc"
void main()
{
object oPC = GetPCSpeaker();
object oCreature = ArenaSummon("cs1_blackguard");
int iPCLevel = GetHitDice(oPC);
int iLevelUp = 1;
while (iLevelUp < iPCLevel)
{
if (iLevelUp > 7 && iLevelUp < 18) iLevelUp = LevelUpHenchman(oCreature, CLASS_TYPE_BLACKGUARD, TRUE, PACKAGE_BLACKGUARD);
else iLevelUp = LevelUpHenchman(oCreature, CLASS_TYPE_BARBARIAN, TRUE, GetCreatureStartingPackage(oCreature));
}
EquipNPC(oCreature, iLevelUp);
SendMessageToPC(oPC, GetName(oCreature) + "'s level = Barbarian " + IntToString(GetLevelByClass(CLASS_TYPE_BARBARIAN, oCreature)) + ", Blackguard " + IntToString(GetLevelByClass(CLASS_TYPE_BLACKGUARD, oCreature)));
}