게시판 제목 잘보고 올리세요 일반게시판에 홍보글 보이면 바로 회원 차단입니다

뮤트팩 exptable.java

컨텐츠 정보

본문

뮤트팩 만렙이 99라서 110레벨 정도로 올려보려고 하는데....exptable.java를 수정했는데 빌드가 안됩니다ㅜㅜ

/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA.
 *
 * http://www.gnu.org/copyleft/gpl.html
 */

package l1j.server.server.datatables;

import l1j.server.Config;

public final class ExpTable {
    private ExpTable() {
    }

    public static final int MAX_LEVEL = 110;

    public static final long MAX_EXP = 0xDBE4DC400L; // 940,800,000,000

    public static long getExpByLevel(int level) {
        return _expTable[level - 1];
    }

    public static long getNeedExpNextLevel(int level) {
        return getExpByLevel(level + 1) - getExpByLevel(level);
    }

    public static int getLevelByExp(long exp) {
        int level;
        for (level = 1; level < _expTable.length; level++) {
            if (exp < _expTable[level]) {
                break;
            }
        }
        return Math.min(level, MAX_LEVEL);
    }

    public static int getExpPercentage(int level, long exp) {
        return (int) (100.0 * ((double) (exp - getExpByLevel(level)) / (double) getNeedExpNextLevel(level)));
    }

    public static double 경험퍼센트(int level, long exp) {
        return (((double) getNeedExpNextLevel(level) - getNeedExpNextLevel(level - 1)) / (double) exp) * 100.0;
    }

    public static double getPenaltyRate(int level) {
        if (level < 50) {
            return 100000.0;
        }
        double expPenalty = 1.0;
        expPenalty = 1.0 / _expPenalty[level - 50];
        return expPenalty;
    }

    public static void expPenaltyReLoad() {
        int[] a = {
            Config.LV50_EXP, Config.LV51_EXP, Config.LV52_EXP, Config.LV53_EXP, Config.LV54_EXP,
            Config.LV55_EXP, Config.LV56_EXP, Config.LV57_EXP, Config.LV58_EXP, Config.LV59_EXP,
            Config.LV60_EXP, Config.LV61_EXP, Config.LV62_EXP, Config.LV63_EXP, Config.LV64_EXP,
            Config.LV65_EXP, Config.LV66_EXP, Config.LV67_EXP, Config.LV68_EXP, Config.LV69_EXP,
            Config.LV70_EXP, Config.LV71_EXP, Config.LV72_EXP, Config.LV73_EXP, Config.LV74_EXP,
            Config.LV75_EXP, Config.LV76_EXP, Config.LV77_EXP, Config.LV78_EXP, Config.LV79_EXP,
            Config.LV80_EXP, Config.LV81_EXP, Config.LV82_EXP, Config.LV83_EXP, Config.LV84_EXP,
            Config.LV85_EXP, Config.LV86_EXP, Config.LV87_EXP, Config.LV88_EXP, Config.LV89_EXP,
            Config.LV90_EXP, Config.LV91_EXP, Config.LV92_EXP, Config.LV93_EXP, Config.LV94_EXP,
            Config.LV95_EXP, Config.LV96_EXP, Config.LV97_EXP, Config.LV98_EXP, Config.LV99_EXP,
            Config.LV100_EXP, Config.LV101_EXP, Config.LV102_EXP, Config.LV103_EXP ,Config.LV104_EXP,
            Config.LV105_EXP, Config.LV106_EXP, Config.LV107_EXP, Config.LV108_EXP, Config.LV109_EXP,
            Config.LV110_EXP
        };
        for (int i = 0; i < _expPenalty.length; i++) {
            _expPenalty[i] = a[i];
        }
    }

