20 lines
795 B
PHP
20 lines
795 B
PHP
<?php
|
|
|
|
const GAME = true;
|
|
|
|
include('_incl_data/__config.php');
|
|
include('_incl_data/class/__db_connect.php');
|
|
|
|
$sp = mysql_query(
|
|
'SELECT `u`.*,`s`.*,`u`.`id`,`s`.`id` FROM `users` AS `u` LEFT JOIN `stats` AS `s` ON ( `s`.`id` = `u`.`id` AND `s`.`bot` = 0 ) WHERE `login` = "Crowley"'
|
|
);
|
|
while ($pl = mysql_fetch_array($sp)) {
|
|
$last_dnow = mysql_fetch_array(mysql_query('SELECT * FROM `save_dungeon` WHERE `uid` = "' . $pl['id'] . '"'));
|
|
if (isset($last_dnow['id'])) {
|
|
mysql_query('UPDATE `users` SET `room` = "405" WHERE `id` = "' . $last_dnow['uid'] . '"');
|
|
mysql_query(
|
|
'UPDATE `stats` SET `dnow` = "' . $last_dnow['dnow'] . '",`x` = "' . $last_dnow['x'] . '",`y` = "' . $last_dnow['y'] . '" WHERE `id` = "' . $last_dnow['uid'] . '"'
|
|
);
|
|
}
|
|
}
|