From 5b09a5f300a1da0a916dee4cb94aa37eec2db94b Mon Sep 17 00:00:00 2001 From: NIKO28 Date: Mon, 23 Apr 2012 22:37:03 +0300 Subject: [PATCH] Update Templates/Ajax/quest_core.tpl --- Templates/Ajax/quest_core.tpl | 223 ++++++++++++++++++++++++++++++---- 1 file changed, 197 insertions(+), 26 deletions(-) diff --git a/Templates/Ajax/quest_core.tpl b/Templates/Ajax/quest_core.tpl index 0f7194d7..7b0cbdab 100644 --- a/Templates/Ajax/quest_core.tpl +++ b/Templates/Ajax/quest_core.tpl @@ -17,6 +17,19 @@ else if(!$message->unread && $message->nunread) { $messagelol = "i3"; } else if($message->unread && $message->nunread) { $messagelol = "i1"; } else { $messagelol = "i4"; } +//set $skipp_time. Use the SPEED. standard (1x) = 10 hours. +if(SPEED == '1'){ + $skipp_time="43200"; +} else if(SPEED == '2'){ + $skipp_time="21600"; +} else if(SPEED == '3'){ + $skipp_time="11988"; +} else if(SPEED <= '5'){ + $skipp_time="7200"; +} else if(SPEED > '5'){ + $skipp_time="3600"; +} + if (isset($qact)){ switch($qact) { case 'enter': @@ -24,15 +37,11 @@ if (isset($qact)){ $_SESSION['qst']= 1; break; + + //user does not follow the quest. case 'skip': - $database->updateUserField($_SESSION['username'],'quest','23',0); - $_SESSION['qst']= 23; - - //Give Reward - $gold=$database->getUserField($_SESSION['username'],'gold','username'); - $gold+=25; - $database->updateUserField($_SESSION['username'],'gold',$gold,0); - $skiped=true; + $database->updateUserField($_SESSION['username'],'quest','90',0); + $_SESSION['qst']= 90; break; case '2': @@ -43,7 +52,7 @@ if (isset($qact)){ case '3': $database->updateUserField($_SESSION['username'],'quest','3',0); $_SESSION['qst']= 3; - + //Give Reward $database->modifyResource($session->villages[0],50,60,30,10,1); break; @@ -51,19 +60,19 @@ if (isset($qact)){ case '4': $database->updateUserField($_SESSION['username'],'quest','4',0); $_SESSION['qst']= 4; - + //Give Reward $database->modifyResource($session->villages[0],30,60,30,20,1); break; - + case 'rank': $rSubmited=$qact2; break; - + case '5': $database->updateUserField($_SESSION['username'],'quest','5',0); $_SESSION['qst']= 5; - + //Give Reward $database->modifyResource($session->villages[0],40,30,20,30,1); break; @@ -75,27 +84,27 @@ if (isset($qact)){ $Message="You are to be informed that a nice reward is waiting for you at the taskmaster.

