Added NWN Dark Sun module contents

Added NWN Dark Sun module contents.
This commit is contained in:
Jaysyn904
2021-07-12 21:24:46 -04:00
parent 556224a658
commit de24f81734
10609 changed files with 146652 additions and 0 deletions

27
nwnds_module/xplevel.nss Normal file
View File

@@ -0,0 +1,27 @@
void XPLevel(int SetLevel)
{
object oSpeaker;
effect eLevel;
int Level, XP, xxx;
XP=0;
for (xxx=1; xxx<SetLevel; xxx++)
{
XP+=xxx*1000;
}
oSpeaker=GetPCSpeaker();
Level=GetXP(oSpeaker);
if (Level>=XP)
{
eLevel=EffectVisualEffect(VFX_IMP_NEGATIVE_ENERGY,FALSE);
}
else if (Level<XP)
{
eLevel=EffectVisualEffect(VFX_IMP_RESTORATION_GREATER,FALSE);
}
ApplyEffectToObject(DURATION_TYPE_INSTANT, eLevel, oSpeaker, 0.5);
SetXP(oSpeaker, XP);
}