Facebook killed the radio star. And by radio star, I mean the premise of distributed forums around the internet. And that got got by Instagram/SnapChat. And that got got by TikTok. Where the fuck is the internet we once knew?
0 Members and 2 Guests are viewing this topic.
<?PHP /************************* * Mob Level Calculator * * Function from WoWWiki * * Wrapper by Joe[x86] * *************************/?><HTML> <HEAD> <TITLE>Experience Calculator</TITLE> </HEAD> <BODY> <?PHP if (array_key_exists('charLevel', $_POST) && array_key_exists('mobLevel', $_POST)) { echo("At level " . $_POST['charLevel'] . " you will receive " . calculateXP($_POST['charLevel'], $_POST['mobLevel'], $_POST['elite'], $_POST['rested']) . " experience from fighting a " . $_POST['mobLevel'] . " mob (elite: " . $_POST['elite'] . ")."); } ?> <FORM METHOD="POST" ACTION="<?PHP echo($_SERVER['PHP_SELF']); ?>"> <TABLE><TBODY> <TR><TD>Character Level:</TD> <TD><INPUT NAME="charLevel" TYPE="text" /></TD></TR> <TR><TD>Mob Level:</TD> <TD><INPUT NAME="mobLevel" TYPE="text" /></TD></TR> <TR><TD>Elite:</TD> <TD><INPUT NAME="elite" TYPE="checkbox" /></TD></TR> <INPUT TYPE="SUBMIT" NAME="Calculate Experience" /> </TBODY></TABLE> </FORM> </BODY></HTML><?PHP function calculateXP($playerlevel, $moblevel, $elite, $rested = false) { if($playerlevel < $moblevel) { if($moblevel - $playerlevel > 4) $moblevel = $playerlevel + 4; $xp = ($playerlevel * 5 + 45) * (1 + 0.05 * ($moblevel - $playerlevel)); } elseif($playerlevel == $moblevel) { $xp = $playerlevel * 5 + 45; } elseif($playerlevel > $moblevel) { if($moblevel <= calculateGrayLevel($playerlevel)) $xp = 0; else { if($playerlevel >= 1 && $playerlevel <= 7) $zd = 5; elseif($playerlevel >= 8 && $playerlevel <= 9) $zd = 6; elseif($playerlevel >= 10 && $playerlevel <= 11) $zd = 7; elseif($playerlevel >= 12 && $playerlevel <= 15) $zd = 8; elseif($playerlevel >= 16 && $playerlevel <= 19) $zd = 9; elseif($playerlevel >= 20 && $playerlevel <= 29) $zd = 11; elseif($playerlevel >= 30 && $playerlevel <= 39) $zd = 12; elseif($playerlevel >= 40 && $playerlevel <= 44) $zd = 13; elseif($playerlevel >= 45 && $playerlevel <= 49) $zd = 14; elseif($playerlevel >= 50 && $playerlevel <= 54) $zd = 15; elseif($playerlevel >= 55 && $playerlevel <= 59) $zd = 16; elseif($playerlevel == 60) $zd = 17; $xp = ($playerlevel * 5 + 45) * (1 - ($playerlevel - $moblevel) / $zd); } } if($elite == true) $xp *= 2; if($rested == true) $xp *= 2; return round($xp); } /** function calculateGrayLevel($playerlevel) { if($playerlevel >= 1 && $playerlevel <= 5) return 0; elseif($playerlevel >= 6 && $playerlevel <= 39) return $playerlevel - 5 - floor($playerlevel / 10); elseif($playerlevel >= 40 && $playerlevel <= 60) return $playerlevel - 1 - floor($playerlevel / 5); } function calculateDifficulty($playerlevel, $moblevel) { $leveldiff = $moblevel - $playerlevel; if($moblevel <= calculateGrayLevel($playerlevel)) return 'Gray'; else { if($leveldiff >= 5) return 'Red'; elseif($leveldiff >= 3 && $leveldiff <= 4) return 'Orange'; elseif($leveldiff >= -2 && $leveldiff <= 2) return 'Yello'; elseif($leveldiff <= -3) return 'Green'; } } */?>
I'd personally do as Joe suggests
You might be right about that, Joe.
Fatal error: Call to undefined function calculateGrayLevel() in /home/joe/public_html/xp.php on line 49
so, the function is from wowwiki, and the html form is yours? i dont think you can claim any credit :p
At level 1 you will receive 120 experience from fighting a 60 mob (elite: on).
mutsumibear: David's coming over Sunday so we can have mad sex all day.zxdropoff: lucky youmutsumibear: I know.mutsumibear: I just pray I don't start my period before then.zxdropoff: omfgzxdropoff: stfuzxdropoff: now pleasemutsumibear: HAHAmutsumibear: I love disturbing you.
QuoteAt level 1 you will receive 120 experience from fighting a 60 mob (elite: on). How do you figure that?
Any ranged magic creature. Greater Fire/Shadow/Frost/Nature protection potion ftw.
Run with a priest and get shielded when they come near you so there might be a chance he catches the aggo.
Quote from: Krazed on February 08, 2007, 09:15:39 amAny ranged magic creature. Greater Fire/Shadow/Frost/Nature protection potion ftw.Requires level 45.Quote from: Omen on February 08, 2007, 08:54:20 amRun with a priest and get shielded when they come near you so there might be a chance he catches the aggo.Any level 60 elite could bash through Power Word: Shield rank 1 easily. Each rank has a minimum target level.