Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
41
_module/nss/mod_levelup.nss
Normal file
41
_module/nss/mod_levelup.nss
Normal file
@@ -0,0 +1,41 @@
|
||||
//#include "x0_i0_henchman"
|
||||
#include "rd_level"
|
||||
//#include "prc_x2_itemprop"
|
||||
#include "rd_treasure"
|
||||
#include "utl_i_sqluuid"
|
||||
|
||||
void LevelUpHench(object oPC);
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCLevellingUp();
|
||||
LevelUpHench(oPC);
|
||||
|
||||
if (SQLocalsUUID_GetInt(oPC,"SuperPowers") > 0)
|
||||
CreateSuperPowers(oPC);
|
||||
if (SQLocalsUUID_GetInt(oPC,"SpecialPowers") > 0)
|
||||
CreateSpecialPowers(oPC);
|
||||
if (SQLocalsUUID_GetInt(oPC,"EvilPath") > 0)
|
||||
CreateEvilPowers(oPC);
|
||||
|
||||
}
|
||||
|
||||
void LevelUpHench(object oPC)
|
||||
{
|
||||
int iIndex;
|
||||
object oHench;
|
||||
|
||||
iIndex = 1;
|
||||
while (iIndex < 7)
|
||||
{
|
||||
oHench = GetHenchman(oPC,iIndex);
|
||||
if (GetIsObjectValid(oHench))
|
||||
{
|
||||
if (GetTag(oHench) == GetLocalString(oPC,"Henchman"))
|
||||
LevelMob(oHench,1);
|
||||
if (GetTag(oHench) == "en3_spiritfriend")
|
||||
LevelMob(oHench,1);
|
||||
}
|
||||
iIndex++;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user