Example #1
0
                $rounds .= $object->mo_name . " uderza i zadaje " . $dam . " obrażeń <br/>";
                if ($object->mo_life < 1) {
                    $rounds .= $player->login . " pada martwy <br/>";
                }
            }
        }
        if ($player->life < 1) {
            $player->life = 0;
            $rounds .= "przegrałeś...";
            call("update arena_users set life = " . $player->life . " where usr_id = " . $player->usr_id);
            call("update arena_map set m_fight = 0 where m_id = " . $_GET['mid'] . " limit 1");
        } else {
            $rounds .= "wygrałeś i zdobyłeś: " . $object->mo_exp . " doświadczenia oraz " . $object->mo_gold . " monet<br/>(musisz przeładować okno, żeby zobaczyć efekt na pasku danych)";
            call("update arena_users set life = " . $player->life . " where usr_id = " . $player->usr_id);
            call("update arena_map set m_type = 0, m_status = 1, m_fight = 0, m_refresh = unix_timestamp() + 300, m_refresh_who = " . $object->mo_id . " where m_id = " . $_GET['mid'] . " limit 1");
            require_once 'funkcje/HeroMgr.php';
            $HeroMgr = new HeroMgr();
            $HeroMgr->add_exp($config, $player, $object->mo_exp);
            $HeroMgr->gold($config, $player->usr_id, $object->mo_gold);
        }
        echo "\n\t\t\t\t<div class='highslide-header'><b>" . $object->mo_name . "</b> [esc - wyjście]\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li class='highslide-move'>\n\t\t\t\t\t\t\t<a style='color:#000000'  href='#' title='przesuń' onclick='return false'>\n\t\t\t\t\t\t\t\t<span>&lt;&gt;</span>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li class='highslide-close'>\n\t\t\t\t\t\t\t<a style='color:#000000'  href='#' title='zamknij' onclick='hs.height = 120; hs.width = 220; return hs.close(this)'>\n\t\t\t\t\t\t\t\t<span>zamknij</span>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t" . $rounds;
    } else {
        echo "\n\t\t\t\t<div class='highslide-header'><b>pusto</b> [esc - wyjście]\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li class='highslide-move'>\n\t\t\t\t\t\t\t<a style='color:#000000'  href='#' title='przesuń' onclick='return false'>\n\t\t\t\t\t\t\t\t<span>&lt;&gt;</span>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li class='highslide-close'>\n\t\t\t\t\t\t\t<a style='color:#000000'  href='#' title='zamknij' onclick='hs.height = 120; hs.width = 220; return hs.close(this)'>\n\t\t\t\t\t\t\t\t<span>zamknij</span>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t";
    }
} else {
    echo "\n\t\t\t\t<div class='highslide-header'><b>pusto...</b> [esc - wyjście]\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li class='highslide-move'>\n\t\t\t\t\t\t\t<a style='color:#000000'  href='#' title='przesuń' onclick='return false'>\n\t\t\t\t\t\t\t\t<span>&lt;&gt;</span>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li class='highslide-close'>\n\t\t\t\t\t\t\t<a style='color:#000000'  href='#' title='zamknij' onclick='hs.height = 120; hs.width = 220; return hs.close(this)'>\n\t\t\t\t\t\t\t\t<span>zamknij</span>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t";
}
?>