generated from Jaysyn/ModuleTemplate
Initial upload
Initial upload.
This commit is contained in:
19
_module/nss/vata_ranger.nss
Normal file
19
_module/nss/vata_ranger.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "inc_arenapc"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oCreature = ArenaSummon("cs1_ranger");
|
||||
int iPCLevel = GetLevelByPosition(1, oPC) + GetLevelByPosition(2, oPC) + GetLevelByPosition(3, oPC);
|
||||
int iLevelUp = 1;
|
||||
|
||||
while (iLevelUp < iPCLevel)
|
||||
{
|
||||
iLevelUp = LevelUpHenchman(oCreature, CLASS_TYPE_RANGER, TRUE);
|
||||
}
|
||||
|
||||
EquipNPC(oCreature, iLevelUp);
|
||||
|
||||
SendMessageToPC(oPC, GetName(oCreature) + "'s level = " + IntToString(iLevelUp));
|
||||
}
|
||||
|
Reference in New Issue
Block a user