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

@@ -17,6 +17,8 @@
//:://////////////////////////////////////////////
#include "nw_i0_spells"
#include "prc_inc_spells"
void main()
{
@@ -27,9 +29,9 @@ void main()
// fill the variables
oSpellOrigin = OBJECT_SELF;
oSpellTarget = GetSpellTargetObject();
oItem = GetSpellCastItem();
int nLevel = GetCasterLevel(OBJECT_SELF);
oSpellTarget = PRCPRCGetSpellTargetObject();
oItem = PRCGetSpellCastItem();
int nLevel = PRCGetCasterLevel(OBJECT_SELF);
if (GetIsObjectValid(oItem))
{
@@ -42,7 +44,7 @@ void main()
}
if (!GetWeaponRanged(oWeapon) || !GetIsObjectValid(oWeapon))
{
SignalEvent(oSpellTarget,EventSpellCastAt(OBJECT_SELF,GetSpellId()));
SignalEvent(oSpellTarget,EventSpellCastAt(OBJECT_SELF,PRCGetSpellId()));
int nDamage = d4(3)+ nLevel;
effect eDamage = EffectDamage(nDamage,DAMAGE_TYPE_FIRE);
effect eVis;