function npctrig_slot_20() /* entry=191 class_id=0x0363 slot=0x20 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    typeNpc, /* [BP+0Ah] type=0x69 */
    n, /* [BP-02h] type=0x24 */
    item, /* [BP-04h] type=0x24 */
    item2; /* [BP-06h] type=0x24 */

  set_info(0x0001, *(arg_06));
  /* loop_selector item in nearby_items(shape=TELEPORTER_LIGHTS, origin=arg_06) */
  while (!condition) {
    item2 = item;
    /* loopnext  */
  }
  if (!item2) {
    spawn NPC.slot_23(pid, n);
    suspend;
    if (getTargetNPCNumMaybe() == 0) {
      return;
    }
  }
  return;
}
