Initial Upload
Initial Upload
This commit is contained in:
19
_module/nss/tb_petrifyenter.nss
Normal file
19
_module/nss/tb_petrifyenter.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user