public static int expGacha(MapleCharacter player) {
        if (!player.haveItem(Items.GachaType.regular, 1)) {
            player.dropMessage("You do not have a Gacha ticket");
            return 0;
        }
        player.gainItem(Items.GachaType.regular, -1);
        int chance1 = (int) Math.floor(10 * Math.random());
        int lol;
        if (chance1 < 3) {
            Rebirths.giveRebirth(player, (chance1 + 1));
            return 1;
        } else if (chance1 < 5) {
            while (player.getLevel() < player.getMaxLevel()) {
                player.levelUp();
            }
            player.dropMessage("You have been leveled to max level");
            return 2;
        } else {
            for (int i = 0; i
                    < (chance1 * 10); i++) {
                if (player.getLevel() < 255) {
                    player.levelUp();
                }
            }
            player.dropMessage("You have gained " + (chance1 * 10) + " level");
            return 3;
        }
    }