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

20 lines
596 B
Plaintext

void main()
{
object oPC = GetEnteringObject();
if(!GetIsPC(oPC))
{
return;
}
if(GetTag(GetItemInSlot(INVENTORY_SLOT_CLOAK, oPC)) == "MedusasShawl")
{
return;
}
object oTarget = oPC;
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_GAS_EXPLOSION_EVIL), oTarget);
SendMessageToPC(oTarget, "Strangely you just stop running... Soon you realize, you've been petrified! (This lasts only 1 min so don't panic :P , find/wear cloak to avoid this.)");
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectPetrify(), oTarget, 60.0f);
}