From 3e1b85ef190b2cfb7db1e12ea3f1e9810eb52c1d Mon Sep 17 00:00:00 2001 From: Shadowss Date: Fri, 1 Nov 2013 09:26:57 +0200 Subject: [PATCH] fix quest --- Templates/Ajax/quest_core.tpl | 1074 +++++++++++++++------------------ 1 file changed, 492 insertions(+), 582 deletions(-) diff --git a/Templates/Ajax/quest_core.tpl b/Templates/Ajax/quest_core.tpl index c2c1bef8..fb1c26e4 100644 --- a/Templates/Ajax/quest_core.tpl +++ b/Templates/Ajax/quest_core.tpl @@ -20,6 +20,7 @@ include("GameEngine/Village.php"); include("GameEngine/Data/cp.php"); $uArray = $database->getUserArray($_SESSION['username'],0); +$check_quest=$database->getUserField($_SESSION['username'],'quest','username'); if($message->unread && !$message->nunread) { $messagelol = "i2"; } else if(!$message->unread && $message->nunread) { $messagelol = "i3"; } @@ -40,504 +41,384 @@ if(SPEED == '1'){ } $_SESSION['qst_time'] = $uArray['quest_time']; if (isset($qact)){ - -/* Edit by: noonn */ - -$query2 = mysql_query('SELECT * FROM `' . TB_PREFIX . 'users` WHERE `id` = ' . $session->userinfo['id']); -$data2 = mysql_fetch_assoc($query2); - switch($qact) { - case 'enter': - if($data2['quest'] == 0){ - $database->updateUserField($_SESSION['username'],'quest','1',0); - $_SESSION['qst']= 1; - } - break; - - - //user does not follow the quest. - //Get reward: Resources: Every 24 hours (1 speed) 24/speed=hours - //Gold: 25 gold - case 'skip': - if($data2['quest'] == 0){ - $database->updateUserField($_SESSION['username'],'quest','90',0); - $_SESSION['qst']= 90; - } - break; - - case '2': - if($data2['quest'] == 1){ - $database->updateUserField($_SESSION['username'],'quest','2',0); - $_SESSION['qst']= 2; - //Give Reward - $database->FinishWoodcutter($session->villages[0]); - } - break; - - case '3': - if($data2['quest'] == 2){ - $database->updateUserField($_SESSION['username'],'quest','3',0); - $_SESSION['qst']= 3; - - //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); - } - } - } - break; - - case '4': - if($data2['quest'] == 3){ - $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': - if($data2['quest'] == 4){ - $database->updateUserField($_SESSION['username'],'quest','5',0); - $_SESSION['qst']= 5; + if ($check_quest==$qact) { + //avoid hacking gold, resources or reward -- added by Ronix + }else { + switch($qact) { + case 'enter': + $database->updateUserField($_SESSION['username'],'quest','1',0); + $_SESSION['qst']= 1; + break; - //Give Reward - $database->modifyResource($session->villages[0],40,30,20,30,1); - } - break; + //user does not follow the quest. + //Get reward: Resources: Every 24 hours (1 speed) 24/speed=hours + //Gold: 25 gold + case 'skip': + $database->updateUserField($_SESSION['username'],'quest','90',0); + $_SESSION['qst']= 90; + break; - case '6': - if($data2['quest'] == 5){ - $database->updateUserField($_SESSION['username'],'quest','6',0); - $_SESSION['qst']= 6; - $Subject="Message From The Taskmaster"; - $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'],4,$Subject,$Message,0,0,0,0,0); - $RB=true; + case '2': + $database->updateUserField($_SESSION['username'],'quest','2',0); + $_SESSION['qst']= 2; + //Give Reward + $database->FinishWoodcutter($session->villages[0]); + break; + + case '3': + $database->updateUserField($_SESSION['username'],'quest','3',0); + $_SESSION['qst']= 3; + //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); + } + break; + + 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; + + case '6': + $database->updateUserField($_SESSION['username'],'quest','6',0); + $_SESSION['qst']= 6; + $Subject="Message From The Taskmaster"; + $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'],4,$Subject,$Message,0,0,0,0,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': + $database->updateUserField($_SESSION['username'],'quest','8',0); + $_SESSION['qst']= 8; + //Give Reward + $database->modifyResource($session->villages[0],75,80,30,50,1); + break; + + case '9': + $crop = round($village->acrop); + if ($crop>=200){ + $database->updateUserField($_SESSION['username'],'quest','9',0); + //Get 200 Crop + $database->modifyResource($session->villages[0],0,0,0,-200,1); + //Give Reward + $attack = $database->addAttack(0,1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0); + $database->addMovement(3,0,$session->villages[0],$attack,time(),time()+43200/INCREASE_SPEED); + } else{ + $NoCrop="No Enough Crop!"; + } + $_SESSION['qst']= 9; + break; + + case '10': + $database->updateUserField($_SESSION['username'],'quest','10',0); + $_SESSION['qst']= 10; + //Give Reward + $database->modifyResource($session->villages[0],75,90,30,50,1); + break; + + case '11': + $database->updateUserField($_SESSION['username'],'quest','11',0); + $_SESSION['qst']= 11; + //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"))."')+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); + } + break; + + case 'coor': + $x=$qact2; + $y=$qact3; + break; + + case '12': + $database->updateUserField($_SESSION['username'],'quest','12',0); + $_SESSION['qst']= 12; + //Give Reward + $database->modifyResource($session->villages[0],60,30,40,90,1); + break; - //Give Reward - $database->modifyResource($session->villages[0],50,60,30,30,1); - } - break; + case '13': + $database->updateUserField($_SESSION['username'],'quest','13',0); + $_SESSION['qst']= 13; + //Give Reward + $database->modifyResource($session->villages[0],150,180,30,130,1); + break; - case '7': - if($data2['quest'] == 6){ - $database->updateUserField($_SESSION['username'],'quest','7',0); - $_SESSION['qst']= 7; + case '14': + $database->updateUserField($_SESSION['username'],'quest','14',0); + $_SESSION['qst']= 14; + //Give Reward + $database->modifyResource($session->villages[0],60,50,40,30,1); + break; + + case 'lumber': + $lSubmited=$qact2; + break; + + case '15': + $database->updateUserField($_SESSION['username'],'quest','15',0); + $_SESSION['qst']= 15; + //Give Reward + $database->modifyResource($session->villages[0],50,30,60,20,1); + break; + + case '16': + $database->updateUserField($_SESSION['username'],'quest','16',0); + $_SESSION['qst']= 16; + //Give Reward + $database->modifyResource($session->villages[0],75,75,40,40,1); + break; + + case '17': + $database->updateUserField($_SESSION['username'],'quest','17',0); + $_SESSION['qst']= 17; + //Give Reward + $database->modifyResource($session->villages[0],100,90,100,60,1); + break; + + case '18': + $database->updateUserField($_SESSION['username'],'quest','18',0); + $_SESSION['qst']= 18; + break; + + case '19': + $database->updateUserField($_SESSION['username'],'quest','19',0); + $_SESSION['qst']= 19; + //Give Reward + $database->modifyResource($session->villages[0],80,90,60,40,1); + break; + + case '20': + $database->updateUserField($_SESSION['username'],'quest','20',0); + $_SESSION['qst']= 20; + //Give Reward + $database->modifyResource($session->villages[0],70,120,90,50,1); + break; + + case '21': + $database->updateUserField($_SESSION['username'],'quest','21',0); + $_SESSION['qst']= 21; + break; + + case '22': + $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; + break; + + case '24': + $database->updateUserField($_SESSION['username'],'quest','24',0); + $_SESSION['qst']= 24; + //Give Reward + $database->modifyResource($session->villages[0],300,320,360,570,1); + break; + + case '28': + $dataarray[3] = 1; + $database->updateUserField($_SESSION['username'],'quest','28',0); + $_SESSION['qst']= 28; + //Give Reward + $gold=$database->getUserField($_SESSION['username'],'gold','username'); + $gold+=15; + $database->updateUserField($_SESSION['username'],'gold',$gold,0); + break; + + case '29': + $dataarray[4] = 1; + $database->updateUserField($_SESSION['username'],'quest','29',0); + $_SESSION['qst']= 29; + //Give Reward + $database->modifyResource($session->villages[0],240,280,180,100,1); + break; + + case '30': + $dataarray[5] = 1; + $database->updateUserField($_SESSION['username'],'quest','30',0); + $_SESSION['qst']= 30; + //Give Reward + $database->modifyResource($session->villages[0],600,750,600,300,1); + break; + + case '31': + $dataarray[6] = 1; + $database->updateUserField($_SESSION['username'],'quest','31',0); + $_SESSION['qst']= 31; + //Give Reward + $database->modifyResource($session->villages[0],900,850,600,300,1); + break; + + case '32': + $dataarray[7] = 1; + $database->updateUserField($_SESSION['username'],'quest','32',0); + $_SESSION['qst']= 32; + //Give Reward + $database->modifyResource($session->villages[0],1800,2000,1650,800,1); + break; + + case '33': + $dataarray[8] = 1; + $database->updateUserField($_SESSION['username'],'quest','33',0); + $_SESSION['qst']= 33; + //Give Reward + $database->modifyResource($session->villages[0],1600,1800,1950,1200,1); + break; + + case '34': + $dataarray[9] = 1; + $database->updateUserField($_SESSION['username'],'quest','34',0); + $_SESSION['qst']= 34; + //Give Reward + $database->modifyResource($session->villages[0],3400,2800,3600,2200,1); + break; + + case '35': + $dataarray[10] = 1; + $database->updateUserField($_SESSION['username'],'quest','35',0); + $_SESSION['qst']= 35; + //Give Reward + $database->modifyResource($session->villages[0],1050,800,900,750,1); + break; + + case '36': + $database->updateUserField($_SESSION['username'],'quest','36',0); + $_SESSION['qst']= 36; + //Give Reward + $database->modifyResource($session->villages[0],1600,2000,1800,1300,1); + break; + + case '37': + $database->updateUserField($_SESSION['username'],'quest','37',0); + $_SESSION['qst']= 37; + break; + + case '91': + $database->updateUserField($_SESSION['username'],'quest','91',0); + $database->updateUserField($_SESSION['username'],'quest_time',''.(time()+$skipp_time).'',0); + $_SESSION['qst']= 91; + $_SESSION['qst_time'] = time()+$skipp_time; + //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; - //Give Reward - $gold=$database->getUserField($_SESSION['username'],'gold','username'); - $gold+=20; - $database->updateUserField($_SESSION['username'],'gold',$gold,0); + case '92': + $database->updateUserField($_SESSION['username'],'quest','92',0); + $database->updateUserField($_SESSION['username'],'quest_time',''.(time()+$skipp_time).'',0); + $_SESSION['qst']= 92; + $_SESSION['qst_time'] = time()+$skipp_time; + //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']= 93; + $_SESSION['qst_time'] = time()+$skipp_time; + //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']= 94; + $_SESSION['qst_time'] = time()+$skipp_time; + //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']= 95; + $_SESSION['qst_time'] = time()+$skipp_time; + //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']= 96; + $_SESSION['qst_time'] = time()+$skipp_time; + //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; + } } - break; - - case '8': - if($data2['quest'] == 7){ - $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 - $attack = $database->addAttack(0,1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0); - $database->addMovement(3,0,$session->villages[0],$attack,time(),time()+43200/INCREASE_SPEED); - } else{ - $NoCrop="No Enough Crop!"; - } - } - break; - - case '9': - if($data2['quest'] == 8){ - $database->updateUserField($_SESSION['username'],'quest','9',0); - $_SESSION['qst']= 9; - - //Give Reward - $database->modifyResource($session->villages[0],75,90,30,50,1); - } - break; - - case '10': - if($data2['quest'] == 9){ - $database->updateUserField($_SESSION['username'],'quest','10',0); - $_SESSION['qst']= 10; - - //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"))."')+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); - } - } - } - break; - - case '11': - if($data2['quest'] == 10){ - $database->updateUserField($_SESSION['username'],'quest','11',0); - $_SESSION['qst']= 11; - - //Give Reward - $database->modifyResource($session->villages[0],150,180,30,130,1); - } - break; - - case '12': - if($data2['quest'] == 11){ - $database->updateUserField($_SESSION['username'],'quest','12',0); - $_SESSION['qst']= 12; - - //Give Reward - $database->modifyResource($session->villages[0],60,50,40,30,1); - } - break; - - case 'lumber': - $lSubmited=$qact2; - break; - - case '13': - if($data2['quest'] == 12){ - $database->updateUserField($_SESSION['username'],'quest','13',0); - $_SESSION['qst']= 13; - - //Give Reward - $database->modifyResource($session->villages[0],50,30,60,20,1); - } - break; - - case '14': - if($data2['quest'] == 13){ - $database->updateUserField($_SESSION['username'],'quest','14',0); - $_SESSION['qst']= 14; - - //Give Reward - $database->modifyResource($session->villages[0],75,75,40,40,1); - } - break; - - case '15': - if($data2['quest'] == 14){ - $database->updateUserField($_SESSION['username'],'quest','15',0); - $_SESSION['qst']= 15; - - //Give Reward - $database->modifyResource($session->villages[0],100,90,100,60,1); - } - break; - - case '16': - if($data2['quest'] == 15){ - $database->updateUserField($_SESSION['username'],'quest','16',0); - $_SESSION['qst']= 16; - } - break; - - case '17': - if($data2['quest'] == 16){ - $database->updateUserField($_SESSION['username'],'quest','17',0); - $_SESSION['qst']= 17; - - //Give Reward - $database->modifyResource($session->villages[0],80,90,60,40,1); - } - break; - - case '18': - if($data2['quest'] == 17){ - $database->updateUserField($_SESSION['username'],'quest','18',0); - $_SESSION['qst']= 18; - - //Give Reward - $database->modifyResource($session->villages[0],70,100,90,100,1); - } - break; - - case '19': - if($data2['quest'] == 15){ - $database->updateUserField($_SESSION['username'],'quest','19',0); - $_SESSION['qst']= 19; - } - break; - - case '20': - if($data2['quest'] == 19){ - $database->updateUserField($_SESSION['username'],'quest','20',0); - $_SESSION['qst']= 20; - - //Give Reward - $database->modifyResource($session->villages[0],80,90,60,40,1); - } - break; - - case '21': - if($data2['quest'] == 20){ - $database->updateUserField($_SESSION['username'],'quest','21',0); - - //Give Reward - $database->modifyResource($session->villages[0],70,120,90,50,1); - $_SESSION['qst']= 21; - } - break; - - case '22': - if($data2['quest'] == 18){ - $database->updateUserField($_SESSION['username'],'quest','22',0); - $_SESSION['qst']= 22; - - //Give Reward - $database->modifyResource($session->villages[0],300,320,360,570,1); - } - break; - - case '23': - if($data2['quest'] == 36){ - $database->updateUserField($_SESSION['username'],'quest','23',0); - $_SESSION['qst']= 23; - - //Give Reward - $database->modifyResource($session->villages[0],1700,2100,1900,1400,1); - } - break; - - case '24': - if($data2['quest'] == 21){ - $database->updateUserField($_SESSION['username'],'quest','22',0); - $_SESSION['qst']= 22; - - //Give Reward - $database->modifyResource($session->villages[0],300,320,360,570,1); - } - break; - - case '28': - if($data2['quest'] == 22){ - $dataarray[3] = 1; - $database->updateUserField($_SESSION['username'],'quest','28',0); - - $_SESSION['qst']= 28; - - //Give Reward - $gold=$database->getUserField($_SESSION['username'],'gold','username'); - $gold+=15; - $database->updateUserField($_SESSION['username'],'gold',$gold,0); - } - break; - - case '29': - if($data2['quest'] == 28){ - $dataarray[4] = 1; - $database->updateUserField($_SESSION['username'],'quest','29',0); - - $_SESSION['qst']= 29; - - //Give Reward - $database->modifyResource($session->villages[0],240,280,180,100,1); - } - break; - - case '30': - if($data2['quest'] == 29){ - $dataarray[5] = 1; - $database->updateUserField($_SESSION['username'],'quest','30',0); - - $_SESSION['qst']= 30; - - //Give Reward - $database->modifyResource($session->villages[0],600,750,600,300,1); - } - break; - - case '31': - if($data2['quest'] == 30){ - $dataarray[6] = 1; - $database->updateUserField($_SESSION['username'],'quest','31',0); - - $_SESSION['qst']= 31; - - //Give Reward - $database->modifyResource($session->villages[0],900,850,600,300,1); - } - break; - - case '32': - if($data2['quest'] == 31){ - $dataarray[7] = 1; - $database->updateUserField($_SESSION['username'],'quest','32',0); - - $_SESSION['qst']= 32; - - //Give Reward - $database->modifyResource($session->villages[0],1800,2000,1650,800,1); - } - break; - - case '33': - if($data2['quest'] == 32){ - $dataarray[8] = 1; - $database->updateUserField($_SESSION['username'],'quest','33',0); - - $_SESSION['qst']= 33; - - //Give Reward - $database->modifyResource($session->villages[0],1600,1800,1950,1200,1); - } - break; - - case '34': - if($data2['quest'] == 33){ - $dataarray[9] = 1; - $database->updateUserField($_SESSION['username'],'quest','34',0); - - $_SESSION['qst']= 34; - - //Give Reward - $database->modifyResource($session->villages[0],3400,2800,3600,2200,1); - } - break; - - case '35': - if($data2['quest'] == 34){ - $dataarray[10] = 1; - $database->updateUserField($_SESSION['username'],'quest','35',0); - - $_SESSION['qst']= 35; - - //Give Reward - $database->modifyResource($session->villages[0],1050,800,900,750,1); - } - break; - - case '36': - if($data2['quest'] == 35){ - $database->updateUserField($_SESSION['username'],'quest','36',0); - - $_SESSION['qst']= 36; - - //Give Reward - $database->modifyResource($session->villages[0],1600,2000,1800,1300,1); - } - break; - - - case '91': - if($data2['quest'] == 90){ - $database->updateUserField($_SESSION['username'],'quest','91',0); - $database->updateUserField($_SESSION['username'],'quest_time',''.(time()+$skipp_time).'',0); - $_SESSION['qst']= 91; - $_SESSION['qst_time'] = time()+$skipp_time; - //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': - if($data2['quest'] == 91){ - $database->updateUserField($_SESSION['username'],'quest','92',0); - $database->updateUserField($_SESSION['username'],'quest_time',''.(time()+$skipp_time).'',0); - $_SESSION['qst']= 92; - $_SESSION['qst_time'] = time()+$skipp_time; - //Give Reward - $database->modifyResource($session->villages[0],217,247,177,207,1); - } - break; - - case '93': - if($data2['quest'] == 92){ - $database->updateUserField($_SESSION['username'],'quest','93',0); - $database->updateUserField($_SESSION['username'],'quest_time',''.(time()+$skipp_time).'',0); - $_SESSION['qst']= 93; - $_SESSION['qst_time'] = time()+$skipp_time; - //Give Reward - $database->modifyResource($session->villages[0],217,247,177,207,1); - } - break; - - case '94': - if($data2['quest'] == 93){ - $database->updateUserField($_SESSION['username'],'quest','94',0); - $database->updateUserField($_SESSION['username'],'quest_time',''.(time()+$skipp_time).'',0); - $_SESSION['qst']= 94; - $_SESSION['qst_time'] = time()+$skipp_time; - //Give Reward - $database->modifyResource($session->villages[0],217,247,177,207,1); - } - break; - - case '95': - if($data2['quest'] == 94){ - $database->updateUserField($_SESSION['username'],'quest','95',0); - $database->updateUserField($_SESSION['username'],'quest_time',''.(time()+$skipp_time).'',0); - $_SESSION['qst']= 95; - $_SESSION['qst_time'] = time()+$skipp_time; - //Give Reward - $database->modifyResource($session->villages[0],217,247,177,207,1); - } - break; - - case '96': - if($data2['quest'] == 95){ - $database->updateUserField($_SESSION['username'],'quest','96',0); - $database->updateUserField($_SESSION['username'],'quest_time',''.(time()+$skipp_time).'',0); - $_SESSION['qst']= 96; - $_SESSION['qst_time'] = time()+$skipp_time; - //Give Reward - $database->modifyResource($session->villages[0],217,247,177,207,1); - } - break; - - case '97': - if($data2['quest'] == 96){ - $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; -} - } header("Content-Type: application/json;"); if($session->access!=BANNED){ if($_SESSION['qst']== 0){ - ?> + ?> {"markup":"\n\t\t

\"\" Welcome to !<\/h1>
”As I see you have been made chieftain of this little village. I will be your counselor for the first few days and never leave your (right hand) side.”<\/i>

To the first task.<\/a>Look\u00a0around\u00a0on\u00a0your\u00a0own.<\/a>


Play no tasks.<\/a><\/span><\/div>\n\t\t
<\/div>\n\t\t","number":null,"reward":false,"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":1} @@ -546,12 +427,12 @@ if($session->access!=BANNED){ //Check one of Woodcutters is level 1 or upper $tRes = $database->getResourceLevel($session->villages[0]); $woodL=$tRes['f1']+$tRes['f3']+$tRes['f14']+$tRes['f17']; - //check if you are building a woodcutter to level 1 - foreach($building->buildArray as $jobs) { - if($jobs['type']==1){ - $woodL="99"; - } - } + //check if you are building a woodcutter to level 1 + foreach($building->buildArray as $jobs) { + if($jobs['type']==1){ + $woodL="99"; + } + } if ($woodL<1){?> {"markup":"\n\t\t

\"\" Task 1: Woodcutter<\/h1>
”There are four green forests around your village. Construct a woodcutter on one of them. Lumber is an important resource for our new settlement.”<\/i>

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

<\/div>\n\t\t","number":"-1","reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} @@ -614,10 +495,26 @@ if ($message->unread || $RB==true){?> {"markup":"\n\t\t

\"\" Task 6: Messages<\/h1>
”You received it? Very good.\r\n

\r\nHere is some Gold. With Gold you can do several things, e.g. extend your P<\/font>l<\/font>u<\/font>s<\/font><\/b>-Account or increase your resource production.To do so click
<\/font> P<\/font>l<\/font>u<\/font>s<\/font><\/b><\/a> in the left hand menu.”<\/i>

Your reward:<\/p>20 Gold
<\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

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

\"\" Task 7: Huge Army!<\/h1>
”Now I've got a very special quest for you. I am hungry. Give me 200 crop!\r\n

\r\nIn return I will try to organize a huge army to protect your village.”<\/i>

Order:<\/p>Send 200 crop to the taskmaster.<\/div>
\"Crop\"200

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

<\/div>\n\t\t","number":-8,"reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} +getResourceLevel($session->villages[0]); +$ironL=0;$clayL=0;$woodL=0;$cropL=0; +if($tRes['f4']>0){$ironL++;};if($tRes['f7']>0){$ironL++;};if($tRes['f10']>0){$ironL++;};if($tRes['f11']>0){$ironL++;} +if($tRes['f5']>0){$clayL++;};if($tRes['f6']>0){$clayL++;};if($tRes['f16']>0){$clayL++;};if($tRes['f18']>0){$clayL++;} +if($tRes['f1']>0){$woodL++;};if($tRes['f3']>0){$woodL++;};if($tRes['f14']>0){$woodL++;};if($tRes['f17']>0){$woodL++;} +if($tRes['f2']>0){$cropL++;};if($tRes['f8']>0){$cropL++;};if($tRes['f9']>0){$cropL++;};if($tRes['f12']>0){$cropL++;};if($tRes['f13']>0){$cropL++;};if($tRes['f15']>0){$cropL++;} + +if ($ironL<2 || $clayL<2 || $woodL<2 || $cropL<2){?> +{"markup":"\n\t\t

\"\"q;?> Task 7: One Each!<\/h1>
”Now we should increase your resource production a bit. Build an additional woodcutter, clay pit, iron mine and cropland to level 1.”<\/i>

Order:<\/p>Extend one more of each resource tile to level 1.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 7: One Each!<\/h1>
”Very good, great develop of resources production.”\r\n

\r\n<\/i>

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

<\/div>\n\t\t","number":7,"reward":{"wood":75,"clay":80,"iron":30,"crop":50},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} + + + +{"markup":"\n\t\t

\"\" Task 8: Huge Army!<\/h1>
”Now I've got a very special quest for you. I am hungry. Give me 200 crop!\r\n

\r\nIn return I will try to organize a huge army to protect your village.”<\/i>

Order:<\/p>Send 200 crop to the taskmaster.<\/div>
\"Crop\"200

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

<\/div>\n\t\t","number":-8,"reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} + +getResourceLevel($session->villages[0]); @@ -627,33 +524,45 @@ if($tRes['f5']>0){$clayL++;};if($tRes['f6']>0){$clayL++;};if($tRes['f16']>0){$cl if($tRes['f1']>0){$woodL++;};if($tRes['f3']>0){$woodL++;};if($tRes['f14']>0){$woodL++;};if($tRes['f17']>0){$woodL++;} if($tRes['f2']>0){$cropL++;};if($tRes['f8']>0){$cropL++;};if($tRes['f9']>0){$cropL++;};if($tRes['f12']>0){$cropL++;};if($tRes['f13']>0){$cropL++;};if($tRes['f15']>0){$cropL++;} if ($ironL<4 || $clayL<4 || $woodL<4 || $cropL<6){?> -{"markup":"\n\t\t

\"\"q;?> Task 8: Everything to 1.<\/h1>
”Now we should increase your resource production a bit. Extend all your resource tiles to level 1.”<\/i>

Order:<\/p>Extend all resource tiles to level 1.<\/div>
<\/span><\/div>\n\t\t

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

\"\"q;?> Task 9: Everything to 1.<\/h1>
”In Travian there is always something to do! While you are waiting for incoming the huge army, Now we should increase your resource production a bit. Extend all your resource tiles to level 1.”<\/i>

Order:<\/p>Extend all resource tiles to level 1.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 8: Everything to 1.<\/h1>
”Very good, your resource production just thrives.\r\n

\r\nSoon we can start with constructing buildings in the village.”<\/i>

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

<\/div>\n\t\t","number":12,"reward":{"wood":75,"clay":80,"iron":30,"crop":50},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} +{"markup":"\n\t\t

\"\" Task 9: Everything to 1.<\/h1>
”Very good, your resource production just thrives.\r\n

\r\nSoon we can start with constructing buildings in the village.”<\/i>

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

<\/div>\n\t\t","number":9,"reward":{"wood":75,"clay":80,"iron":30,"crop":50},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} - -{"markup":"\n\t\t

\"\" Task 9: Dove of Peace<\/h1>
”The first days after signing up you are protected against attacks by your fellow players. You can see how long this protection lasts by adding the code [#0]<\/b> to your profile.”<\/i>

Order:<\/p>Write the code [#0]<\/b> into your profile by adding it to one of the two description fields.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 10: Dove of Peace<\/h1>
”The first days after signing up you are protected against attacks by your fellow players. You can see how long this protection lasts by adding the code [#0]<\/b> to your profile.”<\/i>

Order:<\/p>Write the code [#0]<\/b> into your profile by adding it to one of the two description fields.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 9: Dove of Peace<\/h1>
”Well done! Now everyone can see what a great warrior the world is approached by.”<\/i>

Your reward:<\/p>2 day's Travian Plus<\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":13,"reward":{"plus":2},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} +{"markup":"\n\t\t

\"\" Task 10: Dove of Peace<\/h1>
”Well done! Now everyone can see what a great warrior the world is approached by.”<\/i>

Your reward:<\/p>2 day's Travian Plus<\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":10,"reward":{"plus":2},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} -getVillageID($session->uid); +$nvillage = $database->getFieldDistance($getvID); +$ncoor = $database->getCoor($nvillage); +$nvillagename = $database->getVillageField($nvillage,"name"); +if ($x!=$ncoor['x'] or $y!=$ncoor['y']){?> +{"markup":"\n\t\t

\"\" Task 11: Neighbours!


”Around you, there are many different villages. One of them is named . Click on 'map' in the header menu and look for that village. The name of your neighbours' villages can be seen when hovering your mouse over any of them.”

Order:

Look for the coordinates of and enter them here.
X Y
<\/span><\/div><\/div>\n\t\t
<\/div>\n\t\t","number":-11,"reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":0} + +{"markup":"\n\t\t

\"\" Task 11: Neighbours!<\/h1>
”Exactly, there <\/b> Village! As many resources as you reach this village. Well, almost as much ...”<\/i>

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

<\/div>\n\t\t","number":11,"reward":{"wood":60,"clay":30,"iron":40,"crop":90},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} + + +getTypeLevel(23); if ($cranny == 0){?> -{"markup":"\n\t\t

\"\" Task 10: Cranny<\/h1>
”It's getting time to erect a cranny. The world of is dangerous.\r\n

\r\nMany players live by stealing other players' resources. Build a cranny to hide some of your resources from enemies.”<\/i>

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

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

\"\" Task 12: Cranny<\/h1>
”It's getting time to erect a cranny. The world of is dangerous.\r\n

\r\nMany players live by stealing other players' resources. Build a cranny to hide some of your resources from enemies.”<\/i>

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

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

\"\" Task 10: Cranny<\/h1>
”Well done, now it's way harder for your mean fellow players to plunder your village.\r\n

\r\nIf under attack, your villagers will hide the resources in the Cranny all on their own.”<\/i>

Your reward:<\/p>\"Lumber\"150  \"Clay\"180  \"Iron\"30  \"Crop\"130  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":14,"reward":{"wood":150,"clay":180,"iron":30,"crop":130},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} +{"markup":"\n\t\t

\"\" Task 12: Cranny<\/h1>
”Well done, now it's way harder for your mean fellow players to plunder your village.\r\n

\r\nIf under attack, your villagers will hide the resources in the Cranny all on their own.”<\/i>

Your reward:<\/p>\"Lumber\"150  \"Clay\"180  \"Iron\"30  \"Crop\"130  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":12,"reward":{"wood":150,"clay":180,"iron":30,"crop":130},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} -getResourceLevel($session->villages[0]); @@ -663,31 +572,31 @@ if($tRes['f5']>1){$clayL++;};if($tRes['f6']>1){$clayL++;};if($tRes['f16']>1){$cl if($tRes['f1']>1){$woodL++;};if($tRes['f3']>1){$woodL++;};if($tRes['f14']>1){$woodL++;};if($tRes['f17']>1){$woodL++;} if($tRes['f2']>1){$cropL++;};if($tRes['f8']>1){$cropL++;};if($tRes['f9']>1){$cropL++;};if($tRes['f12']>1){$cropL++;};if($tRes['f13']>1){$cropL++;};if($tRes['f15']>1){$cropL++;} if ($ironL<1 || $clayL<1 || $woodL<1 || $cropL<1){?> -{"markup":"\n\t\t

\"\" Task 11: To Two.<\/h1>
”In there is always something to do! Extend one woodcutter, one clay pit, one iron mine and one cropland to level 2 each.”<\/i>

Order:<\/p>Extend one of each resource tile to level 2.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 13: To Two.<\/h1>
”In there is always something to do! Extend one woodcutter, one clay pit, one iron mine and one cropland to level 2 each.”<\/i>

Order:<\/p>Extend one of each resource tile to level 2.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 11: To Two.<\/h1>
”Very good, your village grows and thrives!”<\/i>

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

<\/div>\n\t\t","number":15,"reward":{"wood":60,"clay":50,"iron":40,"crop":30},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} +{"markup":"\n\t\t

\"\" Task 13: To Two.<\/h1>
”Very good, your village grows and thrives!”<\/i>

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

<\/div>\n\t\t","number":13,"reward":{"wood":60,"clay":50,"iron":40,"crop":30},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} - -{"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":99} +{"markup":"\n\t\t

\"\" Task 14: 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":"-14","reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} -{"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":99} +{"markup":"\n\t\t

\"\" Task 14: 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":14,"reward":{"wood":50,"clay":30,"iron":60,"crop":20},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} -getTypeLevel(15); if ($mainbuilding<3){?> -{"markup":"\n\t\t

\"\" Task 13: Main Building<\/h1>
”Your master builders need a main building level 3 to erect important buildings such as the marketplace or barracks.”<\/i>

Order:<\/p>Extend your main building to level 3.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 15: Main Building<\/h1>
”Your master builders need a main building level 3 to erect important buildings such as the marketplace or barracks.”<\/i>

Order:<\/p>Extend your main building to level 3.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 13: Main Building<\/h1>
”Well done. The main building level 3 has been completed.\r\n

\r\nWith this upgrade your master builders cannot only construct more types of buildings but also do so faster.”<\/i>

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

<\/div>\n\t\t","number":17,"reward":{"wood":75,"clay":75,"iron":40,"crop":40},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":0} +{"markup":"\n\t\t

\"\" Task 15: Main Building<\/h1>
”Well done. The main building level 3 has been completed.\r\n

\r\nWith this upgrade your master builders cannot only construct more types of buildings but also do so faster.”<\/i>

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

<\/div>\n\t\t","number":15,"reward":{"wood":75,"clay":75,"iron":40,"crop":40},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":0} -userinfo['id']; @@ -695,78 +604,78 @@ $ranking->procRankReq($temp); $displayarray = $database->getUserArray($temp['uid'],1); $rRes=$ranking->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":99} +{"markup":"\n\t\t

\"\" Task 16: 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":"-16","reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} -{"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":99} +{"markup":"\n\t\t

\"\" Task 16: 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":16,"reward":{"wood":100,"clay":90,"iron":100,"crop":60},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} - -{"markup":"\n\t\t

\"\" Task 15: Weapons or Dough<\/h1>
”Now you have to make a decision: Either trade peacefully or become a dreaded warrior.\r\n

\r\nFor the marketplace you need a granary, for the barracks you need a rally point.”<\/i>

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

\"\" Task 17: Weapons or Dough<\/h1>
”Now you have to make a decision: Either trade peacefully or become a dreaded warrior.\r\n

\r\nFor the marketplace you need a granary, for the barracks you need a rally point.”<\/i>

<\/span><\/div>\n\t\t
<\/div>\n\t\t","number":"-17","reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} -getTypeLevel(16); if ($rallypoint==0){ ?> -{"markup":"\n\t\t

\"\" Task 16: Military<\/h1>
”A brave decision. To be able to send troops you need a rally point.\r\n

\r\nThe rally point must be built on a specific building site. The building site<\/a> is located on the right side of the main building, slightly below it. The building site itself is curved.”<\/i>

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

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

\"\" Task 18: Military<\/h1>
”A brave decision. To be able to send troops you need a rally point.\r\n

\r\nThe rally point must be built on a specific building site. The
building site<\/a> is located on the right side of the main building, slightly below it. The building site itself is curved.”<\/i>

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

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

\"\" Task 16: Military<\/h1>
”Your rally point has been erected! A good move towards world domination!”<\/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":99} +{"markup":"\n\t\t

\"\" Task 18: Military<\/h1>
”Your rally point has been erected! A good move towards world domination!”<\/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":18,"reward":{"wood":80,"clay":90,"iron":60,"crop":40},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} -getTypeLevel(19); if ($barrack==0){ ?> -{"markup":"\n\t\t

\"\" Task 17: Barracks<\/h1>
”Now you have a main building level 3 and a rally point. That means that all prerequisites for building barracks have been fulfilled.\r\n

\r\nYou can use the barracks to train troops for fighting.”<\/i>

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

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

\"\" Task 19: Barracks<\/h1>
”Now you have a main building level 3 and a rally point. That means that all prerequisites for building barracks have been fulfilled.\r\n

\r\nYou can use the barracks to train troops for fighting.”<\/i>

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

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

\"\" Task 17: Barracks<\/h1>
”Well done... The best instructors from the whole country have gathered to train your men\u2019s fighting skills to top form.”<\/i>

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

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

\"\" Task 19: Barracks<\/h1>
”Well done... The best instructors from the whole country have gathered to train your men\u2019s fighting skills to top form.”<\/i>

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

<\/div>\n\t\t","number":19,"reward":{"wood":70,"clay":100,"iron":90,"crop":100},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} -unitall; $unarray=array("","Legionnaire", "Clubswinger","Phalanx"); $unarray2=array("","u1", "u11","u21"); if ($units[$unarray2[$session->userinfo['tribe']]]<2){ ?> -{"markup":"\n\t\t

\"\" Task 18: Train.<\/h1>
”Now that you have barracks you can start training troops. Train two userinfo['tribe']];?>.”<\/i>

Order:<\/p>Please train 2 userinfo['tribe']];?>.<\/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 20: Train.<\/h1>
”Now that you have barracks you can start training troops. Train two userinfo['tribe']];?>.”<\/i>

Order:<\/p>Please train 2 userinfo['tribe']];?>.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 18: Train.<\/h1>
”The foundation for your glorious army has been laid.

\r\nBefore sending your army off to plunder you should check with the Combat-Simulator<\/a> to see how many troops you need to successfully fight one rat without losses.”<\/i>

Your reward:<\/p>\"Lumber\"300  \"Clay\"320  \"Iron\"360  \"Crop\"570  <\/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} - - -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":99} - -{"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":99} - - -getTypeLevel(10); -if ($warehouse==0){ ?> -{"markup":"\n\t\t

\"\" Task 17: Warehouse<\/h1>
”Not only Crop has to be saved. Other resources can go to waste as well if they are not stored correctly. Construct a Warehouse!”\r\n

\r\n<\/i>

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

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

\"\" Task 17: Warehouse<\/h1>
”Well done, your Warehouse is complete...”<\/i>
Now you have fulfilled all prerequisites required to construct a Marketplace.

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

<\/div>\n\t\t","number":20,"reward":{"wood":70,"clay":120,"iron":90,"crop":50},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} +{"markup":"\n\t\t

\"\" Task 20: Train.<\/h1>
”The foundation for your glorious army has been laid.

\r\nBefore sending your army off to plunder you should check with the
Combat-Simulator<\/a> to see how many troops you need to successfully fight one rat without losses.”<\/i>

Your reward:<\/p>\"Lumber\"300  \"Clay\"320  \"Iron\"360  \"Crop\"570  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":20,"reward":{"wood":300,"clay":320,"iron":360,"crop":570},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} getTypeLevel(11); +if ($granary ==0){ ?> +{"markup":"\n\t\t

\"\" Task 18: 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":"-21","reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} + +{"markup":"\n\t\t

\"\" Task 18: 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":21,"reward":{"wood":80,"clay":90,"iron":60,"crop":40},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} + + +getTypeLevel(10); +if ($warehouse==0){ ?> +{"markup":"\n\t\t

\"\" Task 19: Warehouse<\/h1>
”Not only Crop has to be saved. Other resources can go to waste as well if they are not stored correctly. Construct a Warehouse!”\r\n

\r\n<\/i>

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

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

\"\" Task 19: Warehouse<\/h1>
”Well done, your Warehouse is complete...”<\/i>
Now you have fulfilled all prerequisites required to construct a Marketplace.

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

<\/div>\n\t\t","number":22,"reward":{"wood":70,"clay":120,"iron":90,"crop":50},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} + + +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 20: 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":"-23","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 20: 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":23,"reward":{"wood":300,"clay":320,"iron":360,"crop":570},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} -getResourceLevel($session->villages[0]); @@ -776,50 +685,50 @@ if($tRes['f5']>1){$clayL++;};if($tRes['f6']>1){$clayL++;};if($tRes['f16']>1){$cl if($tRes['f1']>1){$woodL++;};if($tRes['f3']>1){$woodL++;};if($tRes['f14']>1){$woodL++;};if($tRes['f17']>1){$woodL++;} if($tRes['f2']>1){$cropL++;};if($tRes['f8']>1){$cropL++;};if($tRes['f9']>1){$cropL++;};if($tRes['f12']>1){$cropL++;};if($tRes['f13']>1){$cropL++;};if($tRes['f15']>1){$cropL++;} if ($ironL<4 || $clayL<4 || $woodL<4 || $cropL<6){?> -{"markup":"\n\t\t

\"\" Task 19: Everything to 2.<\/h1>
”Now it's time again to extend the cornerstones of might and wealth! This time level 1 is not enough... it will take a while but in the end it will be worth it. Extend all your resource tiles to level 2!”<\/i>

Order:<\/p>Extend all resource tiles to level 2.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 21: Everything to 2.<\/h1>
”Now it's time again to extend the cornerstones of might and wealth! This time level 1 is not enough... it will take a while but in the end it will be worth it. Extend all your resource tiles to level 2!”<\/i>

Order:<\/p>Extend all resource tiles to level 2.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 19: Everything to 2.<\/h1>
”Congratulations! Your village grows and thrives...”<\/i>

Your reward:<\/p>15 Gold
<\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":22,"reward":{"gold":15},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} +{"markup":"\n\t\t

\"\" Task 21: Everything to 2.<\/h1>
”Congratulations! Your village grows and thrives...”<\/i>

Your reward:<\/p>15 Gold
<\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":24,"reward":{"gold":15},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} -////////////////// DE AICI INCEPE TOT \\\\\\\\\\\\\\\\\\\\\\\\\\\ -//Added by Shadow - cata7007@gmail.com / Skype : cata7007\\\\\\\\ +////////////////// DE AICI INCEPE TOT \\\\\\\\\\\\\\\\\\\\\\\ +//////////////////// Added by Shadow \\\\\\\\\\\\\\\\\\\\\\\\\ alliance; $allianceinfo = $database->getAlliance($aid); -if ($aid['alliance'] == 0){?> -{"markup":"\n\t\t

\"\" Task 20: Alliance.<\/h1>
”Teamwork is important in Travian. Players who work together organise themselves in alliances. Get an invitation from an alliance in your region and join this alliance. Alternatively, you can found your own alliance. To do this, you need a level 3 embassy.”<\/i>

Order:<\/p>Join an alliance or found one on your own.<\/div>
<\/span><\/div>\n\t\t

<\/div>\n\t\t","number":"-28","reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":0} +if ($aid==0){?> +{"markup":"\n\t\t

\"\" Task 22: Alliance.<\/h1>
”Teamwork is important in Travian. Players who work together organise themselves in alliances. Get an invitation from an alliance in your region and join this alliance. Alternatively, you can found your own alliance. To do this, you need a level 3 embassy.”<\/i>

Order:<\/p>Join an alliance or found one on your own.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 20: Alliance.<\/h1>
”Is good! Now you're in a union called <\/b>, and you're a member of their alliance with the faster you'll progress...”<\/i>

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

<\/div>\n\t\t","number":28,"reward":{"wood":240,"clay":280,"iron":180,"crop":100},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} +{"markup":"\n\t\t

\"\" Task 22: Alliance.<\/h1>
”Is good! Now you're in a union called <\/b>, and you're a member of their alliance with the faster you'll progress...”<\/i>

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

<\/div>\n\t\t","number":28,"reward":{"wood":240,"clay":280,"iron":180,"crop":100},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} getTypeLevel(15); if ($mainbuilding < 5){?> -{"markup":"\n\t\t

\"\" Task 21: Main Building to Level 5<\/h1>
”To be able to build a palace or residence, you will need a main building at level 5.”<\/i>

Order:<\/p>Upgrade your main building to level 5.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 23: Main Building to Level 5<\/h1>
”To be able to build a palace or residence, you will need a main building at level 5.”<\/i>

Order:<\/p>Upgrade your main building to level 5.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 21: Main Building to Level 5<\/h1>
”The main building is level 5 now and you can build palace or residence...”<\/i>

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

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

\"\" Task 23: Main Building to Level 5<\/h1>
”The main building is level 5 now and you can build palace or residence...”<\/i>

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

<\/div>\n\t\t","number":29,"reward":{"wood":600,"clay":750,"iron":600,"crop":300},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} getTypeLevel(11); if ($granary < 3){?> -{"markup":"\n\t\t

\"\" Task 22: Granary to Level 3.<\/h1>
”That you do not lose crop, you should upgrade your granary.”<\/i>

Order:<\/p>Upgrade your granary to level 3.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 24: Granary to Level 3.<\/h1>
”That you do not lose crop, you should upgrade your granary.”<\/i>

Order:<\/p>Upgrade your granary to level 3.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 22: Granary to Level 3.<\/h1>
”Granary is level 3 now...”<\/i>

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

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

\"\" Task 24: Granary to Level 3.<\/h1>
”Granary is level 3 now...”<\/i>

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

<\/div>\n\t\t","number":30,"reward":{"wood":900,"clay":850,"iron":600,"crop":300},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} getTypeLevel(10); if ($warehouse < 7){?> -{"markup":"\n\t\t

\"\" Task 23: Warehouse to Level 7.<\/h1>
”To make sure your resources won't overflow, you should upgrade your warehouse.”<\/i>

Order:<\/p>Upgrade your warehouse to level 7.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 25: Warehouse to Level 7.<\/h1>
”To make sure your resources won't overflow, you should upgrade your warehouse.”<\/i>

Order:<\/p>Upgrade your warehouse to level 7.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 23: Warehouse to Level 7.<\/h1>
”Warehouse has upgraded to level 7...”<\/i>

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

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

\"\" Task 25: Warehouse to Level 7.<\/h1>
”Warehouse has upgraded to level 7...”<\/i>

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

<\/div>\n\t\t","number":31,"reward":{"wood":1800,"clay":2000,"iron":1650,"crop":800},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} 4){$clayL++;};if($tRes['f6']>4){$clayL++;};if($tRes['f16']>4){$cl if($tRes['f1']>4){$woodL++;};if($tRes['f3']>4){$woodL++;};if($tRes['f14']>4){$woodL++;};if($tRes['f17']>4){$woodL++;} if($tRes['f2']>4){$cropL++;};if($tRes['f8']>4){$cropL++;};if($tRes['f9']>4){$cropL++;};if($tRes['f12']>4){$cropL++;};if($tRes['f13']>4){$cropL++;};if($tRes['f15']>4){$cropL++;} if ($ironL<4 || $clayL<4 || $woodL<4 || $cropL<6){?> -{"markup":"\n\t\t

\"\" Task 24: All to five!<\/h1>
”You will always need more resources. Resource tiles are quite expensive but will always pay out in the long term.”<\/i>

Order:<\/p>Upgrade all resources tiles to level 5.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 26: All to five!<\/h1>
”You will always need more resources. Resource tiles are quite expensive but will always pay out in the long term.”<\/i>

Order:<\/p>Upgrade all resources tiles to level 5.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 24: All to five!<\/h1>
”All resources were to level 5, the village's products have gone up and take a step forward...”<\/i>

Your reward:<\/p>\"Lumber\"1600  \"Clay\"1800  \"Iron\"1950  \"Crop\"1200  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":32,"reward":{"wood":1600,"clay":1800,"iron":1950,"crop":1200},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} +{"markup":"\n\t\t

\"\" Task 26: All to five!<\/h1>
”All resources were to level 5, the village's products have gone up and take a step forward...”<\/i>

Your reward:<\/p>\"Lumber\"1600  \"Clay\"1800  \"Iron\"1950  \"Crop\"1200  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":32,"reward":{"wood":1600,"clay":1800,"iron":1950,"crop":1200},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} -{"markup":"\n\t\t

\"\" Task 25: Palace or Residence?<\/h1>
”To found a new village, you will need settlers. Those you can train in either a palace or a residence.”<\/i>

Order:<\/p>Build a palace or residence to level 10.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 27: Palace or Residence?<\/h1>
”To found a new village, you will need settlers. Those you can train in either a palace or a residence.”<\/i>

Order:<\/p>Build a palace or residence to level 10.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 25: Palace or Residence?<\/h1>
had reached to level 10, you can now train settlers and found your second village. Notice the cultural points...”<\/i>

Your reward:<\/p>\"Lumber\"3400  \"Clay\"2800  \"Iron\"3600  \"Crop\"2200  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":33,"reward":{"wood":3400,"clay":2800,"iron":3600,"crop":2200},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} +{"markup":"\n\t\t

\"\" Task 27: Palace or Residence?<\/h1>
had reached to level 10, you can now train settlers and found your second village. Notice the cultural points...”<\/i>

Your reward:<\/p>\"Lumber\"3400  \"Clay\"2800  \"Iron\"3600  \"Crop\"2200  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":33,"reward":{"wood":3400,"clay":2800,"iron":3600,"crop":2200},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} unitall; $unarray2=array("","u10", "u20","u30"); if ($units[$unarray2[$session->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 28: 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 getProfileVillages($session->uid)); echo ${'cp'.$mode}[$total+1]; ?> 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 28: 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>

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} userinfo['tribe']]]<3){ $cp = CP;?> $vil = $database->getProfileVillages($session->uid); if (count($vil)<2){ ?> -{"markup":"\n\t\t

\"\" Task 27: New Village.<\/h1>
”There are a lot of empty tiles on the map. Find one that suits you and found a new village.”<\/i>

Order:<\/p>Found a new village.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 29: New Village.<\/h1>
”There are a lot of empty tiles on the map. Find one that suits you and found a new village.”<\/i>

Order:<\/p>Found a new village.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 27: New Village.<\/h1>
”I am proud of you! Now you have two villages and have all the possibilities to build a mighty empire. I wish you luck with this.”<\/i>

Your reward:<\/p>\"Lumber\"1600  \"Clay\"2000  \"Iron\"1800  \"Crop\"1300  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":35,"reward":{"wood":1600,"clay":2000,"iron":1800,"crop":1300},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} +{"markup":"\n\t\t

\"\" Task 29: New Village.<\/h1>
”I am proud of you! Now you have two villages and have all the possibilities to build a mighty empire. I wish you luck with this.”<\/i>

Your reward:<\/p>\"Lumber\"1600  \"Clay\"2000  \"Iron\"1800  \"Crop\"1300  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":35,"reward":{"wood":1600,"clay":2000,"iron":1800,"crop":1300},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} resarray['f40']; if ($wall==0){?> -{"markup":"\n\t\t

\"\" Task 28: Build a userinfo['tribe']];?><\/h1>
”Now that you have trained some soldiers, you should build a userinfo['tribe']];?> too. It increases the base defence and your soldiers will receive a defensive bonus.”<\/i>

Order:<\/p>Build a userinfo['tribe']];?>.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 30: Build a userinfo['tribe']];?><\/h1>
”Now that you have trained some soldiers, you should build a userinfo['tribe']];?> too. It increases the base defence and your soldiers will receive a defensive bonus.”<\/i>

Order:<\/p>Build a userinfo['tribe']];?>.<\/div>
<\/span><\/div>\n\t\t

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

\"\" Task 28: Build a userinfo['tribe']];?><\/h1>
”That's what I'm talking about. A userinfo['tribe']];?> Very useful. It increases the defence of the troops in the village.”<\/i>

Your reward:<\/p>\"Lumber\"1700  \"Clay\"2100  \"Iron\"1900  \"Crop\"1400  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":36,"reward":{"wood":1700,"clay":2100,"iron":1900,"crop":1400},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} +{"markup":"\n\t\t

\"\" Task 30: Build a userinfo['tribe']];?><\/h1>
”That's what I'm talking about. A userinfo['tribe']];?> Very useful. It increases the defence of the troops in the village.”<\/i>

Your reward:<\/p>\"Lumber\"1700  \"Clay\"2100  \"Iron\"1900  \"Crop\"1400  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":36,"reward":{"wood":1700,"clay":2100,"iron":1900,"crop":1400},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} -//Added by Shadow - cata7007@gmail.com / Skype : cata7007\\\\\\\\ +//////////////////// Added by Shadow \\\\\\\\\\\\\\\\\\\\\\\\ /////////////////////// AICI SE TERMINA TOTUL \\\\\\\\\\\\\\\\\\\\\\\ // End tasks message -updateUserField($_SESSION['username'],'quest','24',0); -$_SESSION['qst']= 24; ?> -{"markup":"\n\t\t

\"\" Tasks<\/h1>
”All tasks achieved!”<\/i>


<\/div>\n\t\t
<\/div>\n\t\t","number":23,"reward":false,"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":0} +updateUserField($_SESSION['username'],'quest','38',0); +$_SESSION['qst']= 38; ?> +{"markup":"\n\t\t

\"\" Tasks<\/h1>
”All tasks achieved!”<\/i>


<\/div>\n\t\t
<\/div>\n\t\t","number":37,"reward":false,"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":0} @@ -967,8 +876,8 @@ if ($_SESSION['qst_time']>= $time ){ ?> // End tasks message updateUserField($_SESSION['username'],'quest','24',0); -$_SESSION['qst']= 24; ?> +$database->updateUserField($_SESSION['username'],'quest','38',0); +$_SESSION['qst']= 38; ?> {"markup":"\n\t\t

\"\" Tasks<\/h1>
”All tasks achieved!”<\/i>


<\/div>\n\t\t
<\/div>\n\t\t","number":23,"reward":false,"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":0} @@ -978,7 +887,7 @@ $_SESSION['qst']= 24; ?> {"markup":"\n\t\t

\"\" Tasks<\/h1>
”Not loaded!”<\/i>
<\/span><\/div>\n\t\t
<\/div>\n\t\t","number":-25,"reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":0} + ?> {"markup":"\n\t\t