game/_incl_data/class/quest/dailyquestend.php
2022-06-07 00:30:34 +03:00

205 lines
7.1 KiB
PHP

<?
/*
1.Óáèòü òðóïîæîðà 2 êîëëè÷åñòâî óáèéñòâ
2.Ïîó÷àñòâîâàòü â õàîòè÷åñêîì áîþ 5 ðàç
3.Ñïóñòèòñÿ â êàòàêîìáû ( ñþäà æå ìîæíî êàæèñü ñäåëàòü òàê ÷òîáû íå êàòû áûëè à ðàíäîìíî ñàíä,ñàí,ýì è ò.ä. )
4.íàáðàòü 100 òûñÿ÷ îïûòà
5.îòêðûòü 1 ñóíäóê
6.ïîñåòèòü èçëîì õàîñà 1 ðàçà
7.ðàñïëàâèòü 10 âåùåé â õðàìå çíàíèé
8.ïîó÷àñòâîâàòü â áàøíå ñìåðòè 1/3/5 ðàç
$txt .= '<br><b><font color=red>Âû óæå ïîëó÷èëè </b></font>';
*/
$test = mysql_fetch_array(mysql_query('SELECT * FROM `actions` WHERE `uid` = "'.$u->info['id'].'" AND `vars`= "day_quest" LIMIT 1'));
if (!isset($test['id']))
{
$txt .= '<br><b><font color=red>Ó òåáÿ íåò çàäàíèÿ ìèëîê, íå þëè! Õîòü áàáóøêà ïëîõî âèäèò íî áàáóøêà õîðîøî ïîìíèò.</b></font>';
}
else
{
$zadID=$test['vals'];
if ($zadID==1)
{
//$end_trup
$check = mysql_query('SELECT * FROM `actions` WHERE `uid` = "'.$u->info['id'].'" AND `vars`= "end_trup" AND `time` > "'.$test['time'].'"');
$i=0;
while($pl = mysql_fetch_array($check)){$i++;}
if ($i>1){
$txt .= '<br><b><font color=black>Ïîðàäîâàë áàáóøêó! Óáèë èïîñòàòà! Ìîæåò íà ïå÷è ïîëåæèì? - Íåò, íó äåðæè æåòîí÷èê!</b></font>';
mysql_query('UPDATE `actions` SET `vals`= 0 WHERE `uid` = "'.$u->info['id'].'" AND `vars`= "day_quest"');
if ($u->info['level'] < 12)
{
$u->addItem(10020,$u->info['id'],'|sudba='.$u->info['login']);
}
else
{
$u->addItem(6470,$u->info['id'],'|sudba='.$u->info['login']);
}
mysql_query('UPDATE `users_achiv` SET `zb`= `zb`+1 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$u->repexp_add($u->info['id'],50); //Ðåïóòàöèÿ +20
}
else
{
$txt .= '<br><b><font color=black>Ãîâîðÿò â Capital City çàâåëèñü âñÿêèå Òðóïîæîðû. Ïîéäè äà óáåé èõ ïàðó ðàç, ïîðàäóé áàáóøêó</b></font>';
}
}elseif($zadID==2)
{
$check = mysql_query('SELECT * FROM `actions` WHERE `uid` = "'.$u->info['id'].'" AND `vars`= "end_xaot" AND `time` > "'.$test['time'].'"');
$i=0;
while($pl = mysql_fetch_array($check)){$i++;}
if ($i>9){
$txt .= '<br><b><font color=black>Ïîðàäîâàë áàáóøêó! Ïîó÷àñòâîâàë â áîÿõ! À òî÷íî ïîêóøàòü íå õî÷åøü? - Íåò, íó äåðæè æåòîí÷èê!</b></font>';
mysql_query('UPDATE `actions` SET `vals`= 0 WHERE `uid` = "'.$u->info['id'].'" AND `vars`= "day_quest"');
if ($u->info['level'] < 12)
{
$u->addItem(10020,$u->info['id'],'|sudba='.$u->info['login']);
}
else
{
$u->addItem(6470,$u->info['id'],'|sudba='.$u->info['login']);
}
mysql_query('UPDATE `users_achiv` SET `zb`= `zb`+1 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$u->repexp_add($u->info['id'],50); //Ðåïóòàöèÿ +20
}
else
{
$txt .= '<br><b><font color=black>Ïîêàæè íà ÷òî ñïîñîáåí! Ïîó÷àñòâóé â 10 õàîòè÷åñêèõ áîÿõ!</b></font>';
}
// $end_xaot;
}elseif($zadID==3)
{
$check = mysql_query('SELECT * FROM `actions` WHERE `uid` = "'.$u->info['id'].'" AND `vars`= "psh0" AND `time` > "'.$test['time'].'"');
$i=0;
while($pl = mysql_fetch_array($check)){$i++;}
if ($i>1){
$txt .= '<br><b><font color=black>Ïîðàäîâàë áàáóøêó! Õîðîøèé çàïàõ! À òî÷íî ïîêóøàòü íå õî÷åøü? - Íåò, íó äåðæè æåòîí÷èê!</b></font>';
mysql_query('UPDATE `actions` SET `vals`= 0 WHERE `uid` = "'.$u->info['id'].'" AND `vars`= "day_quest"');
if ($u->info['level'] < 12)
{
$u->addItem(10020,$u->info['id'],'|sudba='.$u->info['login']);
}
else
{
$u->addItem(6470,$u->info['id'],'|sudba='.$u->info['login']);
}
mysql_query('UPDATE `users_achiv` SET `zb`= `zb`+1 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$u->repexp_add($u->info['id'],50); //Ðåïóòàöèÿ +20
}
else
{
$txt .= '<br><b><font color=black>Íåîáõîäèìî èññëåäîâàòü äëÿ áàáóøêè äâà ïîäçåìåëèÿ, åé î÷åíü èíòåðåñíî ÷òî òàì âíóòðè!</b></font>';
}
}elseif($zadID==4)
{
if (($u->info['exp']-$test['val'])>100000){
$txt .= '<br><b><font color=black>Ïîðàäîâàë áàáóøêó! Ïîäðîñ,Ïîäðîñ! äåðæè æåòîí÷èê!</b></font>';
mysql_query('UPDATE `actions` SET `vals`= 0 WHERE `uid` = "'.$u->info['id'].'" AND `vars`= "day_quest"');
if ($u->info['level'] < 12)
{
$u->addItem(10020,$u->info['id'],'|sudba='.$u->info['login']);
}
else
{
$u->addItem(6470,$u->info['id'],'|sudba='.$u->info['login']);
}
mysql_query('UPDATE `users_achiv` SET `zb`= `zb`+1 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$u->repexp_add($u->info['id'],50); //Ðåïóòàöèÿ +20
}
else
{
$txt .= '<br><b><font color=black>Ñðàçèñü âî ìíîãèõ áîÿõ è ïîëó÷è 100000 îïûòà!</b></font>';
}
}elseif($zadID==5)
{
$check = mysql_query('SELECT * FROM `actions` WHERE `uid` = "'.$u->info['id'].'" AND `vars`= "trup_sun" AND `time` > "'.$test['time'].'"');
$i=0;
while($pl = mysql_fetch_array($check)){$i++;}
if ($i>0){
$txt .= '<br><b><font color=black>Ïîðàäîâàë áàáóøêó! Ñóíäó÷åê óäà÷ó ïðèíåñ? Íåò? Íó äåðæè æåòîí÷èê!</b></font>';
mysql_query('UPDATE `actions` SET `vals`= 0 WHERE `uid` = "'.$u->info['id'].'" AND `vars`= "day_quest"');
if ($u->info['level'] < 12)
{
$u->addItem(10020,$u->info['id'],'|sudba='.$u->info['login']);
}
else
{
$u->addItem(6470,$u->info['id'],'|sudba='.$u->info['login']);
}
mysql_query('UPDATE `users_achiv` SET `zb`= `zb`+1 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$u->repexp_add($u->info['id'],50); //Ðåïóòàöèÿ +20
}
else
{
$txt .= '<br><b><font color=black>Îòêðîé ñóíäóê Òðóïîæîðà, ïîðàäóé áàáóøêó!</b></font>';
}
}elseif($zadID==6)
{
$check = mysql_query('SELECT * FROM `actions` WHERE `uid` = "'.$u->info['id'].'" AND `vars`= "izlom" AND `time` > "'.$test['time'].'"');
$i=0;
while($pl = mysql_fetch_array($check)){$i++;}
if ($i>0){
$txt .= '<br><b><font color=black>Ïîðàäîâàë áàáóøêó! Òàê ïàõíåò ãàðüþ è ñìåðòüþ Ììììì ... Çà ýòî òåáå æåòîí÷èê!</b></font>';
mysql_query('UPDATE `actions` SET `vals`= 0 WHERE `uid` = "'.$u->info['id'].'" AND `vars`= "day_quest"');
if ($u->info['level'] < 12)
{
$u->addItem(10020,$u->info['id'],'|sudba='.$u->info['login']);
}
else
{
$u->addItem(6470,$u->info['id'],'|sudba='.$u->info['login']);
}
mysql_query('UPDATE `users_achiv` SET `zb`= `zb`+1 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$u->repexp_add($u->info['id'],50); //Ðåïóòàöèÿ +20
}
else
{
$txt .= '<br><b><font color=black>Ïîñåòè èçëîì õàîñà è ïðèíåñè åãî çàïàõ áàáóøêå!</b></font>';
}
}elseif($zadID==7)
{
$check = mysql_query('SELECT * FROM `actions` WHERE `uid` = "'.$u->info['id'].'" AND `vals`= "win" AND `time` > "'.$test['time'].'"');
$i=0;
while($pl = mysql_fetch_array($check)){$i++;}
if ($i>2){
$txt .= '<br><b><font color=black>Ïîðàäîâàë áàáóøêó! Ñòàëî â ìèðå ñâåòëåå, íî áàáêà êàê áûëà ñëåïàÿ òàê è îñòàëàñü... <br> ×óòü íå çàáûëà æåòîí÷èê!</b></font>';
mysql_query('UPDATE `actions` SET `vals`= 0 WHERE `uid` = "'.$u->info['id'].'" AND `vars`= "day_quest"');
if ($u->info['level'] < 12)
{
$u->addItem(10020,$u->info['id'],'|sudba='.$u->info['login']);
}
else
{
$u->addItem(6470,$u->info['id'],'|sudba='.$u->info['login']);
}
mysql_query('UPDATE `users_achiv` SET `zb`= `zb`+1 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$u->repexp_add($u->info['id'],50); //Ðåïóòàöèÿ +20
}
else
{
$txt .= '<br><b><font color=black>Âûïîëíè 3 çàäàíèÿ â ïîäçåìåëèÿõ!Áàáóøêà áóäåò î÷åíü äîâîëüíà!</b></font>';
}
}elseif($zadID==8)
{
$txt .= '<br><b><font color=black>Ñõîäè êà ìèëîê â Áàøíþ Ñìåðòè! Äà ïîïðîáóé êàê òàì ñâîè ñèëåíêè.</b></font>';
}
else
{
$txt .= '<br><b><font color=red>Ýõ øóñòðûé ìàëåö, ïîëó÷àë çàäàíèå óæå ñåãîäíÿ! Çàâòðà ïðèõîäè íàêîðìëþ ÷åì íèáóäü âêóñíûì íó è çàäàíèå äàì!</b></font>';
}
}
?>