Updated to PRC8
Updated to PRC8. Further function integration. Fixed NPC onDeath script. Full compile. Updated release archive.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user