todo fixed
This commit is contained in:
parent
05f858402a
commit
6d7afa131c
@ -1695,9 +1695,6 @@ function showitem($row, $type = null, $returned = false, $infOnly = false)
|
||||
$returnHTML .= " <img src=i/podarok.gif class='tooltip' title='Этот предмет вам подарил {$row['present']}. Вы не сможете передать этот предмет кому-либо еще.' alt='Этот предмет вам подарил {$row['present']}. Вы не сможете передать этот предмет кому-либо еще.'>";
|
||||
// Конец первой строчки
|
||||
|
||||
if ($row['type'] == 24 && $type != 11)
|
||||
$returnHTML .= "<br>Уровень руны: <b>" . $row['rune_level'] . "</b> (<b title='Опыт'>" . $row['rune_exp'] . "/" . $runes_exp[$row['rune_level'] + 1] . "</b>)";
|
||||
|
||||
if (!empty($row['ecost'])) {
|
||||
$returnHTML .= "<br><small style='color: green'>Предмет куплен за еврокредиты.</small>";
|
||||
} elseif (!empty($row['point'])) {
|
||||
|
22
main.php
22
main.php
@ -14,29 +14,25 @@ if ($user['battle'] != 0) {
|
||||
die();
|
||||
}
|
||||
|
||||
/// fixme заводить переменную равную нулю и целую функцию, чтобы прибавить к нулю значение? исправить!
|
||||
function sum_mf($u)
|
||||
{
|
||||
$t = 0;
|
||||
$r = mysql_fetch_array(mysql_query('SELECT SUM(`add_proc_mf`) AS `mf` FROM `inventory` WHERE `owner` = "' . $u . '" AND `dressed` = "1" AND `add_proc_mf` > 0'));
|
||||
$r = $t + $r['mf'];
|
||||
return $r;
|
||||
$sum = db::c()->query('SELECT SUM(`add_proc_mf`) AS `mf` FROM `inventory` WHERE `dressed` = 1 AND `add_proc_mf` > 0 AND `owner` = ?i', $u);
|
||||
if ($sum->fetch_assoc() > 0) return $sum;
|
||||
else return 0;
|
||||
}
|
||||
|
||||
function sum_dmg($u)
|
||||
{
|
||||
$t = 0;
|
||||
$r = mysql_fetch_array(mysql_query('SELECT SUM(`add_proc_uron`) AS `mf` FROM `inventory` WHERE `owner` = "' . $u . '" AND `dressed` = "1" AND `add_proc_uron` > 0'));
|
||||
$r = $t + $r['mf'];
|
||||
return $r;
|
||||
$sum = db::c()->query('SELECT SUM(`add_proc_uron`) AS `mf` FROM `inventory` WHERE `dressed` = 1 AND `add_proc_uron` > 0 AND `owner` = ?i', $u);
|
||||
if ($sum->fetch_assoc() > 0) return $sum;
|
||||
else return 0;
|
||||
}
|
||||
|
||||
function sum_bron($u)
|
||||
{
|
||||
$t = 0;
|
||||
$r = mysql_fetch_array(mysql_query('SELECT SUM(`add_proc_bron`) AS `mf` FROM `inventory` WHERE `owner` = "' . $u . '" AND `dressed` = "1" AND `add_proc_bron` > 0'));
|
||||
$r = $t + $r['mf'];
|
||||
return $r;
|
||||
$sum = db::c()->query('SELECT SUM(`add_proc_bron`) AS `mf` FROM `inventory` WHERE `dressed` = 1 AND `add_proc_bron` > 0 AND `owner` = ?i', $u);
|
||||
if ($sum->fetch_assoc() > 0) return $sum;
|
||||
else return 0;
|
||||
}
|
||||
|
||||
function bron_ads($a1, $a2, $a3, $a4, $col)
|
||||
|
Loading…
Reference in New Issue
Block a user