Initial upload
Initial upload
This commit is contained in:
23
_module/nss/cb_rebalter.nss
Normal file
23
_module/nss/cb_rebalter.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
FloatingTextStringOnCreature("That wasn't bright", oPC);
|
||||
|
||||
effect eEffect;
|
||||
eEffect = EffectDamage(1000, DAMAGE_TYPE_MAGICAL, DAMAGE_POWER_NORMAL);
|
||||
|
||||
DelayCommand(5.0,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_DEATH), oTarget);
|
||||
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_DEATH), GetLocation(oTarget));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user