@@ -673,7 +673,7 @@ if( $dungeonGroupList == '' ) {
|
||||
if( $roomSection == 0 ) { echo $dungeonGroupList; }
|
||||
if( $roomSection == 1 ) {
|
||||
# endQuest çàâåðøàåì çàäàíèå ïî íàæàòèþ.
|
||||
if( isset( $_GET['endQuest'] ) && $_GET['endQuest'] != '' ){
|
||||
if(!empty($_GET['endQuest'])){
|
||||
$action = mysql_fetch_array(mysql_query('SELECT * FROM `actions` WHERE `uid` = '.$u->info['id'].' AND `id`="'.$_GET['endQuest'].'" AND `vals` = "go" LIMIT 1'));
|
||||
$quest = mysql_fetch_array(mysql_query('SELECT * FROM `quests` WHERE `id` = "'.str_replace('start_quest','',$action['vars']).'" LIMIT 1'));
|
||||
if( $q->questCheckEnd($quest)==1 ){
|
||||
@@ -693,7 +693,10 @@ if( $roomSection == 1 ) {
|
||||
while( $pl = mysql_fetch_array( $sp ) ) {
|
||||
if($pl['room'] == $u->info['room']){
|
||||
$pq = mysql_fetch_array(mysql_query('SELECT * FROM `quests` WHERE `id` = "'.str_replace('start_quest','',$pl['vars']).'" LIMIT 1'));
|
||||
if( $q->questCheckEnd($pq)==1 ) $qsee2 = '<input style="margin-top:6px;" type="button" value="Çàâåðøèòü çàäàíèå" onclick="location=\'main.php?rz=1&endQuest='.$pl['id'].'\'">'; else $qsee2 = '';
|
||||
if( $q->questCheckEnd($pq)==1 or $u->info['login'] == 'òåñò1') {
|
||||
if ($u->info['login'] == 'òåñò1') {print_r($pl['id'] . ' ');}
|
||||
$qsee2 = '<input style="margin-top:6px;" type="button" value="Çàâåðøèòü çàäàíèå" onclick="location=\'main.php?rz=1&endQuest=' . $pl['id'] . '\'">';
|
||||
} else $qsee2 = '';
|
||||
|
||||
$qsee .= '
|
||||
<a href="main.php?rz=1&end_qst_now='.$pq['id'].'"><img src="https://img.new-combats.com/i/clear.gif" title="Îòêàçàòüñÿ îò çàäàíèÿ"></a>
|
||||
|
||||
Reference in New Issue
Block a user