generated from Jaysyn/ModuleTemplate
Initial upload
Initial upload.
This commit is contained in:
21
_module/nss/vata_dwarfdef.nss
Normal file
21
_module/nss/vata_dwarfdef.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "inc_arenapc"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oCreature = ArenaSummon("cs1_dwarfdef");
|
||||
int iPCLevel = GetHitDice(oPC);
|
||||
int iLevelUp = 1;
|
||||
|
||||
while (iLevelUp < iPCLevel)
|
||||
{
|
||||
if (iLevelUp > 7 && iLevelUp < 18) iLevelUp = LevelUpHenchman(oCreature, CLASS_TYPE_DWARVEN_DEFENDER, TRUE, PACKAGE_DWARVEN_DEFENDER);
|
||||
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)) + ", Dwarven Defender " + IntToString(GetLevelByClass(CLASS_TYPE_DWARVEN_DEFENDER, oCreature)));
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user