void main() { int nIncrement = GetLocalInt(OBJECT_SELF, "DeleteTimer"); int nTimeSet = nIncrement + 1; SetLocalInt(OBJECT_SELF, "DeleteTimer", nTimeSet); if (GetLocalInt(OBJECT_SELF, "DeleteTimer") >= 30) { DestroyObject(OBJECT_SELF); location Loc1= GetLocation(GetWaypointByTag("birdroom1")); location Loc2= GetLocation(GetWaypointByTag("birdroom2")); location Loc3= GetLocation(GetWaypointByTag("birdroom3")); location Loc4= GetLocation(GetWaypointByTag("birdroom4")); location Loc5= GetLocation(GetWaypointByTag("birdroom5")); location Loc6= GetLocation(GetWaypointByTag("birdroom6")); location Loc7= GetLocation(GetWaypointByTag("birdroom7")); location Loc8= GetLocation(GetWaypointByTag("birdroom8")); CreateObject(OBJECT_TYPE_CREATURE, "birdroom01", Loc1, TRUE); CreateObject(OBJECT_TYPE_CREATURE, "birdroom02", Loc2, TRUE); CreateObject(OBJECT_TYPE_CREATURE, "birdroom03", Loc3, TRUE); CreateObject(OBJECT_TYPE_CREATURE, "birdroom04", Loc4, TRUE); CreateObject(OBJECT_TYPE_CREATURE, "birdroom05", Loc5, TRUE); CreateObject(OBJECT_TYPE_CREATURE, "birdroom06", Loc6, TRUE); CreateObject(OBJECT_TYPE_CREATURE, "birdroom07", Loc7, TRUE); CreateObject(OBJECT_TYPE_CREATURE, "birdroom08", Loc8, TRUE); } }