Hint: The message has been generated automatically. An answer is not necessary."; $database->sendMessage($session->userinfo['id'],0,$Subject,$Message,0); $RB=true; - + //Give Reward $database->modifyResource($session->villages[0],50,60,30,30,1); break; - + case '7': $database->updateUserField($_SESSION['username'],'quest','7',0); $_SESSION['qst']= 7; - + //Give Reward $gold=$database->getUserField($_SESSION['username'],'gold','username'); $gold+=20; $database->updateUserField($_SESSION['username'],'gold',$gold,0); break; - + case '8': $crop = round($village->acrop); if ($crop>=200){ $database->updateUserField($_SESSION['username'],'quest','8',0); $_SESSION['qst']= 8; - + //Get 200 Crop $database->modifyResource($session->villages[0],0,0,0,-200,1); //Give Reward @@ -222,6 +231,89 @@ if (isset($qact)){ $gold+=15; $database->updateUserField($_SESSION['username'],'gold',$gold,0); break; + + case '91': + $database->updateUserField($_SESSION['username'],'quest','91',0); + $database->updateUserField($_SESSION['username'],'quest_time',''.(time()+$skipp_time).'',0); + $_SESSION['qst_time']=(time()+$skipp_time); + $_SESSION['qst']= 91; + //Give Reward + if(!$session->plus){ + mysql_query("UPDATE ".TB_PREFIX."users set plus = ('".mktime(date("H"),date("i"), date("s"),date("m") , date("d"), date("Y"))."')+86400 where `username`='".$_SESSION['username']."'") or die(mysql_error()); + } else { + $plus=$database->getUserField($_SESSION['username'],'plus','username'); + $plus+=86400; + $database->updateUserField($_SESSION['username'],'plus',$plus,0); + } + $gold=$database->getUserField($_SESSION['username'],'gold','username'); + $gold+=15; + $database->updateUserField($_SESSION['username'],'gold',$gold,0); + break; + + + case '92': + $database->updateUserField($_SESSION['username'],'quest','92',0); + $database->updateUserField($_SESSION['username'],'quest_time',''.(time()+$skipp_time).'',0); + $_SESSION['qst_time']=(time()+$skipp_time); + $_SESSION['qst']= 92; + //Give Reward + $database->modifyResource($session->villages[0],217,247,177,207,1); + break; + + case '93': + $database->updateUserField($_SESSION['username'],'quest','93',0); + $database->updateUserField($_SESSION['username'],'quest_time',''.(time()+$skipp_time).'',0); + $_SESSION['qst_time']=(time()+$skipp_time); + $_SESSION['qst']= 93; + //Give Reward + $database->modifyResource($session->villages[0],217,247,177,207,1); + break; + + case '94': + $database->updateUserField($_SESSION['username'],'quest','94',0); + $database->updateUserField($_SESSION['username'],'quest_time',''.(time()+$skipp_time).'',0); + $_SESSION['qst_time']=(time()+$skipp_time); + $_SESSION['qst']= 94; + //Give Reward + $database->modifyResource($session->villages[0],217,247,177,207,1); + break; + + case '95': + $database->updateUserField($_SESSION['username'],'quest','95',0); + $database->updateUserField($_SESSION['username'],'quest_time',''.(time()+$skipp_time).'',0); + $_SESSION['qst_time']=(time()+$skipp_time); + $_SESSION['qst']= 95; + //Give Reward + $database->modifyResource($session->villages[0],217,247,177,207,1); + break; + + case '96': + $database->updateUserField($_SESSION['username'],'quest','96',0); + $database->updateUserField($_SESSION['username'],'quest_time',''.(time()+$skipp_time).'',0); + $_SESSION['qst_time']=(time()+$skipp_time); + $_SESSION['qst']= 96; + //Give Reward + $database->modifyResource($session->villages[0],217,247,177,207,1); + break; + + case '97': + $database->updateUserField($_SESSION['username'],'quest','97',0); + $database->updateUserField($_SESSION['username'],'quest_time',''.(time()).'',0); + $_SESSION['qst_time']=(time()); + $_SESSION['qst']= 97; + + //Give Reward 20 gold + 2 days plus + if(!$session->plus){ + mysql_query("UPDATE ".TB_PREFIX."users set plus = ('".mktime(date("H"),date("i"), date("s"),date("m") , date("d"), date("Y"))."')+172800 where `username`='".$_SESSION['username']."'") or die(mysql_error()); + } else { + $plus=$database->getUserField($_SESSION['username'],'plus','username'); + $plus+=172800; + $database->updateUserField($_SESSION['username'],'plus',$plus,0); + } + $gold=$database->getUserField($_SESSION['username'],'gold','username'); + $gold+=20; + $database->updateUserField($_SESSION['username'],'gold',$gold,0); + break; } } @@ -276,7 +368,7 @@ $rRes=$ranking->searchRank($displayarray['username'],"username"); if ($rRes!=$rSubmited){?> {"markup":"\n\t\t

\"\" Task 4: Other Players<\/h1>
„In you play along with billions of other players. Click 'statistics' in the top menu to look up your rank and enter it here.”<\/i>

Order:<\/p>Look for your rank in the statistics and enter it here.<\/div>

<\/span><\/div>\n\t\t

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

\"\" Task 4: Other Players<\/h1>
„Exactly! That's your rank.”<\/i>

