Updated to PRC8
Updated to PRC8. Further function integration. Fixed NPC onDeath script. Full compile. Updated release archive.
This commit is contained in:
@@ -64,6 +64,8 @@ Open up the No Casting Area and edit the area to see how it's set up properly.
|
||||
#include "x2_inc_switches"
|
||||
#include "nw_i0_spells"
|
||||
#include "check_host_spell"
|
||||
#include "prc_inc_spells"
|
||||
|
||||
|
||||
//See this script to learn premade functions to use in this script
|
||||
//Those functions save you time as this script is rather long!
|
||||
@@ -82,18 +84,18 @@ void main()
|
||||
{ return; }
|
||||
|
||||
//Declare Major Variables;
|
||||
int nSpell=GetSpellId();
|
||||
int nSpell=PRCGetSpellId();
|
||||
int nNonHostile = GetIsNonHostileSpell(nSpell);
|
||||
int nNonHostileItem;
|
||||
int nCastLevel = GetCasterLevel(OBJECT_SELF);
|
||||
int zInt;
|
||||
|
||||
object sTarget = GetSpellTargetObject();
|
||||
object sItem = GetSpellCastItem();
|
||||
object sTarget = PRCGetSpellTargetObject();
|
||||
object sItem = PRCGetSpellCastItem();
|
||||
object oArea = GetArea(oCaster);
|
||||
int nJail = GetLocalInt(oArea, "JAIL");
|
||||
int nPVP = GetLocalInt(oArea, "PVP");
|
||||
location sLocation = GetSpellTargetLocation();
|
||||
location sLocation = PRCGetSpellTargetLocation();
|
||||
int sClass = GetLastSpellCastClass();
|
||||
string sTN = GetTag(sItem);
|
||||
int nType;
|
||||
@@ -173,7 +175,7 @@ if(GetLocalInt(GetArea(OBJECT_SELF), "NOCAST")==2)
|
||||
if(sItem!=OBJECT_INVALID && sTN != "ammo_maker" &&
|
||||
sTN != "namingtool" && sTN != "colorwand")
|
||||
{
|
||||
nType = GetBaseItemType(GetSpellCastItem());
|
||||
nType = GetBaseItemType(PRCGetSpellCastItem());
|
||||
|
||||
if(nType != BASE_ITEM_POTIONS &&
|
||||
nType != BASE_ITEM_ENCHANTED_POTION)
|
||||
@@ -199,7 +201,7 @@ if(GetLocalInt(GetArea(OBJECT_SELF), "NOCAST")==2)
|
||||
///////////////Handling Spells Cast From Items/////////////////////////////////
|
||||
|
||||
//This is what will happen if the spell was cast from an item..
|
||||
if(GetSpellCastItem()!=OBJECT_INVALID)
|
||||
if(PRCGetSpellCastItem()!=OBJECT_INVALID)
|
||||
{
|
||||
//If the PC uses an item on a PC, and it's one of the following spells
|
||||
//Then the spell will not work on the PC, note you can add other effects
|
||||
@@ -256,7 +258,7 @@ switch (nSpell)
|
||||
|
||||
case SPELL_DROWN:
|
||||
{
|
||||
if(GetIsPC(GetSpellTargetObject()))
|
||||
if(GetIsPC(PRCGetSpellTargetObject()))
|
||||
{
|
||||
//Stop the original spell from running..
|
||||
AssignCommand(oCaster, ClearAllActions());
|
||||
@@ -1580,10 +1582,10 @@ switch (nSpell)
|
||||
case SPELL_WHATEVER: //Change this to the actual spell being cast..
|
||||
{
|
||||
//Note if the spell does area damage use this always!
|
||||
DoAreaBonusDmg(GetSpellTargetLocation());
|
||||
DoAreaBonusDmg(PRCGetSpellTargetLocation());
|
||||
|
||||
//Do a generic visual (see the "spellfunc_inc" script)
|
||||
DoAVisual(GetSpellTargetLocation());
|
||||
DoAVisual(PRCGetSpellTargetLocation());
|
||||
|
||||
//Do Positive Damage to all in area (if not resisted or saved)
|
||||
DoAreaDmg();
|
||||
@@ -1599,7 +1601,7 @@ switch (nSpell)
|
||||
case SPELL_BLAHZAM: //Change the SPELL_NAME to the actual spell being cast.
|
||||
{
|
||||
//Note if the spell does target damage use this always!
|
||||
DoBonusDmg(GetSpellTargetObject());
|
||||
DoBonusDmg(PRCGetSpellTargetObject());
|
||||
|
||||
//Do a generic targeted visual (see the "spellfunc_inc" script)
|
||||
DoTVisual();
|
||||
|
Reference in New Issue
Block a user