Location: PHPKode > projects > PhpBlock > A9.8/modules/dungeon/init/resetgame.php
<?php
include_once "../../../site.class.php";
include_once $PATH_TO_CODE."/script/connect.php";
include_once $PATH_TO_CODE."/script/fonction.php";
include_once $PATH_TO_CODE."/script/imagemanager.class.php";
include_once $PATH_TO_CODE."/script/player.class.php";
include_once $PATH_TO_CODE."/script/zone.class.php";
include_once $PATH_TO_CODE."/script/log.class.php";
include_once $PATH_TO_CODE."/script/server.class.php";
include_once $PATH_TO_CODE."/script/disconnect.php";

include_once $PATH_TO_CODE."/modules/dungeon/objectmanager.class.php";
include_once $PATH_TO_CODE."/modules/dungeon/tick/monstercreate.class.php";

Log::getInstance()->isDebugOn = True;
?>
<html>
<body>
<?php
$res=executer("SHOW TABLES");
while($row=mysql_fetch_array($res)) {
    $locTableName = $row[0];
    if($locTableName <> "serverInfo" && $locTableName <> "playerConnection") {
        executer("DELETE FROM ".$row[0]);
    }
}
MonsterCreateTick::createMonsterPlayer();
$locPlayerId = DungeonPlayer::create(Constante::$PLAYER_FREE_LOGIN, Constante::$PLAYER_FREE_LOGIN, Constante::$PLAYER_FREE_LOGIN, Constante::$PLAYER_FREE_LOGIN, 
	"070707", true);
executer("UPDATE player SET  isLock=0 WHERE playerId=$locPlayerId");
Server::reset();

Constante::generateConstante(5, Site::$ZONE_COORD_Z_GROUND_LEVEL, 500, 500, 0, 0);
disconnect();
?>
</body>
</html>
Return current item: PhpBlock