Changed folder name.
Changed folder name.
This commit is contained in:
40
_module/nss/rhazhid_beat.nss
Normal file
40
_module/nss/rhazhid_beat.nss
Normal file
@@ -0,0 +1,40 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Default On Heartbeat
|
||||
//:: NW_C2_DEFAULT1
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
This script will have people perform default
|
||||
animations.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Preston Watamaniuk
|
||||
//:: Created On: Nov 23, 2001
|
||||
//:://////////////////////////////////////////////
|
||||
#include "NW_I0_GENERIC"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object enemy = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR,PLAYER_CHAR_IS_PC,OBJECT_SELF,1, CREATURE_TYPE_IS_ALIVE );
|
||||
|
||||
|
||||
if (!GetHasSpellEffect(SPELL_SHADOW_SHIELD, OBJECT_SELF)) {
|
||||
AssignCommand(OBJECT_SELF, ActionCastSpellAtObject(SPELL_SHADOW_SHIELD,OBJECT_SELF, METAMAGIC_MAXIMIZE, TRUE, 40, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (!GetHasSpellEffect(SPELL_TRUE_SEEING, OBJECT_SELF)) {
|
||||
AssignCommand(OBJECT_SELF, ActionCastSpellAtObject(SPELL_TRUE_SEEING,OBJECT_SELF, METAMAGIC_MAXIMIZE, TRUE, 40, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
|
||||
|
||||
}
|
||||
|
||||
|
||||
if(!GetIsFighting(OBJECT_SELF) || !GetIsInCombat(OBJECT_SELF)) {
|
||||
|
||||
AssignCommand(OBJECT_SELF, ActionAttack(enemy));
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user