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

@@ -4,6 +4,8 @@
//script ac_"tagnameofitemgoeshere" (without the "")
#include "nw_i0_spells"
#include "x2_inc_switches"
#include "prc_inc_spells"
void main()
{
// Check if we have the correct event firing the script
@@ -21,8 +23,8 @@ void main()
// fill the variables
oSpellOrigin = OBJECT_SELF;
oSpellTarget = GetSpellTargetObject();
oItem = GetSpellCastItem();
oSpellTarget = PRCGetSpellTargetObject();
oItem = PRCGetSpellCastItem();
int nLevel = GetCasterLevel(OBJECT_SELF);
if (GetIsObjectValid(oItem))
@@ -36,7 +38,7 @@ void main()
}
if (!GetWeaponRanged(oWeapon) || !GetIsObjectValid(oWeapon))
{
SignalEvent(oSpellTarget,EventSpellCastAt(OBJECT_SELF,GetSpellId()));
SignalEvent(oSpellTarget,EventSpellCastAt(OBJECT_SELF,PRCGetSpellId()));
int nDamage = d10(10)+ nLevel;
effect eDamage = EffectDamage(nDamage,DAMAGE_TYPE_FIRE);
effect eVis;