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:
56
_removed/nw_s0_wallfire.nss
Normal file
56
_removed/nw_s0_wallfire.nss
Normal file
@@ -0,0 +1,56 @@
|
||||
///::///////////////////////////////////////////////
|
||||
//:: Wall of Fire
|
||||
//:: NW_S0_WallFire.nss
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Creates a wall of fire that burns any creature
|
||||
entering the area around the wall. Those moving
|
||||
through the AOE are burned for 4d6 fire damage
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Preston Watamaniuk
|
||||
//:: Created On: July 17, 2001
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#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 Area of Effect object using the appropriate constant
|
||||
effect eAOE = EffectAreaOfEffect(AOE_PER_WALLFIRE);
|
||||
//Get the location where the wall is to be placed.
|
||||
location lTarget = GetSpellTargetLocation();
|
||||
int nDuration = GetCasterLevel(OBJECT_SELF) / 2;
|
||||
if(nDuration == 0)
|
||||
{
|
||||
nDuration = 1;
|
||||
}
|
||||
int nMetaMagic = GetMetaMagicFeat();
|
||||
|
||||
//Check fort metamagic
|
||||
if (nMetaMagic == METAMAGIC_EXTEND)
|
||||
{
|
||||
nDuration = nDuration *2; //Duration is +100%
|
||||
}
|
||||
//Create the Area of Effect Object declared above.
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eAOE, lTarget, RoundsToSeconds(nDuration));
|
||||
}
|
||||
Reference in New Issue
Block a user