Initial upload
Initial upload
This commit is contained in:
19
_module/nss/aw_ptthdestro.nss
Normal file
19
_module/nss/aw_ptthdestro.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
effect eEffect;
|
||||
eEffect = EffectDamage(10000, DAMAGE_TYPE_DIVINE, DAMAGE_POWER_ENERGY);
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oPC);
|
||||
object oTarget;
|
||||
oTarget = oPC;
|
||||
int nInt;
|
||||
nInt = GetObjectType(oTarget);
|
||||
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_BREACH), oTarget);
|
||||
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_BREACH), GetLocation(oTarget));
|
||||
eEffect = EffectDamage(10000, DAMAGE_TYPE_DIVINE, DAMAGE_POWER_ENERGY);
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, OBJECT_SELF);
|
||||
oTarget = OBJECT_SELF;
|
||||
nInt = GetObjectType(oTarget);
|
||||
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_BREACH), oTarget);
|
||||
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_BREACH), GetLocation(oTarget));
|
||||
}
|
||||
Reference in New Issue
Block a user