|
|
|
@ -7,6 +7,7 @@
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
include_once (ROOT_PATH . '/include/char.inc.php');
|
|
|
|
|
include_once (ROOT_PATH . '/include/arena.inc.php');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function beautifyNumericValue($value, $step){
|
|
|
|
@ -174,9 +175,9 @@ function addExpToChar($char_id, $n_exp){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function addExpToArena($user_id, $n_exp){
|
|
|
|
|
$sql = 'SELECT * from arena where besitzer = '.$user_id;
|
|
|
|
|
$qry = mysql_query($sql);
|
|
|
|
|
$arena = mysql_fetch_assoc($qry);
|
|
|
|
|
// $sql = 'SELECT * from arena where besitzer = '.$user_id;
|
|
|
|
|
// $qry = mysql_query($sql);
|
|
|
|
|
$arena = getArena($user_id);
|
|
|
|
|
$arena_exp = explode(',', $arena['exp']);
|
|
|
|
|
$arena_exp[0] += $n_exp;
|
|
|
|
|
$lvls = 0;
|
|
|
|
|