2013-04-18, 10:35 PM
Fiel Wrote:I wrote some Javascript/HTML which will do the calculation.
I uploaded some of my old calculators I had on happychinchilla.info to Southperry's static FTP. I don't think [MENTION=2054]Eos[/MENTION]; would mind.
Mob Damage
Hit Rate (this one should be wrong as they've changed the calculation)
HP Washing (is washing still allowed? I forgot)
Javascript
Code:function calcdamage()
{
var charLevel = parseInt(document.damagecalc.charLevel.value);
var mobLevel = parseInt(document.damagecalc.mobLevel.value);
var pdd = parseInt(document.damagecalc.pdd.value);
var mobAttack = parseInt(document.damagecalc.mobAttack.value);
var pddRounded = Math.floor((pdd * 0.25) + 0.5);
var pddSqrt = Math.floor(Math.sqrt(pdd * 0.25));
if(mobLevel > charLevel)
{
var v8 = 4 * (mobLevel - charLevel);
if(v8 >= pddRounded)
{
v8 = pddRounded;
}
pddRounded -= v8;
var v9 = 2 * (mobLevel - charLevel);
if(v9 >= pddSqrt)
{
v9 = pddSqrt;
}
pddSqrt -= v9;
}
document.getElementById("percbased").innerHTML = pddSqrt.toString() + "%";
var pddSqrtplusone = Math.pow(pddSqrt+1, 2) * 4;
document.getElementById("percbased").innerHTML += "<p>(+1% at " + pddSqrtplusone.toString() + " DEF)</p>";
document.getElementById("flatbased").innerHTML = pddRounded.toString();
document.getElementById("flatbased").innerHTML += "<p> </p>";
var result = mobAttack - pddRounded;
var v11 = (100.0 - pddSqrt) * mobAttack * 0.01;
if(result >= v11)
{
result = v11;
document.getElementById("flatpercchoice").innerHTML = "Percentage";
document.getElementById("damage").innerHTML = "<strong>" + Math.floor(result).toString() + "</strong>" + "<p>(" + mobAttack.toString() + " * " + (100-pddSqrt).toString() + "%" + ")</p>";
}
else
{
document.getElementById("flatpercchoice").innerHTML = "Flat";
document.getElementById("damage").innerHTML = "<strong>" + Math.floor(result).toString() + "</strong>" + "<p>(" + mobAttack.toString() + " - " + pddRounded.toString() + ")</p>";
}
if(result <= 1.0)
{
result = 1.0;
document.getElementById("damage").innerHTML = Math.floor(result).toString();
}
}
HTML
Code:[noparse]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<title>Maplestory Big Bang Mob Damage Calculator</title>
<link href="calc.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p>
Maplestory Big Bang Mob Damage Calculator - Written by Fiel from <a href="http://www.southperry.net/">Southperry.net</a>
</p>
<script type="text/javascript" src="calc.js"></script>
<form name="damagecalc" action="">
<table>
<thead>
<tr>
<td>
CHARACTER
</td>
<td>
ENEMY
</td>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="2">
<input type="button" value="Calculate" onclick="calcdamage();"/>
</td>
</tr>
<tr>
<td colspan="2">
Maximum damage received is <span id="damage">0</span>
</td>
</tr>
</tfoot>
<tbody class="calculator">
<tr>
<td>
<strong>
Level:
</strong>
<input type="text" value="0" name="charLevel" size="2" maxlength="3" />
</td>
<td>
<strong>
Level:
</strong>
<input type="text" value="0" name="mobLevel" size="2" maxlength="3" />
</td>
</tr>
<tr>
<td>
<strong>
DEF:
</strong>
<input type="text" value="0" name="pdd" size="2" maxlength="5" />
</td>
<td>
<strong>
Attack:
</strong>
<input type="text" value="0" name="mobAttack" size="2" maxlength="5" />
</td>
</tr>
</tbody>
</table>
</form>
<p>
WDEF = STR * 1.2 + (DEX + LUK) * 0.5 + INT * 0.4
</p>
<p>
MDEF = STR * 0.4 + (DEX + LUK) * 0.5 + INT * 1.2
</p>
<p>
Maximum Character Defense = 30,000
</p>
<p>
Maximum Mob Attack = 29,999
</p>
<p>
Maximum HP = 99,999
</p>
<table>
<thead>
<tr>
<td>
MOB
</td>
<td>
LEVEL
</td>
<td>
ATTACK
</td>
</tr>
</thead>
<tbody class="leveltable">
<tr>
<td>
Pink Bean
</td>
<td>
180
</td>
<td>
23100
</td>
</tr>
<tr>
<td>
Zakum (3rd body)
</td>
<td>
110
</td>
<td>
9300
</td>
</tr>
<tr>
<td>
CZak (3rd body)
</td>
<td>
140
</td>
<td>
13400
</td>
</tr>
<tr>
<td>
Horntail's Tail
</td>
<td>
160
</td>
<td>
24500
</td>
</tr>
<tr>
<td>
Skelegon
</td>
<td>
147
</td>
<td>
3047
</td>
</tr>
<tr>
<td>
Nest Golem
</td>
<td>
150
</td>
<td>
3210
</td>
</tr>
<tr>
<td>
Chief Oblivion Guardian
</td>
<td>
166
</td>
<td>
3836
</td>
</tr>
<tr>
<td>
Papulatus (Body)
</td>
<td>
125
</td>
<td>
2992
</td>
</tr>
<tr>
<td>
Pianus (Left)
</td>
<td>
110
</td>
<td>
2046
</td>
</tr>
<tr>
<td>
Lycanthrope
</td>
<td>
129
</td>
<td>
2094
</td>
</tr>
<tr>
<td>
Manon
</td>
<td>
120
</td>
<td>
2599
</td>
</tr>
</tbody>
</table>
<p>
<a href="damage.html">Mob Damage Calculator</a>
</p>
<p>
<a href="avoidrate.html">Avoid Rate Calculator</a>
</p>
<p>
<a href="hitrate.html">Hit Rate Calculator</a>
</p>
<p>
<a href="washing.html">Minimum MP Calculator</a>
</p>
</body>
</html>
[/noparse]
Is that Javascript /HTML basically just the mob damage you just linked (the one that was hosted on happychinchilla)? Because that was the one I was originally used and was getting wrong results with. That is unless you updated the calc or something recently.

