#include "rd_advzones" void main() { int iArea; object oPC; oPC = GetEnteringObject(); iArea = GetLocalInt(oPC,"AZCurrentArea") - 1; if (GetIsInCombat(oPC)) SendMessageToPC(oPC,"You are unable to leave the area while in combat."); else ZoneToArea(oPC,iArea); }