some hero fixes

This commit is contained in:
unknown
2012-06-24 22:10:45 +03:00
parent c25adf581e
commit 97bffc0598
3 changed files with 36 additions and 5 deletions
+1 -1
View File
@@ -3455,9 +3455,9 @@ $crannyimg = "<img src=\"".GP_LOCATE."img/g/g23.gif\" height=\"20\" width=\"15\"
}else{
$database->modifyHero("health",100,$hdata['heroid']);
}
}
$database->modifyHero("lastupdate",time(),$hdata['heroid']);
}
}
if($hdata['experience'] > $hero_levels[$hdata['level']+1] && $hdata['level'] < 100){
mysql_query("UPDATE " . TB_PREFIX ."hero SET level = level + 1 WHERE heroid = '".$hdata['heroid']."'");
mysql_query("UPDATE " . TB_PREFIX ."hero SET points = points + 5 WHERE heroid = '".$hdata['heroid']."'");