Ejemplo n.º 1
0
            echo '
			<script type="text/javascript">
			var getFunctionsUrl = "suggest/suggest.php?keyword=";
			var startSearch = 3;
			</script><?
			<link href="suggest/suggest.css" rel="stylesheet" type="text/css">
		    <script type="text/javascript" src="suggest/suggest.js"></script>
		    <form action="admin.php?opt=main&option=functadm&obnyl&user" method="post">
			Имя игрока:<input id="keyword" name="name" type="text" size="20" onkeyup="handleKeyUp(event)"><div style="display:none;" id="scroll"><div id="suggest"></div></div>
			<br><input name="submit" type="submit" value="Обнулить игрока">
			</form></div><script>init();</script>';
        }
    } elseif (isset($_GET['autocombat'])) {
        $type = 4;
        $min_kol = 1;
        $mes = create_autocombat($type, $min_kol);
        echo $mes;
    } elseif (isset($_GET['vsadnik_update'])) {
        echo '<h3>Пересчитать всадника игрока</h3>';
        if (isset($_GET['user'])) {
            $name = $_POST['name'];
            if ($name != "") {
                $check = myquery("SELECT user_id FROM game_users WHERE name='" . $name . "'");
                if (mysql_num_rows($check) == 0) {
                    list($id) = mysql_fetch_array(myquery("SELECT user_id FROM game_users_archive WHERE name='" . $name . "'"));
                    $type = 2;
                } else {
                    list($id) = mysql_fetch_array($check);
                    $type = 1;
                }
                $i = 1;
Ejemplo n.º 2
0
function start_combat($type, $min_kol)
{
    create_autocombat($type, $min_kol);
}