36 lines
806 B
Plaintext
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);
|
|
}
|