<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RanOnline Experience Generator</title>
</head>
<body>
<h2>Experience Table Generator V2 By Baby011528</h2>
<h2>Credits : <a href="https://forum.ragezone.com/members/yasir43.2000361793/" target="_blank">yasir43</a> from ragezone for the first version on php. <a href="https://forum.ragezone.com/threads/release-perfect-exp-multiplier.1223797/" target="_blank">Click Me!</a></h2>
<h2>Currently Support For Level 250 Only</h2>
<label for="expMultiplier">Enter Exp Multiplier:</label>
<input type="number" id="expMultiplier" value="5">
<button onclick="calculateExperience()">Calculate</button>
<br>
<p><strong>exptable_max</strong></p>
<textarea id="resultMax" rows="20" cols="50" readonly></textarea>
<button onclick="copyToClipboard('resultMax')">Copy Code</button>
<br><br>
<p><strong>exptable_max_2nd</strong></p>
<textarea id="resultMax2nd" rows="20" cols="50" readonly></textarea>
<button onclick="copyToClipboard('resultMax2nd')">Copy Code</button>
<script>
function calculateExperience()
{
//定義倍數
var expMultiplier = parseInt(document.getElementById('expMultiplier').value);
//ExptableMax 默認值
var exptableMax =
[
0, 170, 309, 494, 728, 1011, 1348, 1739, 2188, 2698, 3269, 3906, 4609, 5382, 6228, 7147, 8144, 9219, 10376, 11618, 12945, 14362, 15869, 17470, 19168, 20963, 22860, 24859, 26964, 29178,
47252, 50907, 54734, 58737, 62922, 67289, 71844, 76589, 81528, 86667, 92006, 97551, 103304, 109269, 115452, 121853, 128478, 135329, 142410, 149727, 157280, 165075, 173114, 181401, 189942,
198737, 207792, 217109, 226692, 236547, 296008, 308495, 321316, 334480, 347990, 361849, 376063, 390634, 405569, 420872, 436545, 452596, 469024, 485838, 503042, 520637, 538632, 557026, 575827,
595040, 642644, 694055, 749580, 809546, 874310, 944254, 1019795, 1101378, 1189489, 1284648, 1387419, 1498413, 1618286, 1747749, 1887569, 2038574, 2201660, 2377793, 2568016, 2773458, 3050804,
3264360, 3460221, 3667835, 3887905, 4121179, 4368450, 4630557, 4908390, 5202894, 5515067, 5845971, 6196730, 6568533, 6962645, 7380404, 7970836, 8409232, 8871740, 9359686, 9874469, 10417564,
10990530, 11595010, 12232735, 12905536, 13615340, 14364184, 15154214, 15987696, 16867019, 17794705, 18773414, 19805951, 20895279, 22044519, 25130752, 26387289, 27706654, 29091986, 30546586,
32073915, 33677611, 35361491, 37129566, 42327705, 45290644, 48460990, 51853259, 55482987, 59366796, 63522472, 67969045, 72726878, 77817759, 83265003, 89093553, 95330101, 102003209, 109143433,
116783473, 124958317, 144951647, 157997296, 172217052, 187716587, 204611080, 223026077, 243098424, 264977282, 283562057, 300575780, 318610327, 337726947, 357990563, 379469997, 402238197, 426372489,
451954838, 479072128, 507816456, 538285443, 570582570, 604817524, 641106576, 679572970, 720347348, 763568189, 809382281, 857945218, 943739739, 1038113713, 1141925085, 1256117593, 1444535232,
1805669040, 2257086300, 2821357875, 4232036813, 6348055219, 9522082828, 11426499394, 12569149333, 13826064266, 15208670693, 16729537762, 18402491539, 20242740692, 22267014762, 24493716238,
26943087862, 28290242255, 29563303156, 30745835283, 31821939517, 32776597703, 33596012645, 34267932898, 34781951892, 35129771411, 35481069125, 35835879816, 36194238614, 36556181000, 36921742810,
37290960239, 37663869841, 38040508539, 38420913625, 38805122761, 39193173989, 39585105728, 39980956786, 40380766354, 40784574017, 41192419757, 41604343955, 42020387394, 42440591268, 42864997181,
43293647153, 43726583624, 44163849461, 44605487955, 45051542835, 45502058263, 45957078846, 46416649634, 46880816131, 47349624292
];
//計算exptablemax
document.getElementById('resultMax').value = "";
for (var i = 0; i < exptableMax.length; i++)
{
exptableMax[i] = Math.floor(exptableMax[i] / expMultiplier);
document.getElementById('resultMax').value += exptableMax[i] + "\n";
}
//exptablemax2nd 默認值
var exptableMax2nd =
[
0, 187, 340, 543, 801, 1112, 1483, 1913, 2407, 2968, 3596, 4297, 5070, 5920, 6851, 7862, 8958, 10141, 11414, 12780, 14240, 15798, 17456, 19217, 21085, 23059, 25146, 27345, 29660, 32096,
51977, 55998, 60207, 64611, 69214, 74018, 79028, 84248, 89681, 95334, 101207, 107306, 113634, 120196, 126997, 134038, 141326, 148862, 156651, 164700, 173008, 181583, 190425, 199541, 208936,
218611, 228571, 238820, 249361, 260202, 355210, 370194, 385579, 401376, 417588, 434219, 451276, 468761, 486683, 547134, 567509, 588375, 609731, 631589, 653955, 676828, 700222, 724134, 748575,
773552, 899702, 971677, 1049412, 1133364, 1224034, 1321956, 1427713, 1541929, 1665285, 1798507, 1942387, 2097778, 2265600, 2446849, 2642597, 2854004, 3082324, 3328910, 3595222, 3882841, 4576206,
4896540, 5190332, 5501753, 5831858, 6181769, 6552675, 6945836, 7362585, 7804341, 8272601, 8768957, 9295095, 9852800, 10443968, 11070606, 11956254, 12613848, 13307610, 14039529, 15799150, 16668102,
17584848, 18552016, 19572376, 20648858, 21784544, 22982694, 24246742, 25580314, 26987230, 28471528, 30037462, 31689522, 33432446, 35271230, 40209203, 42219662, 44330646, 46547178, 48874538, 54525656,
57251939, 60114535, 63120262, 71957099, 76994095, 82383683, 88150540, 90273082, 94034461, 100036660, 108735500, 116294653, 124379308, 133025998, 142273794, 152164486, 162742766, 174056434, 186156614,
199097983, 212939019, 227742266, 242279007, 257743624, 274195345, 291697175, 310316144, 330123557, 351195274, 373611994, 397459568, 422829327, 449818433, 478530248, 509074732, 565638591, 628487323,
698319248, 775910276, 862122529, 870830837, 879627108, 888512230, 897487101, 906552628, 915709725, 924959318, 934302342, 943739739, 1038113713, 1141925085, 1256117593, 1444535232, 1805669040, 2257086300,
2821357875, 4232036813, 6348055219, 9522082828, 11426499394, 12569149333, 13826064266, 15208670693, 16729537762, 18402491539, 20242740692, 22267014762, 24493716238, 26943087862, 28290242255, 29563303156,
30745835283, 31821939517, 32776597703, 33596012645, 34267932898, 34781951892, 35129771411, 35481069125, 35835879816, 36194238614, 36556181000, 36921742810, 37290960239, 37663869841, 38040508539, 38420913625,
38805122761, 39193173989, 39585105728, 39980956786, 40380766354, 40784574017, 41192419757, 41604343955, 42020387394, 42440591268, 42864997181, 43293647153, 43726583624, 44163849461, 44605487955, 45051542835,
45502058263, 45957078846, 46416649634, 46880816131, 47349624292
];
//計算exptablemax2nd
document.getElementById('resultMax2nd').value = "";
for (var j = 0; j < exptableMax2nd.length; j++)
{
exptableMax2nd[j] = Math.floor(exptableMax2nd[j] / expMultiplier);
document.getElementById('resultMax2nd').value += exptableMax2nd[j] + "\n";
}
}
//複製代碼
function copyToClipboard(elementId)
{
var resultTextarea = document.getElementById(elementId);
resultTextarea.select();
document.execCommand('copy');
alert('Code copied to clipboard!');
}
</script>
</body>
</html>