generated from Jaysyn/ModuleTemplate
Initial upload
Initial upload.
This commit is contained in:
21
_module/nss/vata_pdknight.nss
Normal file
21
_module/nss/vata_pdknight.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "inc_arenapc"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oCreature = ArenaSummon("cs1_knight");
|
||||
int iPCLevel = GetLevelByPosition(1, oPC) + GetLevelByPosition(2, oPC) + GetLevelByPosition(3, oPC);
|
||||
int iLevelUp = 1;
|
||||
|
||||
while (iLevelUp < iPCLevel)
|
||||
{
|
||||
if (iLevelUp > 4 && iLevelUp < 10) iLevelUp = LevelUpHenchman(oCreature, CLASS_TYPE_PURPLE_DRAGON_KNIGHT, TRUE, PACKAGE_INVALID);
|
||||
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)) + ", Purple Dragon Knight " + IntToString(GetLevelByClass(CLASS_TYPE_PURPLE_DRAGON_KNIGHT, oCreature)));
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user