PoA_PRC8/_module/nss/hellfogspawn.nss

13 lines
536 B
Plaintext
Raw Normal View History

2022-10-07 14:20:31 -04:00
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));
} }
}