if(!defined("IN_SITE")){
print "Pls stop haxing";
exit;
}
$me = $_GET["page"];
$linktome = buildlinkback($me);
?>
Welcome to the Kingsleyville General Hospital!
if(!$loggedin){
print "Excuse me? Who are you? Please go to the main gate and login before coming back here!";
} else {
switch($_GET["function"]){
case "heal";
$cost = $CharacterInfo["level"]*10;
$hptoheal = addslashes($_POST["healme"]);
if(is_numeric($hptoheal) && $hptoheal > 0){
$total = $cost * $hptoheal;
$maxHP = $CharacterInfo["max_hp"];
$calc = $CharacterInfo["now_hp"] + $hptoheal;
if($calc > $maxHP){
$calc = $maxHP;
}
if($CharacterInfo['now_hp']+1 <= $CharacterInfo['max_hp']) {
if($CharacterInfo["money"] >= $total){
updateCharacter("money", "(money - {$total})", $CharacterInfo['id']);
updateCharacter("now_hp", "(now_hp + {$hptoheal})", $CharacterInfo['id']);
print "You're healed!";
} else
print "Please get more money out of the bank before trying to come here!";
} else
print "You're fine you big baby!";
}
break;
default;
if($CharacterInfo["now_hp"] >= $CharacterInfo["max_hp"]){
?>
Get out of here! You're not in need of medial attention and we're very busy!
} else {
?>
Are you alright? You look like you need some help!
}
break;
}
}