function alarmbox_equip() /* entry=262 class_id=0x0477 slot=0x0A */
{
  set_info(0x0211, *(arg_06));
  process_exclude();
  if (!arg_0A) {
    if (World.getAlertActive()) {
      spawn FREE.slot_44(0x00000000);
    }
    local_02 = Item.getStatus(arg_06);
    if ((local_02 & 4) == 0) {
      if (Item.getMapNum(arg_06) == 0) {
        spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
        suspend;
      }
    }
    return;
  }
  else if (!World.getAlertActive()) {
    spawn FREE.slot_45(0x00000000);
    if (Item.getMapNum(arg_06) == 0) {
      spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
      suspend;
    }
  }
  return;
}
