Initial Upload
Initial Upload
This commit is contained in:
35
_module/nss/bloodtrigger.nss
Normal file
35
_module/nss/bloodtrigger.nss
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if (GetTag(GetItemInSlot(INVENTORY_SLOT_BOOTS, oPC)) == "BootsOfBlood")
|
||||
return;
|
||||
|
||||
object oTarget;
|
||||
oTarget = oPC;
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectKnockdown(), oTarget, 60.0f);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDamage(200, DAMAGE_TYPE_MAGICAL, DAMAGE_POWER_ENERGY), oPC);
|
||||
|
||||
oTarget = oPC;
|
||||
|
||||
//Visual effects can't be applied to waypoints, so if it is a WP
|
||||
//apply to the WP's location instead
|
||||
|
||||
int nInt;
|
||||
nInt = GetObjectType(oTarget);
|
||||
|
||||
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_FLAME_M), oTarget);
|
||||
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_FLAME_M), GetLocation(oTarget));
|
||||
|
||||
oTarget = GetObjectByTag("BloodDoor");
|
||||
|
||||
SetLocked(oTarget, TRUE);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user