Added PnP Dire Rat.

Added PnP Dire Rat.
This commit is contained in:
Jaysyn904
2021-07-21 17:48:43 -04:00
parent 552f1686c8
commit b01c5cc7db
10849 changed files with 171143 additions and 1 deletions

27
nwn_dark_sun/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);
}