Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
68
_removed/x0_s0_stoflesh.nss
Normal file
68
_removed/x0_s0_stoflesh.nss
Normal file
@@ -0,0 +1,68 @@
|
||||
///::///////////////////////////////////////////////
|
||||
//:: Stone To Flesh
|
||||
//:: x0_s0_stoflesh
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
The target is freed of any petrify effect
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Brent
|
||||
//:: Created On: Oct 16 2002
|
||||
//:://////////////////////////////////////////////
|
||||
//:: VFX Pass By:
|
||||
|
||||
//UPDATE - Do a check to make sure that the creature being cast on
|
||||
// has not been set up to be a permanent statue.
|
||||
|
||||
#include "x2_inc_spellhook"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
/*
|
||||
Spellcast Hook Code
|
||||
Added 2003-06-20 by Georg
|
||||
If you want to make changes to all spells,
|
||||
check x2_inc_spellhook.nss to find out more
|
||||
|
||||
*/
|
||||
|
||||
if (!X2PreSpellCastCode())
|
||||
{
|
||||
// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
|
||||
return;
|
||||
}
|
||||
|
||||
// End of Spell Cast Hook
|
||||
|
||||
|
||||
//Declare major variables
|
||||
object oTarget = GetSpellTargetObject();
|
||||
|
||||
//Check to make sure the creature has not been set up to be a statue.
|
||||
if (GetLocalInt(oTarget, "NW_STATUE") != 1)
|
||||
{
|
||||
//Fire cast spell at event for the specified target
|
||||
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, 486, FALSE));
|
||||
|
||||
//Search for and remove the above negative effects
|
||||
effect eLook = GetFirstEffect(oTarget);
|
||||
|
||||
while(GetIsEffectValid(eLook))
|
||||
{
|
||||
if(GetEffectType(eLook) == EFFECT_TYPE_PETRIFY)
|
||||
{
|
||||
SetCommandable(TRUE, oTarget);
|
||||
RemoveEffect(oTarget, eLook);
|
||||
}
|
||||
eLook = GetNextEffect(oTarget);
|
||||
}
|
||||
|
||||
//Apply Linked Effect
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_DISPEL), oTarget);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user