public static boolean useItemTeleport(IClientContext ctx, String destination, int tries, int... ids) {
		if (itemTeleport(ctx, ctx.combatBar.select().id(ids).poll(), destination, tries)) {
			return true;
		}

		if (ctx.hud.opened(Hud.Window.WORN_EQUIPMENT)) {
			return itemTeleport(ctx, ctx.equipment.select().id(ids).poll(), Hud.Window.WORN_EQUIPMENT, destination, tries)
					|| itemTeleport(ctx, ctx.backpack.select().id(ids).poll(), Hud.Window.BACKPACK, destination, tries);
		}

		return itemTeleport(ctx, ctx.backpack.select().id(ids).poll(), Hud.Window.BACKPACK, destination, tries)
				|| itemTeleport(ctx, ctx.equipment.select().id(ids).poll(), Hud.Window.WORN_EQUIPMENT, destination, tries);
	}