Your reward:<\/p>\"Lumber\"40  \"Clay\"30  \"Iron\"20  \"Crop\"30  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t","number":4,"reward":{"wood":40,"clay":30,"iron":20,"crop":30},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":0} +{"markup":"\n\t\t

\"\" Task 4: Other Players<\/h1>
"Exactly! That's your rank."<\/i>

Your reward:<\/p>\"Lumber\"40  \"Clay\"30  \"Iron\"20  \"Crop\"30  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t","number":4,"reward":{"wood":40,"clay":30,"iron":20,"crop":30},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":0} if ($lSubmited!=210){?> {"markup":"\n\t\t

\"\" Task 12: Instructions<\/h1>
„In the ingame instructions you can find short information texts about different buildings and types of units.\r\n

\r\nClick on 'instructions' at the left to find out how much lumber is required for the barracks.”<\/i>

Order:<\/p>Enter how much lumber barracks cost<\/div>

<\/span><\/div>\n\t\t

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

\"\" Task 12: Instructions<\/h1>
„Exactly! Barracks cost 210 lumber.”<\/i>

Your reward:<\/p>\"Lumber\"50  \"Clay\"30  \"Iron\"60  \"Crop\"20  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t","number":16,"reward":{"wood":50,"clay":30,"iron":60,"crop":20},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":0} +{"markup":"\n\t\t

\"\" Task 12: Instructions<\/h1>
"Exactly! Barracks cost 210 lumber."<\/i>

Your reward:<\/p>\"Lumber\"50  \"Clay\"30  \"Iron\"60  \"Crop\"20  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t","number":16,"reward":{"wood":50,"clay":30,"iron":60,"crop":20},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":0} searchRank($displayarray['username'],"username"); if ($rRes!=$rSubmited){ ?> {"markup":"\n\t\t

\"\" Task 14: Advanced!<\/h1>
„Look up your rank in the player statistics again and enjoy your progress.”<\/i>

Order:<\/p>Look for your rank in the statistics and enter it here.<\/div>

<\/span><\/div>\n\t\t

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

\"\" Task 14: Advanced!<\/h1>
„Well done! That's your current rank.”<\/i>

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

<\/div>\n\t\t","number":18,"reward":{"wood":100,"clay":90,"iron":100,"crop":60},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":0} +{"markup":"\n\t\t

\"\" Task 14: Advanced!<\/h1>
"Well done! That's your current rank."<\/i>

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

<\/div>\n\t\t","number":18,"reward":{"wood":100,"clay":90,"iron":100,"crop":60},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":0} userinfo['tribe']]]<2){ ?> // Checking granary builded or no $granary = $building->getTypeLevel(11); if ($granary ==0){ ?> -{"markup":"\n\t\t

\"\" Task 16: Economy <\/h1>
„„Trade & Economy was your choice. Golden times await you for sure!”

Order:<\/p>Construct a Granary.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 16: Economy <\/h1>
„"Trade & Economy was your choice. Golden times await you for sure!"

Order:<\/p>Construct a Granary.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 16: Economy <\/h1>
„Well done! With the Granary you can store more wheat.”<\/i>

Your reward:<\/p>\"Lumber\"80  \"Clay\"90  \"Iron\"60  \"Crop\"40  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":19,"reward":{"wood":80,"clay":90,"iron":60,"crop":40},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":0} @@ -474,6 +566,85 @@ $database->updateUserField($_SESSION['username'],'quest','24',0); $_SESSION['qst']= 24; ?> {"markup":"\n\t\t

\"\" Tasks<\/h1>
Your reward: 25 Gold.' ;}else{echo 'All tasks achieved!';}?>”<\/i>
<\/span><\/div>\n\t\t
<\/div>\n\t\t","number":-25,"reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"i2","altstep":0} +Continue with the next task.<\/a> +//1 +} elseif($_SESSION['qst']==90){ +$time=time();?> + +{"markup":"\n\t\t

\"\" Resource overview


Your resource deliveries
DeliveryDelivery timeStatus
11 day Travian Plus
15 Gold
0:00:00fetch
2\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
3\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
4\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
5\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
6\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
72 days Travian Plus
20 Gold
getTimeFormat($skipp_time); ?>on hold
\n\t\t","number":91,"reward":{"gold":15,"plus":1},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} + += $time ){ ?> +{"markup":"\n\t\t

