mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2026-01-17 17:46:28 -05:00
Updated Release Archive
Updated Release Archive. Fixed Mage-killer prereqs. Removed old LETO & ConvoCC related files. Added organized spell scroll store. Fixed Gloura spellbook. Various TLK fixes. Reorganized Repo. Removed invalid user folders. Added DocGen back in.
This commit is contained in:
32
nwn/trunk/smp/phs_s_alarm2a.nss
Normal file
32
nwn/trunk/smp/phs_s_alarm2a.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
/*:://////////////////////////////////////////////
|
||||
//:: Spell Name Alarm : Mental : On Enter
|
||||
//:: Spell FileName phs_s_alarm2a
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Spell Effects Applied / Notes
|
||||
//:://////////////////////////////////////////////
|
||||
Message version. Caster must be in area and a message is sent to them.
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Jasperre
|
||||
//::////////////////////////////////////////////*/
|
||||
|
||||
#include "PHS_INC_SPELLS"
|
||||
|
||||
void main()
|
||||
{
|
||||
// AOE check
|
||||
if(!PHS_CheckAOECreator()) return;
|
||||
|
||||
//Declare major variables
|
||||
object oTarget = GetEnteringObject();
|
||||
object oCreator = GetAreaOfEffectCreator();
|
||||
if(!GetFactionEqual(oTarget, oCreator))
|
||||
{
|
||||
// Only display a message if we are in the same area as the creator!
|
||||
if(GetArea(oCreator) == GetArea(OBJECT_SELF))
|
||||
{
|
||||
string sMessage = "Your mental alarm has been set off!";
|
||||
SpeakString("I_WAS_ATTACKED", TALKVOLUME_SILENT_TALK);
|
||||
SendMessageToPC(oCreator, sMessage);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user