Initial upload
Initial upload
This commit is contained in:
71
_module/nss/cb_reb_percieve.nss
Normal file
71
_module/nss/cb_reb_percieve.nss
Normal file
@@ -0,0 +1,71 @@
|
||||
#include "nw_i0_generic"
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetLastPerceived();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if (!GetLastPerceptionSeen()) return;
|
||||
ActionSpeakString("You come seeking niether Truth or Knowledge.... only Power and Wealth");
|
||||
|
||||
DelayCommand(4.0,ActionJumpToObject(GetObjectByTag("reb_reb")));
|
||||
|
||||
DelayCommand(7.0,ActionSpeakString("I will stike you down to the depths hell you come from!"));
|
||||
|
||||
object oCaster;
|
||||
oCaster = OBJECT_SELF;
|
||||
|
||||
object oTarget;
|
||||
oTarget = OBJECT_SELF;
|
||||
|
||||
DelayCommand(9.0,AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_CALL_LIGHTNING, oTarget, METAMAGIC_ANY, TRUE, 0, PROJECTILE_PATH_TYPE_DEFAULT, FALSE)));
|
||||
|
||||
oTarget = GetObjectByTag("reb_01");
|
||||
|
||||
int nInt;
|
||||
nInt = GetObjectType(oTarget);
|
||||
|
||||
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(12.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_MYSTICAL_EXPLOSION), oTarget));
|
||||
else DelayCommand(12.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_MYSTICAL_EXPLOSION), GetLocation(oTarget)));
|
||||
|
||||
oTarget = GetObjectByTag("reb_02");
|
||||
|
||||
|
||||
nInt = GetObjectType(oTarget);
|
||||
|
||||
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(13.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_DUR_GLYPH_OF_WARDING), oTarget));
|
||||
else DelayCommand(13.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_DUR_GLYPH_OF_WARDING), GetLocation(oTarget)));
|
||||
|
||||
oTarget = GetObjectByTag("reb_03");
|
||||
|
||||
|
||||
nInt = GetObjectType(oTarget);
|
||||
|
||||
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(14.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_DUR_GLYPH_OF_WARDING), oTarget));
|
||||
else DelayCommand(14.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_DUR_GLYPH_OF_WARDING), GetLocation(oTarget)));
|
||||
|
||||
oTarget = GetObjectByTag("reb_04");
|
||||
|
||||
|
||||
nInt = GetObjectType(oTarget);
|
||||
|
||||
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(15.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_DUR_GLYPH_OF_WARDING), oTarget));
|
||||
else DelayCommand(15.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_DUR_GLYPH_OF_WARDING), GetLocation(oTarget)));
|
||||
|
||||
|
||||
|
||||
oTarget = OBJECT_SELF;
|
||||
|
||||
DelayCommand(16.0,AdjustReputation(oPC, oTarget, -100));
|
||||
|
||||
oTarget = OBJECT_SELF;
|
||||
|
||||
DelayCommand(16.0,SetIsTemporaryEnemy(oPC, oTarget));
|
||||
|
||||
DelayCommand(16.0,AssignCommand(oTarget, ActionAttack(oPC)));
|
||||
|
||||
DelayCommand(16.0,AssignCommand(oTarget, DetermineCombatRound(oPC)));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user