mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-01 10:04:21 +00:00
Merge pull request #263 from Shadowss/patch-23
Update quest for new quest now work for banned and update quest for new ...
This commit is contained in:
@@ -241,14 +241,6 @@ if (isset($qact)){
|
||||
$database->modifyResource($session->villages[0],300,320,360,570,1);
|
||||
break;
|
||||
|
||||
case '24':
|
||||
$database->updateUserField($_SESSION['username'],'quest','22',0);
|
||||
$_SESSION['qst']= 22;
|
||||
|
||||
//Give Reward
|
||||
$database->modifyResource($session->villages[0],200,200,700,450,1);
|
||||
break;
|
||||
|
||||
case '23':
|
||||
$database->updateUserField($_SESSION['username'],'quest','23',0);
|
||||
$_SESSION['qst']= 23;
|
||||
@@ -259,6 +251,13 @@ if (isset($qact)){
|
||||
$database->updateUserField($_SESSION['username'],'gold',$gold,0);
|
||||
break;
|
||||
|
||||
case '24':
|
||||
$database->updateUserField($_SESSION['username'],'quest','22',0);
|
||||
$_SESSION['qst']= 22;
|
||||
|
||||
//Give Reward
|
||||
$database->modifyResource($session->villages[0],200,200,700,450,1);
|
||||
break;
|
||||
|
||||
case '28':
|
||||
$dataarray[3] = 1;
|
||||
@@ -665,7 +664,7 @@ $market = $building->getTypeLevel(17);
|
||||
if ($market==0){ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 18: Marketplace.<\/h1><br \/><i>”Construct a Marketplace so you can trade with your fellow players.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Please build a Marketplace.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"market\"><\/div>\n\t\t","number":"-21","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 18: Marketplace.<\/h1><br \/><i>”The Marketplace has been completed. Now you can make offers of your own and accept foreign offers! When creating your own offers, you should think about offering what other players need most to get more profit.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>200 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>200 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>700 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>450 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','24');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"market\"><\/div>\n\t\t","number":21,"reward":{"wood":300,"clay":320,"iron":360,"crop":570},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 18: Marketplace.<\/h1><br \/><i>”The Marketplace has been completed. Now you can make offers of your own and accept foreign offers! When creating your own offers, you should think about offering what other players need most to get more profit.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>200 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>200 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>700 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>450 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','22');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"market\"><\/div>\n\t\t","number":21,"reward":{"wood":300,"clay":320,"iron":360,"crop":570},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php } ?>
|
||||
<?php } elseif($_SESSION['qst']== 22){
|
||||
|
||||
@@ -761,7 +760,7 @@ if ($units[$unarray2[$session->userinfo['tribe']]]<3){ $cp = CP;?>
|
||||
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 26: 3 settlers.<\/h1><br \/><i>”To found a new village, you will need settlers. You can train them in the palace or residence.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Train 3 settlers.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"new_village\"><\/div>\n\t\t","number":"-34","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 26: 3 settlers.<\/h1><br \/><i>”3 settlers were trained. To found new village you need at least <?php echo ${cp.$cp}[2];?>culture points...”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>1050 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>800 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>900 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>750 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','35');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"new_village\"><\/div>\n\t\t","number":34,"reward":{"wood":1050,"clay":800,"iron":900,"crop":750},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 26: 3 settlers.<\/h1><br \/><i>”3 settlers were trained. To found new village you need at least <?php $mode = CP; $total = count($database->getProfileVillages($session->uid)); echo ${'cp'.$mode}[$total+1]; ?> culture points...”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>1050 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>800 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>900 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>750 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','35');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"new_village\"><\/div>\n\t\t","number":34,"reward":{"wood":1050,"clay":800,"iron":900,"crop":750},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php } ?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 35){
|
||||
@@ -1196,7 +1195,7 @@ if ($units[$unarray2[$session->userinfo['tribe']]]<3){ $cp = CP;?>
|
||||
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 26: 3 settlers.<\/h1><br \/><i>”To found a new village, you will need settlers. You can train them in the palace or residence.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Train 3 settlers.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"new_village\"><\/div>\n\t\t","number":"-34","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 26: 3 settlers.<\/h1><br \/><i>”3 settlers were trained. To found new village you need at least <?php echo ${cp.$cp}[2];?>culture points...”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>1050 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>800 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>900 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>750 <\/div><br \/><span id=\"qst_accpt\"><a href=\"banned.php\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"new_village\"><\/div>\n\t\t","number":34,"reward":{"wood":1050,"clay":800,"iron":900,"crop":750},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 26: 3 settlers.<\/h1><br \/><i>”3 settlers were trained. To found new village you need at least <?php $mode = CP; $total = count($database->getProfileVillages($session->uid)); echo ${'cp'.$mode}[$total+1]; ?> culture points...”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>1050 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>800 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>900 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>750 <\/div><br \/><span id=\"qst_accpt\"><a href=\"banned.php\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"new_village\"><\/div>\n\t\t","number":34,"reward":{"wood":1050,"clay":800,"iron":900,"crop":750},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php } ?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 35){
|
||||
|
||||
Reference in New Issue
Block a user