    private static final long[] _expTable = {
        0L, 125L, 300L, 500L, 750L, 1296L, 2401L, 4096L, 6581L, 10000L,
        14661L, 20756L, 28581L, 38436L, 50645L, 0x10014L, 0x14655L, 0x19a24L, 0x1fd25L, 0x27114L,
        0x2f7c5L, 0x39324L, 0x44535L, 0x51010L, 0x5f5f1L, 0x6f920L, 0x81c01L, 0x96110L, 0xacae1L,
        0xc5c20L, 0xe1791L, 0x100010L, 0x121891L, 0x146420L, 0x16e5e1L, 0x19a110L, 0x1c9901L,
        0x1fd120L, 0x234cf1L, 0x271010L, 0x2b1e31L, 0x2f7b21L, 0x342ac2L, 0x393111L, 0x3e9222L,
        0x49b332L, 0x60b772L, 0x960cd1L, 0x12d4c4eL, 0x3539b92L, 0x579ead6L, 0x7a03a1aL,
        0x9c6895eL, 0xbecd8a2L, 0xe1327e6L, 0x1039772aL, 0x125fc66eL, 0x148615b2L, 0x16ac64f6L,
        0x18d2b43aL, 0x1af9037eL, 0x1d1f52c2L, 0x1f45a206L, 0x216bf14aL, 0x2392408eL, 0x25b88fd2L,
        0x27dedf16L, 0x2a052e5aL, 0x2c2b7d9eL, 0x2e51cce2L, 0x30781c26L, 0x329e6b6aL, 0x34c4baaeL,
        0x36eb09f2L, 0x39115936L, 0x3b37a87aL, 0x3d5df7beL, 0x3f844702L, 0x41aa9646L, 0x43d0e58aL,
        0x45f734ceL, 0x481d8412L, 0x4a43d356L, 0x4c6a229aL, 0x4e9071deL, 0x50b6c122L, 0x52dd1066L,
        0x55035faaL, 0x5729aeeeL, 0x594ffe32L, 0x5b764d76L, 0x5d9c9cbaL, 0x5fc2ebfeL, 0x61e93b42L,
        0x640f8a86L, 0x6635d9caL, 0x685c290eL, 0x6a827852L, 0x6ca8c796L, 0x6ecf16daL, // 99
        0x940000000L, 0x1280000000L, 0x1900000000L, 0x2200000000L, 0x2C00000000L,
        0x3800000000L, 0x4600000000L, 0x5600000000L, 0x6800000000L, 0x7C00000000L,
        0xDBE4DC400L // 940800000000 (110레벨)
    };

    public static int[] _expPenalty = {
        Config.LV50_EXP, Config.LV51_EXP, Config.LV52_EXP, Config.LV53_EXP, Config.LV54_EXP,
        Config.LV55_EXP, Config.LV56_EXP, Config.LV57_EXP, Config.LV58_EXP, Config.LV59_EXP,
        Config.LV60_EXP, Config.LV61_EXP, Config.LV62_EXP, Config.LV63_EXP, Config.LV64_EXP,
        Config.LV65_EXP, Config.LV66_EXP, Config.LV67_EXP, Config.LV68_EXP, Config.LV69_EXP,
        Config.LV70_EXP, Config.LV71_EXP, Config.LV72_EXP, Config.LV73_EXP, Config.LV74_EXP,
        Config.LV75_EXP, Config.LV76_EXP, Config.LV77_EXP, Config.LV78_EXP, Config.LV79_EXP,
        Config.LV80_EXP, Config.LV81_EXP, Config.LV82_EXP, Config.LV83_EXP, Config.LV84_EXP,
        Config.LV85_EXP, Config.LV86_EXP, Config.LV87_EXP, Config.LV88_EXP, Config.LV89_EXP,
        Config.LV90_EXP, Config.LV91_EXP, Config.LV92_EXP, Config.LV93_EXP, Config.LV94_EXP,
        Config.LV95_EXP, Config.LV96_EXP, Config.LV97_EXP, Config.LV98_EXP, Config.LV99_EXP,
        Config.LV100_EXP, Config.LV101_EXP, Config.LV102_EXP, Config.LV103_EXP ,Config.LV104_EXP,
        Config.LV105_EXP, Config.LV106_EXP, Config.LV107_EXP, Config.LV108_EXP, Config.LV109_EXP,
        Config.LV110_EXP
    };
}

관련자료

댓글 0
등록된 댓글이 없습니다.
전체 12 / 1 페이지
번호
제목
이름

포인트 랭킹


알림 0