PoA_PRC8/module/nss/hellfogspawn.nss
Jaysyn904 128e7e59a4 Initial upload
Initial upload
2022-10-07 14:20:31 -04:00

13 lines
536 B
Plaintext

void main()
{
object a = GetEnteringObject();
if (GetIsPC(a) || (GetIsDM(a))){
if (GetLocalInt(GetModule(), "hellfog") != 2){
location hellfog1 = GetLocation(GetWaypointByTag("hellfog1"));
location hellfog2 = GetLocation(GetWaypointByTag("hellfog2"));
ApplyEffectAtLocation( DURATION_TYPE_PERMANENT, EffectAreaOfEffect(AOE_PER_FOGFIRE, "hellfog"),hellfog1);
ApplyEffectAtLocation( DURATION_TYPE_PERMANENT, EffectAreaOfEffect(AOE_PER_FOGFIRE, "hellfog"),hellfog2);
DelayCommand(1.0, SetLocalInt(GetModule(), "hellfog", 2));
} }
}