it's auto get's exp stages from ots. ; )
add to htdocs with any name in format php like
stages.php
and past this code:
RESULT:
azi.
add to htdocs with any name in format php like
stages.php
and past this code:
PHP:
<?PHP
$file = "stages.xml"; // stage.xml location
$worlds = array ( "Kenthera Very Fast", "Kenthera Fast", "Kenthera RPG" ); // If server dont have multiworld system - add only 1 server name ; )
$load_file = @simplexml_load_file($file);
if($load_file){
if ($load_file->world){
for($w=0; $w<=count($load_file->world)-1; $w++){
$stages = $load_file->world[$w]->stage;
echo "<h2>Stages on ".($worlds[$w]?$worlds[$w]:"Unnamed Server")."</h2>";
for($i=0; $i<=count($stages)-1; $i++){
echo $stages[$i]["minlevel"]."".($stages[$i]["maxlevel"]?"-".$stages[$i]["maxlevel"]:"+")." = <b>".$stages[$i]["multiplier"]."x</b><br>";
}
echo "<br>";
}
}else{
$stages = $load_file->stage;
echo "<h2>Stages on ".($worlds[0]?$worlds[0]:"Unnamed Server")."</h2>";
for($i=0; $i<=count($stages)-1; $i++){
echo $stages[$i]["minlevel"]."".($stages[$i]["maxlevel"]?"-".$stages[$i]["maxlevel"]:"+")." = <b>".$stages[$i]["multiplier"]."x</b><br>";
}
}
}else{
echo "Cannot load stages.XML";
}
?>
RESULT:
Code:
Stages on Kenthera Very Fast
1-8 = 1000x
9-20 = 800x
21-50 = 600x
51-100 = 400x
101+ = 200x
Stages on Kenthera Fast
1-8 = 100x
9-20 = 80x
21-50 = 60x
51-100 = 40x
101+ = 20x
Stages on Kenthera RPG
1-8 = 10x
9-20 = 8x
21-50 = 6x
51-100 = 4x
101+ = 2x
azi.
Last edited: