LoD_PRC8/_module/nss/tb_bloodtrigger.nss
Jaysyn904 94990edc60 Initial Upload
Initial Upload
2023-09-21 21:20:34 -04:00

36 lines
806 B
Plaintext

void main()
{
object oPC = GetEnteringObject();
if(!GetIsPC(oPC))
{
return;
}
if(GetTag(GetItemInSlot(INVENTORY_SLOT_BOOTS, oPC)) == "BootsOfBlood")
{
return;
}
object oTarget = oPC;
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectKnockdown(), oTarget, 60.0f);
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDamage(200, DAMAGE_TYPE_MAGICAL, DAMAGE_POWER_ENERGY), oPC);
int 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);
}