function keypadew_use() /* entry=247 class_id=0x044C slot=0x01 */
{
  set_info(0x0207, *(arg_06));
  process_exclude();
  if (Item.getMapNum(arg_06) == 0) {
    local_01 = (Item.getStatus(arg_06) & 4);
    if (local_01 == 0) {
      if (!World.getAlertActive()) {
        spawn FREE.slot_21(pid, 0x0184, 0x00000000);
        suspend;
        spawn FREE.slot_3B(pid, 2, 0x00000000);
        suspend;
        spawn FREE.slot_21(pid, 0x0181, 0x00000000);
        suspend;
        return;
      }
      spawn KEYPAD.slot_20(pid, arg_06);
      suspend;
    }
    else {
      spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
      suspend;
    }
    return;
  }
  return;
}
