void main()
{
  object oPC = GetEnteringObject();
  // Turn on the 4 invisible gas vents and knock the PC out
  object oVent1 = GetObjectByTag("GasVent1");
  object oVent2 = GetObjectByTag("GasVent2");
  object oVent3 = GetObjectByTag("GasVent3");
  object oVent4 = GetObjectByTag("GasVent4");
  effect eAOE = EffectAreaOfEffect(AOE_PER_FOGACID, "NW_T1_GasMinoC1", "****", "****");
  location lTarget1 = GetLocation(oVent1);
  location lTarget2 = GetLocation(oVent2);
  location lTarget3 = GetLocation(oVent3);
  location lTarget4 = GetLocation(oVent4);
  float fDuration = 24.0f;
  float fKnockout = 18.0f;
  ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eAOE, lTarget1, fDuration);
  ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eAOE, lTarget2, fDuration);
  ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eAOE, lTarget3, fDuration);
  ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eAOE, lTarget4, fDuration);
  effect eKnockedout = EffectLinkEffects(EffectStunned(),EffectKnockdown());
  ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eKnockedout,oPC,fKnockout);
  if (GetIsPC(oPC) == TRUE)
  {
    FloatingTextStringOnCreature("A small panel in the ceiling opens and the room is filled with a thick green gas.",oPC,TRUE);
    SendMessageToPC(oPC,"You fall to the ground unconscious - a prisoner of the Slave Lords.");
    object oDest = GetWaypointByTag("WP_Jail");
    AssignCommand(oPC,DelayCommand(19.0f,ActionJumpToObject(oDest,FALSE)));
  }
}
