generated from Jaysyn/ModuleTemplate
Initial upload
Initial upload.
This commit is contained in:
22
_module/nss/vata_shifter.nss
Normal file
22
_module/nss/vata_shifter.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "inc_arenapc"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oCreature = ArenaSummon("cs1_shifter");
|
||||
int iPCLevel = GetLevelByPosition(1, oPC) + GetLevelByPosition(2, oPC) + GetLevelByPosition(3, oPC);
|
||||
int iLevelUp = 1;
|
||||
|
||||
while (iLevelUp < iPCLevel)
|
||||
{
|
||||
if (iLevelUp > 4 && iLevelUp < 16) iLevelUp = LevelUpHenchman(oCreature, CLASS_TYPE_SHIFTER, TRUE);
|
||||
else if (iLevelUp > 20 && iLevelUp < 36) iLevelUp = LevelUpHenchman(oCreature, CLASS_TYPE_SHIFTER, TRUE);
|
||||
else iLevelUp = LevelUpHenchman(oCreature, CLASS_TYPE_DRUID, TRUE, GetCreatureStartingPackage(oCreature));
|
||||
}
|
||||
|
||||
EquipNPC(oCreature, iLevelUp);
|
||||
|
||||
SendMessageToPC(oPC, GetName(oCreature) + "'s level = Druid " + IntToString(GetLevelByClass(CLASS_TYPE_DRUID, oCreature)) + ", Shifter " + IntToString(GetLevelByClass(CLASS_TYPE_SHIFTER, oCreature)));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user