Amon_PRC8/_module/nss/henchreplace.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

16 lines
561 B
Plaintext

#include "hench_i0_henlvl"
int StartingConditional()
{
float fAuldarVersion = GetLocalFloat(OBJECT_SELF,"AuldarVersion");
ExecuteScript("henchauldar",OBJECT_SELF);
// Auldar: Modified so if the henchman can already levelup, the "upgrade" option does not show up.
if (fAuldarVersion != GetLocalFloat(OBJECT_SELF,"AuldarVersion") && !(GetCanLevelUp(GetPCSpeaker())))
{
SetLocalFloat(OBJECT_SELF,"AuldarVersion",fAuldarVersion);
return TRUE;
}
SetLocalFloat(OBJECT_SELF,"AuldarVersion",fAuldarVersion);
return FALSE;
}