<?php isUser($config); $player = getUser($config); $player->town = getTown($config, $player); require_once 'functions/MainMgr.php'; $main = new MainMgr(); $main->town_main($config, $player); require_once 'functions/TownMgr.php'; $town = new TownMgr(); $town->inc_resources($config, $player->actual_town); require_once 'functions/HeroMgr.php'; $Hero = new HeroMgr(); $Hero->quest_end($config, $player); require 'header.php'; require $page; require 'footer.php';
$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><></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><></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><></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"; } ?>
ile--; if (ile > 0) { document.getElementById(tid).innerHTML = godzin + ':' + minut + ':' + sekund; setTimeout(\"liczCzas('\"+tid+\"', \"+ile+\" )\", 1000); } else { document.getElementById(tid).innerHTML = 'zakończono'; } } </script> <link rel="stylesheet" type="text/css" href="www/stylesx.css" > <?php isUser($config); $player = getUser($config); require_once 'funkcje/HeroMgr.php'; $HeroMgr = new HeroMgr(); $player = $HeroMgr->regenerate($config, $player); $HeroMgr->action($config, $player->usr_id); $HeroMgr->spells_end($config, $player); ?> <?php if ($_GET['action'] == 'map') { ?> <script type="text/javascript"> <!-- function refreshH() { var req = mint.Request(); req.OnSuccess = function () { document.getElementById("hero").innerHTML = this.responseText;}, req.OnError = function () {document.getElementById("hero").innerHTML = "Wystąpił błąd !!! </br>" + this.responseText + "</br>" + req.xmlHttpRequest.statusText ;} req.Send ("<?php
<?php ob_start(); require_once 'ustawienia/ustawienia.php'; require_once 'funkcje/podstawowe.php'; isUser($config); $player = getUser($config); require_once 'funkcje/HeroMgr.php'; $HeroMgr = new HeroMgr(); $HeroMgr->action($config, $player->usr_id); $HeroMgr->spells_end($config, $player); call("update arena_map inner join arena_users on m_who = usr_id set m_who = 0, m_status = 1 where last_action <= unix_timestamp() - 100"); call("update arena_map set m_subtype = m_refresh_who, m_refresh = 0, m_status = 0, m_fight = 0, m_type = 6 where m_refresh <= unix_timestamp() and m_refresh > 0 and m_who = 0"); if (!empty($_GET['where'])) { $_GET['where'] = intV($_GET['where']); hero_go($player->usr_id, $_GET['where']); } $pos = get_row("select m_x as x , m_y as y from arena_map where m_who = " . $player->usr_id . " limit 1"); if (empty($pos)) { hero_drop_to_map($player->usr_id, $player->last_pos_map); reload($config, 'map', ''); } $maps = get_all("select m_id, m_type, m_subtype, login, hero, m_who, mo_name from arena_map left join arena_users on m_who = usr_id left join arena_monsters on mo_id = m_subtype where m_ms_id = " . $player->last_pos_map . " and ( m_x >= " . $pos->x . " - 3) and (m_x <= " . $pos->x . " + 3) and ( m_y >= " . $pos->y . " - 3) and (m_y <= " . $pos->y . " + 3) order by m_x asc, m_y asc limit 49"); $echo = ''; if (is_array($maps)) { foreach ($maps as $map) { switch ($map->m_type) { case 2: $echo .= "<div style='width:60px; height:60px; float:left; background-image: url(www/grass.gif)'><img src='www/tree02.gif' alt='' border=0 width='60px' height='60px'/></div>"; break; case 3:
$msg = $HeroMgr->quest_go($config, $player, $_GET['go']); $player = getUser($config); $player->town = getTown($config, $player); echo $msg . "<br/>"; } if (!empty($_GET['add_skill'])) { require_once 'functions/HeroMgr.php'; $HeroMgr = new HeroMgr(); $msg = $HeroMgr->skill_add($config, $player, $_GET['add_skill']); $player = getUser($config); $player->town = getTown($config, $player); echo $msg . "<br/>"; } if (!empty($_GET['stop'])) { require_once 'functions/HeroMgr.php'; $HeroMgr = new HeroMgr(); $msg = $HeroMgr->quest_stop($config, $player); $player = getUser($config); $player->town = getTown($config, $player); echo $msg . "<br/>"; } if (!empty($_GET['type']) && $_GET['type'] == 'quests') { $quests = get_all("select * from quests"); foreach ($quests as $quest) { echo "\n\t\t<h2>" . $quest->q_name . "</h2>\n\t\t\t<div class='messageWrapper'>\n\t\t\t\t<div class='userDetails'>\n\t\t\t\t\t<div class='avatar' style='width:102px'>\n\t\t\t\t\t<img src='themes/new/quests/" . $quest->q_id . ".jpg' alt='quest' style='width:102px'></div>\n\t\t\t\t\t<div class='details'><small></small></div>\n\t\t\t\t</div>\n\n\t\t\t\t<div class='box message'>\n\t\t\t\t\t<p>Wyprawa trwa " . date("H:i:s", $quest->q_time - 3600) . "<br/></p>\n\t\t\t\t\t<p><br/>" . $quest->q_text . "</p>\n\t\t"; if ($quest->q_exp > 0) { $quest->q_exp = floor($quest->q_exp * ($player->lvl + 1) * 1.77); echo "\n\t\t\t\t\t<p><br/>Za wykonanie misji otrzymasz " . $quest->q_exp . " doświadczenia</p>\n\t\t "; } if ($quest->q_res > 0) { $quest->q_res = floor($quest->q_res * ($player->lvl + 1) * 1.77);