From 997ad0ee39207844a470c02ebfecf5cb4498e746 Mon Sep 17 00:00:00 2001 From: Shadowss Date: Thu, 8 Aug 2013 11:42:31 +0300 Subject: [PATCH] Update quest for new quest now work for banned and update quest for new village now view correctly culture points --- Templates/Ajax/quest_core.tpl | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/Templates/Ajax/quest_core.tpl b/Templates/Ajax/quest_core.tpl index 9a5ee0ac..fd9e4bfb 100644 --- a/Templates/Ajax/quest_core.tpl +++ b/Templates/Ajax/quest_core.tpl @@ -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

\"\" Task 18: Marketplace.<\/h1>
”Construct a Marketplace so you can trade with your fellow players.”<\/i>

Order:<\/p>Please build a Marketplace.<\/div>
<\/span><\/div>\n\t\t

<\/div>\n\t\t","number":"-21","reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} -{"markup":"\n\t\t

\"\" Task 18: Marketplace.<\/h1>
”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>

Your reward:<\/p>\"Lumber\"200  \"Clay\"200  \"Iron\"700  \"Crop\"450  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":21,"reward":{"wood":300,"clay":320,"iron":360,"crop":570},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} +{"markup":"\n\t\t

\"\" Task 18: Marketplace.<\/h1>
”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>

Your reward:<\/p>\"Lumber\"200  \"Clay\"200  \"Iron\"700  \"Crop\"450  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":21,"reward":{"wood":300,"clay":320,"iron":360,"crop":570},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} userinfo['tribe']]]<3){ $cp = CP;?> {"markup":"\n\t\t

\"\" Task 26: 3 settlers.<\/h1>
”To found a new village, you will need settlers. You can train them in the palace or residence.”<\/i>

Order:<\/p>Train 3 settlers.<\/div>
<\/span><\/div>\n\t\t

<\/div>\n\t\t","number":"-34","reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} -{"markup":"\n\t\t

\"\" Task 26: 3 settlers.<\/h1>
”3 settlers were trained. To found new village you need at least culture points...”<\/i>

Your reward:<\/p>\"Lumber\"1050  \"Clay\"800  \"Iron\"900  \"Crop\"750  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":34,"reward":{"wood":1050,"clay":800,"iron":900,"crop":750},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} +{"markup":"\n\t\t

\"\" Task 26: 3 settlers.<\/h1>
”3 settlers were trained. To found new village you need at least getProfileVillages($session->uid)); echo ${'cp'.$mode}[$total+1]; ?> culture points...”<\/i>