forked from Jaysyn/PRC8
Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
30
trunk/smp/xxx_fightthemec.nss
Normal file
30
trunk/smp/xxx_fightthemec.nss
Normal file
@@ -0,0 +1,30 @@
|
||||
/*:://////////////////////////////////////////////
|
||||
//:: Spell Name Fight Theme - On Heartbeat
|
||||
//:: Spell FileName XXX_S_FightThemeC
|
||||
//:://////////////////////////////////////////////
|
||||
//:: In Game Spell desctiption
|
||||
//:://////////////////////////////////////////////
|
||||
How is "one fight" determined? Well, to be exact, it is until an AOE
|
||||
placed on each person decides the person it is on is dead, or not in
|
||||
combat (!GetIsInCombat()) for whatever reason (might be moved, away, killed
|
||||
everyone ETC).
|
||||
|
||||
Heartbeat script checks the above.
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Jasperre
|
||||
//::////////////////////////////////////////////*/
|
||||
|
||||
#include "SMP_INC_SPELLS"
|
||||
|
||||
void main()
|
||||
{
|
||||
// Define ourselves.
|
||||
object oSelf = OBJECT_SELF;
|
||||
|
||||
// Check for combat, or deadness
|
||||
if(GetIsDead(oSelf) || !GetIsInCombat(oSelf))
|
||||
{
|
||||
// Remove previous effects of any type form this spell - including this VFX
|
||||
SMP_RemoveSpellEffectsFromTarget(SMP_SPELL_FIGHT_THEME, oSelf);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user