Updated to PRC8

Updated to PRC8.  Further function integration.  Fixed NPC onDeath script.   Full compile.  Updated release archive.
This commit is contained in:
Jaysyn904
2024-02-20 22:24:11 -05:00
parent ada3850bad
commit 2bb2c470e0
805 changed files with 37897 additions and 623 deletions

View File

@@ -19,12 +19,14 @@ bugfix by Grant Beaty 2002.08.31
*/
#include "NW_I0_SPELLS"
#include "prc_inc_spells"
void main()
{
//Declare major variables
effect eVis = EffectVisualEffect(VFX_DUR_ELEMENTAL_SHIELD);
int nDuration = GetCasterLevel(OBJECT_SELF);
int nMetaMagic = GetMetaMagicFeat();
int nDuration = PRCGetCasterLevel(OBJECT_SELF);
int nMetaMagic = PRCGetMetaMagicFeat();
object oTarget = OBJECT_SELF;
effect eShield = EffectRegenerate(3, 6.0);
effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE);
@@ -48,8 +50,8 @@ void main()
}
//If there is already a fire shield in effect, remove it.
if(GetHasSpellEffect(GetSpellId(), oTarget))
RemoveSpellEffects(GetSpellId(), oTarget, oTarget);
if(GetHasSpellEffect(PRCGetSpellId(), oTarget))
RemoveSpellEffects(PRCGetSpellId(), oTarget, oTarget);
//Apply the VFX impact and effects
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, RoundsToSeconds(nDuration));