Changed folder name.
Changed folder name.
This commit is contained in:
14
_module/nss/nocastingnarea.nss
Normal file
14
_module/nss/nocastingnarea.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
//This script applies spell failure 100% to all PCs who enter the area
|
||||
//This goes in a Tracks Trigger or Area Properties of the OnEnter Event.
|
||||
void main()
|
||||
{
|
||||
object oPC;
|
||||
oPC = GetEnteringObject();
|
||||
if (GetIsDM(oPC)) return;
|
||||
if (GetIsDMPossessed(oPC)) return;
|
||||
if(!GetIsPC(oPC))return;
|
||||
|
||||
effect eEffect;
|
||||
eEffect = EffectSpellFailure(100, SPELL_SCHOOL_GENERAL);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oPC);
|
||||
}
|
Reference in New Issue
Block a user