\"\" Resource overview


Your resource deliveries
DeliveryDelivery timeStatus
11 day Travian Plus
15 Gold
0:00:00fetched
2\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>
getTimeFormat($_SESSION['qst_time']-time());?>
3\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
4\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
5\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
6\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
72 days Travian Plus
20 Gold
getTimeFormat($skipp_time); ?>on hold
\n\t\t","number":-92,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} + +{"markup":"\n\t\t

\"\" Resource overview


Your resource deliveries
DeliveryDelivery timeStatus
11 day Travian Plus
15 Gold
0:00:00fetched
2\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetch
3\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
4\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
5\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
6\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
72 days Travian Plus
20 Gold
getTimeFormat($skipp_time); ?>on hold
\n\t\t","number":92,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} + + + += $time ){ ?> +{"markup":"\n\t\t

\"\" Resource overview


Your resource deliveries
DeliveryDelivery timeStatus
11 day Travian Plus
15 Gold
0:00:00fetched
2\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
3\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>
getTimeFormat($_SESSION['qst_time']-time());?>
4\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
5\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
6\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
72 days Travian Plus
20 Gold
getTimeFormat($skipp_time); ?>on hold
\n\t\t","number":-93,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} + +{"markup":"\n\t\t

\"\" Resource overview


Your resource deliveries
DeliveryDelivery timeStatus
11 day Travian Plus
15 Gold
0:00:00fetched
2\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
3\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetch
4\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
5\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
6\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
72 days Travian Plus
20 Gold
getTimeFormat($skipp_time); ?>on hold
\n\t\t","number":93,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} + + += $time ){ ?> +{"markup":"\n\t\t

\"\" Resource overview


Your resource deliveries
DeliveryDelivery timeStatus
11 day Travian Plus
15 Gold
0:00:00fetched
2\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
3\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
4\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>
getTimeFormat($_SESSION['qst_time']-time());?>
5\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
6\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
72 days Travian Plus
20 Gold
getTimeFormat($skipp_time); ?>on hold
\n\t\t","number":-95,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} + +{"markup":"\n\t\t

\"\" Resource overview


Your resource deliveries
DeliveryDelivery timeStatus
11 day Travian Plus
15 Gold
0:00:00fetched
2\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
3\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
4\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetch
5\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
6\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
72 days Travian Plus
20 Gold
getTimeFormat($skipp_time); ?>on hold
\n\t\t","number":95,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} + + + + += $time ){ ?> +{"markup":"\n\t\t

\"\" Resource overview


Your resource deliveries
DeliveryDelivery timeStatus
11 day Travian Plus
15 Gold
0:00:00fetched
2\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
3\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
4\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
5\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>
getTimeFormat($_SESSION['qst_time']-time());?>
6\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
72 days Travian Plus
20 Gold
getTimeFormat($skipp_time); ?>on hold
\n\t\t","number":-95,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} + +{"markup":"\n\t\t

\"\" Resource overview


Your resource deliveries
DeliveryDelivery timeStatus
11 day Travian Plus
15 Gold
0:00:00fetched
2\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
3\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
4\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
5\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetch
6\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>on hold
72 days Travian Plus
20 Gold
getTimeFormat($skipp_time); ?>on hold
\n\t\t","number":95,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} + + + += $time ){ ?> +{"markup":"\n\t\t

\"\" Resource overview


Your resource deliveries
DeliveryDelivery timeStatus
11 day Travian Plus
15 Gold
0:00:00fetched
2\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
3\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
4\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
5\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
6\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>
getTimeFormat($_SESSION['qst_time']-time());?>
72 days Travian Plus
20 Gold
getTimeFormat($skipp_time); ?>on hold
\n\t\t","number":-96,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} + +{"markup":"\n\t\t

\"\" Resource overview


Your resource deliveries
DeliveryDelivery timeStatus
11 day Travian Plus
15 Gold
0:00:00fetched
2\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
3\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
4\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
5\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
6\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetch
72 days Travian Plus
20 Gold
getTimeFormat($skipp_time); ?>on hold
\n\t\t","number":96,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} + + += $time ){ ?> +{"markup":"\n\t\t

