Well, i had nothing to do and with my small knowledge in php i made a working exp calculator..
here are the scripts :
After
Add This
Screenshot of the calculator.
Btw, it looks better when you use it.. JPEG SUX!
Leave your comments!
here are the scripts :
PHP:
<?php
//By Leiken at Otland.net
$ptitle= "Experience Calculator - $cfg[server_name]";
?>
<body background="http://gallery.artofgregmartin.com/tuts_arts/stars_images/01.jpg">
<HR color="#0000ff">
<HR color="#0000ff">
<HR color="#0000ff">
<HR color="#0000ff">
<HR color="#0000ff">
<HR color="#0000ff">
<HR color="#0000ff">
<HR color="#0000ff">
<b>
<div id="content">
<center/> <font size=10><font color="red"><b>Experience Calculator </b></font>
<div class="mid">
<center>
<SCRIPT language="JavaScript" type="text/javascript">
<!--
function XPCalc()
{
var XP = 0;
var lvl;
var x;
var CurXP=0;
lvl = window.document.XP.Level.value;
x = ((50/3)*Math.pow(lvl,3))-(100*Math.pow(lvl,2))+((850/3)*lvl)-200-CurXP;
x = Math.floor(x);
XP = +x;
window.document.XP.Display.value = XP;
}
//-->
</SCRIPT>
<form name="XP" action="#">
<br><font color="green"><b>Level</b></font>: <input type="text" name="Level" class="form" size="3"> <font color="blue"><b>Experience</b></font>: <input type="text" name="Display" class="form" size="10">
<input type="button" value="Calculate" name="Calculate" onClick="XPCalc();" class="button"><input type="hidden" value="Calculate" Name="Calculate">
</form>
</center>
</div>
<div class="bot"></div>
</div>
</b>
<HR color="#0000ff">
<HR color="#0000ff">
<HR color="#0000ff">
<HR color="#0000ff">
<HR color="#0000ff">
<HR color="#0000ff">
<HR color="#0000ff">
<HR color="#0000ff">
<br/>
<br/>
<center/> <font size=3><font color="white"><b>Experience Calculator By Leiken @ OTLAND.NET </b></font>
<?
After
PHP:
case "highscores";
$topic = "Highscores";
$subtopic = "highscores";
include("highscores.php");
break;
Add This
PHP:
case "calculator";
$topic = "Exp Calculator";
$subtopic = "calculate";
include("calc.php");
break;
Screenshot of the calculator.
Btw, it looks better when you use it.. JPEG SUX!
Leave your comments!