Updated to PRC8
Updated to PRC8. Further function integration. Fixed NPC onDeath script. Full compile. Updated release archive.
This commit is contained in:
@@ -11,6 +11,8 @@ on the PC, I did this to keep this code lower.
|
||||
*/
|
||||
////////////////////////////////////////
|
||||
#include "x2_inc_switches"
|
||||
#include "prc_inc_spells"
|
||||
|
||||
|
||||
////////////////////////////////////////
|
||||
|
||||
@@ -64,10 +66,10 @@ void main()
|
||||
// * and it hits a target(if it is a weapon) or is being hit (if it is a piece of armor)
|
||||
// * Note that this event fires for non PC creatures as well.
|
||||
|
||||
oItem = GetSpellCastItem(); // The item triggering this spellscript
|
||||
oItem = PRCGetSpellCastItem(); // The item triggering this spellscript
|
||||
oPC = OBJECT_SELF; // The player triggering it
|
||||
oSpellOrigin = OBJECT_SELF ; // Where the spell came from
|
||||
oSpellTarget = GetSpellTargetObject(); // What the spell is aimed at
|
||||
oSpellTarget = PRCGetSpellTargetObject(); // What the spell is aimed at
|
||||
|
||||
//Your code goes here
|
||||
|
||||
@@ -162,8 +164,8 @@ void main()
|
||||
//* standard spellbooks on the item
|
||||
|
||||
oPC = OBJECT_SELF; // The player who cast the spell
|
||||
oItem = GetSpellTargetObject();// The item targeted by the spell
|
||||
iSpell = GetSpellId(); // The id of the spell that was cast
|
||||
oItem = PRCGetSpellTargetObject();// The item targeted by the spell
|
||||
iSpell = PRCGetSpellId(); // The id of the spell that was cast
|
||||
// See the list of SPELL_* constants
|
||||
|
||||
//Your code goes here
|
||||
|
Reference in New Issue
Block a user