\"\" Resource overview


Your resource deliveries
DeliveryDelivery timeStatus
11 day Travian Plus
15 Gold
0:00:00fetched
2\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
3\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
4\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
5\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
6\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
72 days Travian Plus
20 Gold
getTimeFormat($skipp_time); ?>
getTimeFormat($_SESSION['qst_time']-time());?>
\n\t\t","number":-24,"reward":{"gold":20,"plus":2},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} + +{"markup":"\n\t\t

\"\" Resource overview


Your resource deliveries
DeliveryDelivery timeStatus
11 day Travian Plus
15 Gold
0:00:00fetched
2\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
3\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
4\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
5\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
6\"Lumber\"217  \"Clay\"247  \"Iron\"177  \"Crop\"207  getTimeFormat($skipp_time); ?>fetched
72 days Travian Plus
20 Gold
getTimeFormat($skipp_time); ?>fetch
\n\t\t","number":24,"reward":{"gold":20,"plus":2},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} + + +// End tasks message +updateUserField($_SESSION['username'],'quest','24',0); +$_SESSION['qst']= 24; ?> +{"markup":"\n\t\t

\"\" Tasks<\/h1>
„All tasks achieved!”<\/i>
<\/span><\/div>\n\t\t
<\/div>\n\t\t","number":-25,"reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":0} + + searchRank($displayarray['username'],"username"); if ($rRes!=$rSubmited){?> {"markup":"\n\t\t

\"\" Task 4: Other Players<\/h1>
„In you play along with billions of other players. Click 'statistics' in the top menu to look up your rank and enter it here.”<\/i>

Order:<\/p>Look for your rank in the statistics and enter it here.<\/div>

<\/span><\/div>\n\t\t

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

\"\" Task 4: Other Players<\/h1>
„Exactly! That's your rank.”<\/i>

Your reward:<\/p>\"Lumber\"40  \"Clay\"30  \"Iron\"20  \"Crop\"30  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t","number":4,"reward":{"wood":40,"clay":30,"iron":20,"crop":30},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":0} +{"markup":"\n\t\t

\"\" Task 4: Other Players<\/h1>
"Exactly! That's your rank."<\/i>

Your reward:<\/p>\"Lumber\"40  \"Clay\"30  \"Iron\"20  \"Crop\"30  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t","number":4,"reward":{"wood":40,"clay":30,"iron":20,"crop":30},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":0} if ($lSubmited!=210){?> {"markup":"\n\t\t

\"\" Task 12: Instructions<\/h1>
„In the ingame instructions you can find short information texts about different buildings and types of units.\r\n

\r\nClick on 'instructions' at the left to find out how much lumber is required for the barracks.”<\/i>

Order:<\/p>Enter how much lumber barracks cost<\/div>

<\/span><\/div>\n\t\t

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

\"\" Task 12: Instructions<\/h1>
„Exactly! Barracks cost 210 lumber.”<\/i>

Your reward:<\/p>\"Lumber\"50  \"Clay\"30  \"Iron\"60  \"Crop\"20  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t","number":16,"reward":{"wood":50,"clay":30,"iron":60,"crop":20},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":0} +{"markup":"\n\t\t

\"\" Task 12: Instructions<\/h1>
"Exactly! Barracks cost 210 lumber."<\/i>

Your reward:<\/p>\"Lumber\"50  \"Clay\"30  \"Iron\"60  \"Crop\"20  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t","number":16,"reward":{"wood":50,"clay":30,"iron":60,"crop":20},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":0} searchRank($displayarray['username'],"username"); if ($rRes!=$rSubmited){ ?> {"markup":"\n\t\t

\"\" Task 14: Advanced!<\/h1>
„Look up your rank in the player statistics again and enjoy your progress.”<\/i>

Order:<\/p>Look for your rank in the statistics and enter it here.<\/div>

<\/span><\/div>\n\t\t

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

\"\" Task 14: Advanced!<\/h1>
„Well done! That's your current rank.”<\/i>

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