Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

TravianZ - yi12345

Status
Not open for further replies.
Newbie Spellweaver
Joined
Apr 13, 2013
Messages
15
Reaction score
0
no one can help? Please i wil install most updatet version.

OK guys but how to skip multihunter??? lool this is for me too problem.
When install create multihunter and in next i see only white page and nothing to see next to install.
And finaly how to fix this problem?

--> because this version can not be installed only to multihanter goes on but no, it is that it works otherwise than to be right? When you type in the password and give Multihunter create shows only a white page and nothing else.
 
Initiate Mage
Joined
May 12, 2013
Messages
1
Reaction score
0
I've sent you 2 pull requests in Github (under the nickname godslayer).
I'll be glad if you merge them, thanks!
 
Experienced Elementalist
Joined
Jul 13, 2008
Messages
205
Reaction score
38
Hello, i have the same problem like KEKEC.The installation stops on step 5 and 6 (if i try to skip step 5) with error :"HTTP Error 500 (Internal Server Error):" The version is latest for the moment from github:623 The host provider is byethost.
Regards.

PS:I think the problem is in hosting provider ,because i saw a part of database was created and when i try a new query i receive error about 'too much database query per hour'.The free hosting limit is 80 000 query/h I will try to install to another host and will update my post again with results.

PS2:The problem was in my free hosting.The main reason is restriction of MySQl server 80 000 query per hour.When i try to install to another hosting provider , everything with installer was ok.
 
Last edited:
Newbie Spellweaver
Joined
Apr 13, 2013
Messages
15
Reaction score
0
Thank you yi12345 and others to fix the problem now i can install normal this version and now work perfect.

The bugs we'll see where and what they are and keep re-messages.

Sorry for my bad English.
 
Experienced Elementalist
Joined
Jul 13, 2008
Messages
205
Reaction score
38
Updated:Fixed

Version:628 (from github)
Tribe:roman
Bug description:Raid unoccupied oasis bug/Attack another player/Traders send
When the player try to Raid the near unoccupied oasis with 1 unit ex:legionnare,in the 'Raid to Unoccupied Oasis' time is OK and the record created in 's1_a2b' ->'time_check' is correct the time is > of current time.When the count of units is selected and button OK pressed,the new records are created in 's1_attacks' and 's1_movement'.After this step 'Rally point' page is loaded (/build.php?id=39) and start refreshing nonstop because the 'at time' in 'arrival' table is smaller that current time.Something like sending troops in past ... The records in 's1_movement' -> 'starttime' and 'endtime' are same and time is already gone.If try to send another unit the record in starttime' and 'endtime' is same like in previous attack.



Regards

PS:I found the problem by my own.The problem is in table 'movement' .The columns type of 'starttime' and 'endtime' was 'float' and the time was always wrong in every attack/trade etc.After change the column type from float to INT(11) ,all my movement time bugs was gone.Please let me know of is there any better solution.

KEKEC, you can try to update your database with this query.Crate database backup before that.
The first 3 lines are optional, they will clear all records in'a2b,'attacks','movement'.Copy the lines bellow and execute SQL query from phpMyAdmin:

TRUNCATE s1_attacks;
TRUNCATE s1_a2b;
TRUNCATE s1_movement;


ALTER TABLE `s1_movement` CHANGE `starttime` `starttime` INT( 11 ) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `s1_movement` CHANGE `endtime` `endtime` INT( 11 ) UNSIGNED NOT NULL DEFAULT '0';
 
Last edited:
Newbie Spellweaver
Joined
Apr 13, 2013
Messages
15
Reaction score
0
I have a problem for excessive attacks and reinforcements who walk for too long, even though it is an oasis away 2 boxes go say that after 4 hours and more time you give a re-infestation occurs until the attack is exactly the same length of time as the previous reinforcement which is still walking.
This is currently what I usper deduced from players who have problems.
In other version is OK but bugs remain: (
 
Initiate Mage
Joined
May 27, 2013
Messages
1
Reaction score
0
Hi, how to make the units were not built for a second, but in milliseconds?​
 
Junior Spellweaver
Joined
Apr 8, 2012
Messages
102
Reaction score
9
You can't. But you can always alter in your MySQL database. Thats not recommended tho.
 
Skilled Illusionist
Joined
Mar 9, 2011
Messages
391
Reaction score
120
Vacation
You can activate vacation mode here, while in vacation mode you cannot be attacked. Please note that you can only activate vacation mode every 13 days. You will be logged out immediately once you activate vacation mode. It will be deactivated as soon as you first log in after activating it. You cannot activate the vacation mode if you're building a WW.
Activate vacation mode:

Can anyone make this module ?

And when you click on player says on his profile : This player is on a vacation.

Some code :

profile.tpl

public function setVacation ($pid)
{
$r = $this->provider->fetchRow ("SELECT *, UNIX_TIMESTAMP(vacation) vactime, UNIX_TIMESTAMP() now FROM p_players WHERE id=%s", Array ($pid));
if (intval ($r['now']) - intval ($r['vactime']) > $GLOBALS['GameMetadata']['vacation_activation_time'])
{
$this->provider->executeQuery ("UPDATE p_players p SET p.vacation=NOW() WHERE p.id=%s", Array ($pid));
return true;
}
return false;
}


profile.php


if (isset ($_POST['vacmode']) && $_POST['vacmode'] == 1)
{
if ($m->setVacation ($this->player->playerId))
{
$this->player->logOut();
$this->redirect ("index.php");
}
}


statistics.php

public function getPlayerList( $pageIndex, $pageSize, $tribeId )
{
return $tribeId == 0 ? $this->provider->fetchResultSet( "SELECT p.id, p.player_type, p.is_blocked, p.gold_num, p.name, p.alliance_id, p.alliance_name, p.total_people_count, p.villages_count, IF(vacation>last_login_date, 1, 0) is_vacation FROM p_players p WHERE p.player_type!=%s ORDER BY (p.total_people_count*10+p.villages_count) DESC, p.id ASC LIMIT %s,%s", array( PLAYERTYPE_TATAR, $pageIndex * $pageSize, $pageSize ) ) : $this->provider->fetchResultSet( "SELECT p.id, p.player_type, p.is_blocked, p.gold_num, p.name, p.alliance_id, p.alliance_name, p.total_people_count, p.villages_count, IF(vacation>last_login_date, 1, 0) is_vacation FROM p_players p WHERE p.player_type!=%s AND p.tribe_id=%s ORDER BY (p.total_people_count*10+p.villages_count) DESC, p.id ASC LIMIT %s,%s", array( PLAYERTYPE_TATAR, $tribeId, $pageIndex * $pageSize, $pageSize ) );
}

statistics.tpl

if ($this->dataList->row['player_type'] == PLAYERTYPE_ADMIN)
echo "color:#375fa5";
else if ($this->dataList->row['is_blocked'] == 1)
echo "color:#a11;text-decoration:line-through";
else if ($this->dataList->row['is_vacation'] == 1)
echo "color:#ffa500";
echo "\">";


profile.tpl again


if ($this->isAdmin && $this->player->playerId != $this->profileData['id'])
{
echo "<tr><td colspan=\"2\"><a href=\"profile.php?spy&uid=";
echo $this->profileData['id'];
echo "\">";
echo LANGUI_PROFILE_T22;
echo "</a></td></tr>";
}
echo "<tr><!--td colspan=\"2\" class=\"empty\"></td--></tr><tr><td colspan=\"2\" class=\"desc2\"><div class=\"desc2div\">";
if ($this->profileData["is_blocked"] == 0)
echo $this->getProfileDescription ($this->profileData['description2']);
echo "</div></td></tr></tbody></table></td><td class=\"desc1\"><div>";
if (trim ($this->profileData["avatar"]) != "")
{
if ($this->profileData["is_blocked"] == 1)
echo ('<div id="desctxt">This player has been banned.</div>');
else
{
$avatar = explode ("|", $this->profileData["avatar"]);
if ($avatar[1])
printf ('<div id="desctxt">%s</div>', $avatar[1]);
if ($avatar[0])
printf ('<img id="descimg" src="%s" alt=""/>', $avatar[0]);
}
}
if ($this->profileData["is_blocked"] == 0)
if ($this->profileData['is_vacation'] == 1)
echo ('<div id="desctxt">This player is on a vacation.</div>');
echo $this->getProfileDescription ($this->profileData['description1']);
echo "</div></td></tr></tbody></table><table cellpadding=\"1\" cellspacing=\"1\" id=\"villages\"><thead><tr><th colspan=\"3\">";
 
Last edited:
Initiate Mage
Joined
Jun 23, 2013
Messages
2
Reaction score
0
I finaly got travian installed, but when i login there is a problem
See the picture:
http://prntscr.com/1biyzf

Can anyone help me?
 
Last edited:
Newbie Spellweaver
Joined
Jun 25, 2013
Messages
7
Reaction score
3
empty quest windows

hi ,

i installed travianz and activated the quests but windows that open when you log on with the quest inside is empty and the content is loading forever

is there any way to fix this and make the small windows popup load the quest images inside it?
 
Initiate Mage
Joined
Jul 20, 2013
Messages
4
Reaction score
0
hello.I want to play travainz
i download form
 
Newbie Spellweaver
Joined
Jul 21, 2013
Messages
46
Reaction score
21
Re: empty quest windows

hi ,

i installed travianz and activated the quests but windows that open when you log on with the quest inside is empty and the content is loading forever

is there any way to fix this and make the small windows popup load the quest images inside it?

Hi
I also have this problem ^

and at the top of each page in the server there is this message :

Code:
[B]Warning[/B]:  mysql_fetch_array() expects parameter 1 to be resource, boolean given in [B]/home/travianp/public_html/GameEngine/Database/db_MYSQL.php[/B] on line [B]2949[/B]

can anyone help me with this please?

thanks in advance.
 
Skilled Illusionist
Joined
Mar 9, 2011
Messages
391
Reaction score
120
Re: empty quest windows

Put this code in Templates/Ajax/quest_core.tpl

PHP:
<?php

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|              .: PLEASE DONT'T REMOVE OR CHANGE THIS NOTICE :.               	|
| ---------------------------------------------------------------------------   |
|  Filename       quest_core.tpl	                                       	    |
|  Version        0.1                                                           |
|  Developed by:  DesPlus <desplus@gmail.com>                                   |
|  Edited by:     Marvin                                                        |
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

include("GameEngine/Village.php");

$uArray = $database->getUserArray($_SESSION['username'],0);

if($message->unread && !$message->nunread) { $messagelol = "i2"; }
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"; 
} 
$_SESSION['qst_time'] = $uArray['quest_time'];
if (isset($qact)){
 switch($qact) {
	case 'enter':
	$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':
	$database->updateUserField($_SESSION['username'],'quest','90',0);
	$_SESSION['qst']= 90;
	break;

	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.<br /><br />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':
	$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':
	$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':
	$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':
	$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':
	$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':
	$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':
	$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':
	$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':
	$database->updateUserField($_SESSION['username'],'quest','16',0);
	$_SESSION['qst']= 16;			
	break;
	
	case '17':
	$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':
	$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':
	$database->updateUserField($_SESSION['username'],'quest','19',0);
	$_SESSION['qst']= 19;			
	break;
	
	case '20':
	$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':
	$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],300,320,360,570,1);
	break;
	
	case '23':
	$database->updateUserField($_SESSION['username'],'quest','23',0);
	$_SESSION['qst']= 23;
	
	//Give Reward
	$gold=$database->getUserField($_SESSION['username'],'gold','username');
	$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']= 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':
	$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;
}

}

header("Content-Type: application/json;");
if($session->access!=BANNED){
      if($_SESSION['qst']== 0){
	  ?>

{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Welcome to <?php echo SERVER_NAME; ?>!<\/h1><br \/><i>”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><br \/><br \/><span id=\"qst_accpt\"><a class=\"qle\" href=\"javascript: qst_next('','enter'); \">To the first task.<\/a><a class=\"qri\" href=\"javascript: qst_fhandle();\">Look\u00a0around\u00a0on\u00a0your\u00a0own.<\/a><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/><br \/><br \/><br \/><a class=\"qri\" href=\"javascript: qst_next('','skip');\">Play no tasks.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"intro\"><\/div>\n\t\t","number":null,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":1}

<?php } elseif($_SESSION['qst']== 1){

//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";
			}	
      	}
if ($woodL<1){?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 1: Woodcutter<\/h1><br \/><i>”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><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Construct a woodcutter.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"wood\"><\/div>\n\t\t","number":"-1","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 1: Woodcutter<\/h1><br \/><i>”Yes, that way you gain more lumber.I helped a bit and completed the order instantly.”<\/i><br \/><br \/><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/><div class=\"rew\"><p class=\"ta_aw\">Your reward:<\/p>Woodcutter instantly completed.<br \/><\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','2');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"wood\"><\/div>\n\t\t","number":"-1","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php }?>

<?php } elseif($_SESSION['qst']== 2){ 

//Check one of Croplands is level 1 or upper 
$tRes = $database->getResourceLevel($session->villages[0]);
$cropL=$tRes['f2']+$tRes['f8']+$tRes['f9']+$tRes['f12']+$tRes['f13']+$tRes['f15'];
if ($cropL<1){?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 2: Crop<\/h1><br \/><i>”Now your subjects are hungry from working all day. Extend a cropland to improve your subjects' supply. Come back here once the building is complete.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Extend one cropland.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"farm\"><\/div>\n\t\t","number":"-2","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 2: Crop<\/h1><br \/><i>”Very good. Now your subjects have enough to eat again...”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p>1 day Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','3');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"farm\"><\/div>\n\t\t","number":2,"reward":{"plus":1},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php }?>

<?php } elseif($_SESSION['qst']== 3){ 

//Check the village name is changed or is default name

$vName=$village->vname;
if ($vName==$session->userinfo['username']."'s village"){?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/>Task 3: Your Village's Name<\/h1><br \/><i>”Creative as you are you can grant your village the ultimate name.\r\n<br \/><br \/>\r\nClick on 'profile' in the left hand menu and then select 'change profile'...”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Change your village's name to something nice.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"village_name\"><\/div>\n\t\t","number":"-3","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/>Task 3: Your Village's Name<\/h1><br \/><i>”Wow, a great name for their village. It could have been the name of my village!...”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>30  <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>60  <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>30  <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>20  <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','4');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"village_name\"><\/div>\n\t\t","number":3,"reward":{"wood":30,"clay":60,"iron":30,"crop":20},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php }?>

<?php } elseif($_SESSION['qst']== 4){

// Compare real player rank with submited rank
$temp['uid']=$session->userinfo['id'];
$ranking->procRankReq($temp);
$displayarray = $database->getUserArray($temp['uid'],1);
$rRes=$ranking->searchRank($displayarray['username'],"username");
if ($rRes!=$rSubmited){?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 4: Other Players<\/h1><br \/><i>”In <?php echo SERVER_NAME; ?> you play along with billions of other players. Click 'statistics' in the top menu to look up your rank and enter it here.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Look for your rank in the statistics and enter it here.<\/div><br \/><input id=\"qst_val\" class=\"text\" type=\"text\" name=\"qstin\" \/> <input onclick=\"qst_next('','rank',document.getElementById('qst_val').value)\" type=\"button\" value=\"complete task\"\/><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"rank\"><\/div>\n\t\t","number":-4,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 4: Other Players<\/h1><br \/><i>”Exactly! That's your rank.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>40  <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>30  <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>20  <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>30  <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','5');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t","number":4,"reward":{"wood":40,"clay":30,"iron":20,"crop":30},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php }?>

<?php } elseif($_SESSION['qst']== 5){ 

//Check one of Iron Mines and one of Clay Pites are level 1 or upper 
$tRes = $database->getResourceLevel($session->villages[0]);
$ironL=$tRes['f4']+$tRes['f7']+$tRes['f10']+$tRes['f11'];
$clayL=$tRes['f5']+$tRes['f6']+$tRes['f16']+$tRes['f18'];
if ($ironL<1 || $clayL<1){?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 5: Two Building Orders<\/h1><br \/><i>”Build an iron mine and a clay pit. Of iron and clay one can never have enough.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p><ul><li>Extend one iron mine.<\/li><li>Extend one clay pit.<\/li><\/ul><\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"clay_iron\"><\/div>\n\t\t","number":-5,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 5: Two Building Orders<\/h1><br \/><i>”As you noticed, building orders take rather long. The world of <?php echo SERVER_NAME; ?> will continue to spin even if you are offline. Even in a few months there will be many new things for you to discover.\r\n<br \/><br \/>\r\nThe best thing to do is occasionally checking your village and giving you subjects new tasks to do.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>50  <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>60  <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>30  <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>30  <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','6');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"clay_iron\"><\/div>\n\t\t","number":5,"reward":{"wood":50,"clay":60,"iron":30,"crop":30},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php }?>

<?php } elseif($_SESSION['qst']== 6){ 

//Check message is viewed or no
if ($message->unread || $RB==true){?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 6: Messages<\/h1><br \/><i>”You can talk to other players using the messaging system. I sent a message to you. Read it and come back here.\r\n<br \/><br \/>\r\nP.S. Don't forget: on the left the reports, on the right the messages.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Read your new message.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"msg\"><\/div>\n\t\t","number":"-6","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"i2","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 6: Messages<\/h1><br \/><i>”You received it? Very good.\r\n<br \/><br \/>\r\nHere is some Gold. With Gold you can do several things, e.g. extend your <b><font color=\"#71D000\">P<\/font><font color=\"#FF6F0F\">l<\/font><font color=\"#71D000\">u<\/font><font color=\"#FF6F0F\">s<\/font><\/b>-Account or increase your resource production.To do so click <a href=\"plus.php?id=3\"><font color=\"#000000\"><?php echo SERVER_NAME; ?><\/font> <b><font color=\"#71D000\">P<\/font><font color=\"#FF6F0F\">l<\/font><font color=\"#71D000\">u<\/font><font color=\"#FF6F0F\">s<\/font><\/b><\/a> in the left hand menu.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p>20 Gold<br \/><\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','7');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"msg\"><\/div>\n\t\t","number":6,"reward":{"gold":20},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php }?>

<?php } elseif($_SESSION['qst']== 7){ ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 7: Huge Army!<\/h1><br \/><i>”Now I've got a very special quest for you. I am hungry. Give me 200 crop!\r\n<br \/><br \/>\r\nIn return I will try to organize a huge army to protect your village.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Send 200 crop to the taskmaster.<\/div><br \/><img class=\"r4\" src=\"img\/x.gif\" title=\"Crop\" alt=\"Crop\" \/>200 <input type=\"hidden\" id=\"qst_val\" value=\"set\" \/><input onclick=\"javascript: qst_next('','8');\" name=\"qstin\" type=\"button\" value=\"Send crop.\" \/><br \/><font color='#FF0000'><?php if(isset($NoCrop)){echo $NoCrop;}?><font\/><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"army\"><\/div>\n\t\t","number":-8,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}

<?php } elseif($_SESSION['qst']== 8){

//Check additional of each resource upgraded to lvl1 or upper
$tRes = $database->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<4 || $clayL<4 || $woodL<4 || $cropL<6){?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/><?php echo $questc->q;?> Task 8: Everything to 1.<\/h1><br \/><i>”Now we should increase your resource production a bit. Extend all your resource tiles to level 1.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Extend all resource tiles to level 1.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":-12,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 8: Everything to 1.<\/h1><br \/><i>”Very good, your resource production just thrives.\r\n<br \/><br \/>\r\nSoon we can start with constructing buildings in the village.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>75  <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>80  <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>30  <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>50  <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','9');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":12,"reward":{"wood":75,"clay":80,"iron":30,"crop":50},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php }?>

<?php } elseif($_SESSION['qst']== 9){ 

//Check player Descriptions for [#0]
$Dave= strrpos ($uArray['desc1'],'[#0]');
$Dave2=strrpos ($uArray['desc2'],'[#0]');
if (!is_numeric($Dave) and !is_numeric($Dave2)){?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 9: Dove of Peace<\/h1><br \/><i>”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 <b>[#0]<\/b> to your profile.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Write the code <b>[#0]<\/b> into your profile by adding it to one of the two description fields.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"medal\"><\/div>\n\t\t","number":"-13","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 9: Dove of Peace<\/h1><br \/><i>”Well done! Now everyone can see what a great warrior the world is approached by.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p>2 day's Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','10');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"medal\"><\/div>\n\t\t","number":13,"reward":{"plus":2},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php }?>

<?php } elseif($_SESSION['qst']== 10){

//Check cranny builded or no
$cranny = $building->getTypeLevel(23);
if ($cranny == 0){?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 10: Cranny<\/h1><br \/><i>”It's getting time to erect a cranny. The world of <?php echo SERVER_NAME; ?> is dangerous.\r\n<br \/><br \/>\r\nMany players live by stealing other players' resources. Build a cranny to hide some of your resources from enemies.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Construct a Cranny.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"hide\"><\/div>\n\t\t","number":-14,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 10: Cranny<\/h1><br \/><i>”Well done, now it's way harder for your mean fellow players to plunder your village.\r\n<br \/><br \/>\r\nIf under attack, your villagers will hide the resources in the Cranny all on their own.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>150  <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>180  <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>30  <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>130  <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','11');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"hide\"><\/div>\n\t\t","number":14,"reward":{"wood":150,"clay":180,"iron":30,"crop":130},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php }?>

<?php } elseif($_SESSION['qst']== 11){

//Check one of each resource is lvl2 or upper
$tRes = $database->getResourceLevel($session->villages[0]);
$ironL=0;$clayL=0;$woodL=0;$cropL=0;
if($tRes['f4']>1){$ironL++;};if($tRes['f7']>1){$ironL++;};if($tRes['f10']>1){$ironL++;};if($tRes['f11']>1){$ironL++;}
if($tRes['f5']>1){$clayL++;};if($tRes['f6']>1){$clayL++;};if($tRes['f16']>1){$clayL++;};if($tRes['f18']>1){$clayL++;}
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<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 11: To Two.<\/h1><br \/><i>”In <?php echo SERVER_NAME; ?> there is always something to do! Extend one woodcutter, one clay pit, one iron mine and one cropland to level 2 each.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Extend one of each resource tile to level 2.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":"-15","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 11: To Two.<\/h1><br \/><i>”Very good, your village grows and thrives!”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>60  <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>50  <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>40  <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>30  <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','12');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":15,"reward":{"wood":60,"clay":50,"iron":40,"crop":30},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php }?>

<?php } elseif($_SESSION['qst']== 12){ 

//Check player submited number Barracks cost lumber
if ($lSubmited!=210){?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 12: Instructions<\/h1><br \/><i>”In the ingame instructions you can find short information texts about different buildings and types of units.\r\n<br \/><br \/>\r\nClick on 'instructions' at the left to find out how much lumber is required for the barracks.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Enter how much lumber barracks cost<\/div><br \/><input id=\"qst_val\" class=\"text\" type=\"text\" name=\"qstin\" \/> <input onclick=\"qst_next('','lumber',document.getElementById('qst_val').value)\" type=\"button\" value=\"complete task\"\/><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"cost\"><\/div>\n\t\t","number":"-16","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 12: Instructions<\/h1><br \/><i>”Exactly! Barracks cost 210 lumber.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>50  <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>30  <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>60  <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>20  <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','13');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t","number":16,"reward":{"wood":50,"clay":30,"iron":60,"crop":20},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php }?>

<?php } elseif($_SESSION['qst']== 13){

//Check main building lvl is 3 or upper
$mainbuilding = $building->getTypeLevel(15);
if ($mainbuilding<3){?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 13: Main Building<\/h1><br \/><i>”Your master builders need a main building level 3 to erect important buildings such as the marketplace or barracks.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Extend your main building to level 3.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"main\"><\/div>\n\t\t","number":-17,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 13: Main Building<\/h1><br \/><i>”Well done. The main building level 3 has been completed.\r\n<br><br>\r\nWith this upgrade your master builders cannot only construct more types of buildings but also do so faster.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>75  <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>75  <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>40  <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>40  <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','14');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"main\"><\/div>\n\t\t","number":17,"reward":{"wood":75,"clay":75,"iron":40,"crop":40},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":0}
<?php }?>

<?php } elseif($_SESSION['qst']== 14){

// Compare real player rank with submited rank
$temp['uid']=$session->userinfo['id'];
$ranking->procRankReq($temp);
$displayarray = $database->getUserArray($temp['uid'],1);
$rRes=$ranking->searchRank($displayarray['username'],"username");
if ($rRes!=$rSubmited){ ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 14: Advanced!<\/h1><br \/><i>”Look up your rank in the player statistics again and enjoy your progress.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Look for your rank in the statistics and enter it here.<\/div><br \/><input id=\"qst_val\" class=\"text\" type=\"text\" name=\"qstin\" \/> <input onclick=\"qst_next('','rank',document.getElementById('qst_val').value)\" type=\"button\" value=\"complete task\"\/><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"rank\"><\/div>\n\t\t","number":"-18","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 14: Advanced!<\/h1><br \/><i>”Well done! That's your current rank.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">100  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">90  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">100  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">60  <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','15');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":18,"reward":{"wood":100,"clay":90,"iron":100,"crop":60},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php }?>

<?php } elseif($_SESSION['qst']== 15){

// Ask from plyer ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 15: Weapons or Dough<\/h1><br \/><i>”Now you have to make a decision: Either trade peacefully or become a dreaded warrior.\r\n<br \/><br \/>\r\nFor the marketplace you need a granary, for the barracks you need a rally point.”<\/i><br \/><br \/><input type=\"hidden\" id=\"qst_val\" value=\"\" \/><input onclick=\"javascript: qst_next('','19');\" type=\"button\" value=\"Economy\" class=\"qb1\"\/><input onclick=\"javascript: qst_next('','16');\" type=\"button\" value=\"Military\" class=\"qb2\" \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"granary_rally\"><\/div>\n\t\t","number":"-19","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}

<?php } elseif($_SESSION['qst']== 16){

// Checking rollypoint builded or no
$rallypoint = $building->getTypeLevel(16);
if ($rallypoint==0){ ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 16: Military<\/h1><br \/><i>”A brave decision. To be able to send troops you need a rally point.\r\n<br \/><br \/>\r\nThe rally point must be built on a specific building site. The <a href=\"build.php?id=39\">building site<\/a> is located on the right side of the main building, slightly below it. The building site itself is curved.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Construct a rally point.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"granary_rally\"><\/div>\n\t\t","number":"-19","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 16: Military<\/h1><br \/><i>”Your rally point has been erected! A good move towards world domination!”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>80  <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>90  <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>60  <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>40  <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','17');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"granary_rally\"><\/div>\n\t\t","number":19,"reward":{"wood":80,"clay":90,"iron":60,"crop":40},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php } ?>

<?php } elseif($_SESSION['qst']==17){

// Checking barrack builded or no
$barrack = $building->getTypeLevel(19);
if ($barrack==0){ ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 17: Barracks<\/h1><br \/><i>”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<br><br>\r\nYou can use the barracks to train troops for fighting.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Construct barracks.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"barracks\"><\/div>\n\t\t","number":"-20","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 17: Barracks<\/h1><br \/><i>”Well done... The best instructors from the whole country have gathered to train your men\u2019s fighting skills to top form.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>70  <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>100  <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>90  <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>100  <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','18');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"barracks\"><\/div>\n\t\t","number":20,"reward":{"wood":70,"clay":100,"iron":90,"crop":100},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php } ?>

<?php } elseif($_SESSION['qst']== 18){

// Checking 2 warrior trained or no
$units = $village->unitall;
$unarray=array("","Legionnaire", "Clubswinger","Phalanx");
$unarray2=array("","u1", "u11","u21");
if ($units[$unarray2[$session->userinfo['tribe']]]<2){ ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 18: Train.<\/h1><br \/><i>”Now that you have barracks you can start training troops. Train two <?php echo $unarray[$session->userinfo['tribe']];?>.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Please train 2 <?php echo $unarray[$session->userinfo['tribe']];?>.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"units\"><\/div>\n\t\t","number":"-21","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 18: Train.<\/h1><br \/><i>”The foundation for your glorious army has been laid.<br \/><br \/>\r\nBefore sending your army off to plunder you should check with the <a href=\"warsim.php\">Combat-Simulator<\/a> to see how many troops you need to successfully fight one rat without losses.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>300  <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>320  <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>360  <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>570  <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','22');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"units\"><\/div>\n\t\t","number":21,"reward":{"wood":300,"clay":320,"iron":360,"crop":570},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php } ?>

<?php } elseif($_SESSION['qst']== 19){

// Checking granary builded or no
$granary = $building->getTypeLevel(11);
if ($granary ==0){ ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 16: Economy <\/h1><br \/><i>”Trade & Economy was your choice. Golden times await you for sure!”<br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Construct a Granary.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"granary_rally\"><\/div>\n\t\t","number":"-19","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 16: Economy <\/h1><br \/><i>”Well done! With the Granary you can store more wheat.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>80  <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>90  <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>60  <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>40  <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','20');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"granary_rally\"><\/div>\n\t\t","number":19,"reward":{"wood":80,"clay":90,"iron":60,"crop":40},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php } ?>

<?php } elseif($_SESSION['qst']==20){

// Checking warehouse builded or no
$warehouse = $building->getTypeLevel(10);
if ($warehouse==0){ ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 17: Warehouse<\/h1><br \/><i>”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<br><br>\r\n<\/i><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Construct Warehouse.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"warehouse\"><\/div>\n\t\t","number":"-20","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 17: Warehouse<\/h1><br \/><i>”Well done, your Warehouse is complete...”<\/i><br \/>Now you have fulfilled all prerequisites required to construct a Marketplace.<br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>70  <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>120  <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>90  <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>50  <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','21');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"warehouse\"><\/div>\n\t\t","number":20,"reward":{"wood":70,"clay":120,"iron":90,"crop":50},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php } ?>

<?php } elseif($_SESSION['qst']== 21){

// Checking market builded or no
$market = $building->getTypeLevel(17);
if ($market==0){ ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 18: Marketplace.<\/h1><br \/><i>”Construct a Marketplace so you can trade with your fellow players.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Please build a Marketplace.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"market\"><\/div>\n\t\t","number":"-21","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 18: Marketplace.<\/h1><br \/><i>”The Marketplace has been completed. Now you can make offers of your own and accept foreign offers! When creating your own offers, you should think about offering what other players need most to get more profit.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>200  <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>200  <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>700  <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>450  <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','22');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"market\"><\/div>\n\t\t","number":21,"reward":{"wood":300,"clay":320,"iron":360,"crop":570},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php } ?>

<?php } elseif($_SESSION['qst']== 22){

// Checking all resource lvl are 2 or upper
$tRes = $database->getResourceLevel($session->villages[0]);
$ironL=0;$clayL=0;$woodL=0;$cropL=0;
if($tRes['f4']>1){$ironL++;};if($tRes['f7']>1){$ironL++;};if($tRes['f10']>1){$ironL++;};if($tRes['f11']>1){$ironL++;}
if($tRes['f5']>1){$clayL++;};if($tRes['f6']>1){$clayL++;};if($tRes['f16']>1){$clayL++;};if($tRes['f18']>1){$clayL++;}
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<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 19: Everything to 2.<\/h1><br \/><i>”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><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Extend all resource tiles to level 2.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":"-22","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 19: Everything to 2.<\/h1><br \/><i>”Congratulations! Your village grows and thrives...”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p>15 Gold<br \/><\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','23');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":22,"reward":{"gold":15},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php } ?>

// End tasks message
<?php } elseif($_SESSION['qst']== 23){
$database->updateUserField($_SESSION['username'],'quest','24',0);
$_SESSION['qst']= 24; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Tasks<\/h1><br \/><i>”All tasks achieved!”<\/i><br \/><br \/><br \/><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":23,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":0}
<?php
} elseif($_SESSION['qst']==90){
$time=time();?>

{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr><td class=\"fc ra\">1</td><td class=\"desc\">1 day Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\"><a href=\"javascript: qst_next('','91');\">fetch</a></td></tr><tr><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":91,"reward":{"gold":15,"plus":1},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}


<?php
//2
} elseif($_SESSION['qst']==91){
$time=time();
if ($_SESSION['qst_time']>= $time ){ ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><div id=\"qst_resonway\" style=\"display:;\"><span id=\"qst_timer\"><?php echo $generator->getTimeFormat($uArray['quest_time']-time());?></div><div id=\"qst_reshere\" style=\"display:none;\"><a href=\"javascript: qst_next('','92');\">fetch</a></div></td></tr><tr><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":-92,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><a href=\"javascript: qst_next('','92');\">fetch</a></td></tr><tr><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":92,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php } ?>


<?php
//3
} else if($_SESSION['qst']==92){
$time=time();
if ($_SESSION['qst_time']>= $time ){ ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><div id=\"qst_resonway\" style=\"display:;\"><span id=\"qst_timer\"><?php echo $generator->getTimeFormat($uArray['quest_time']-time());?></div><div id=\"qst_reshere\" style=\"display:none;\"><a href=\"javascript: qst_next('','93');\">fetch</a></div></td></tr><tr><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":-93,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><a href=\"javascript: qst_next('','93');\">fetch</a></td></tr><tr><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":93,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php } ?>

<?php
//4
} else if($_SESSION['qst']==93){
$time=time();
if ($_SESSION['qst_time']>= $time ){ ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><div id=\"qst_resonway\" style=\"display:;\"><span id=\"qst_timer\"><?php echo $generator->getTimeFormat($uArray['quest_time']-time());?></div><div id=\"qst_reshere\" style=\"display:none;\"><a href=\"javascript: qst_next('','94');\">fetch</a></div></td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":-95,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><a href=\"javascript: qst_next('','94');\">fetch</a></td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":95,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php } ?>



<?php
//5
} else if($_SESSION['qst']==94){
$time=time();
if ($_SESSION['qst_time']>= $time ){ ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><div id=\"qst_resonway\" style=\"display:;\"><span id=\"qst_timer\"><?php echo $generator->getTimeFormat($uArray['quest_time']-time());?></div><div id=\"qst_reshere\" style=\"display:none;\"><a href=\"javascript: qst_next('','95');\">fetch</a></div></td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":-95,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><a href=\"javascript: qst_next('','95');\">fetch</a></td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":95,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php } ?>


<?php
//6
} else if($_SESSION['qst']==95){
$time=time();
if ($_SESSION['qst_time']>= $time ){ ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</div></td></tr><tr class=\"c\"><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><div id=\"qst_resonway\" style=\"display:;\"><span id=\"qst_timer\"><?php echo $generator->getTimeFormat($uArray['quest_time']-time());?></div><div id=\"qst_reshere\" style=\"display:none;\"><a href=\"javascript: qst_next('','96');\">fetch</a></div></td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":-96,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><a href=\"javascript: qst_next('','96');\">fetch</a></td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":96,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php } ?>

<?php
//7
} else if($_SESSION['qst']==96){
$time=time();
if ($_SESSION['qst_time']>= $time ){ ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</div></td></tr><tr class=\"c\"><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><div id=\"qst_resonway\" style=\"display:;\"><span id=\"qst_timer\"><?php echo $generator->getTimeFormat($uArray['quest_time']-time());?></div><div id=\"qst_reshere\" style=\"display:none;\"><a href=\"javascript: qst_next('','97');\">fetch</a></div></td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":-24,"reward":{"gold":20,"plus":2},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217  <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247  <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177  <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207  </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></b><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><a href=\"javascript: qst_next('','97');\">fetch</a></td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":24,"reward":{"gold":20,"plus":2},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php } ?>

// End tasks message
<?php } else if($_SESSION['qst']== 97){
$database->updateUserField($_SESSION['username'],'quest','24',0);
$_SESSION['qst']= 24; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Tasks<\/h1><br \/><i>”All tasks achieved!”<\/i><br \/><br \/><br \/><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":23,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":0}




<?php } else { ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Tasks<\/h1><br \/><i>”Not loaded!”<\/i><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"intro\"><\/div>\n\t\t","number":-25,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
<?php }}else{
      if($_SESSION['qst']== 0){
	  ?>

{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Welcome to <?php echo SERVER_NAME; ?>!<\/h1><br \/><i>”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><br \/><br \/><span id=\"qst_accpt\"><a class=\"qle\" href=\"banned.php\">To the first task.<\/a><a class=\"qri\" href=\"banned.php\">Look\u00a0around\u00a0on\u00a0your\u00a0own.<\/a><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/><br \/><br \/><br \/><a class=\"qri\" href=\"banned.php\">Play no tasks.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"intro\"><\/div>\n\t\t","number":null,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":1}


<?php } else {

 }} ?>
 
Newbie Spellweaver
Joined
Jul 21, 2013
Messages
46
Reaction score
21
how can I add farms in travianZ ? is it possible to do this in travainz?

I need to make some farms for players to raid. so I need the ability of creating many account at once with random population from for example 30 to 300.

can anyone here help me with this?
 
Newbie Spellweaver
Joined
Apr 28, 2013
Messages
11
Reaction score
0
What still bugs in the game? When will the corrected Alliance?

Thank's
 
Skilled Illusionist
Joined
Mar 9, 2011
Messages
391
Reaction score
120
how can I add farms in travianZ ? is it possible to do this in travainz?

I need to make some farms for players to raid. so I need the ability of creating many account at once with random population from for example 30 to 300.

can anyone here help me with this?

Gold Club ? Farmlist exists in Gold Club

What still bugs in the game? When will the corrected Alliance?

Thank's

What do you want to correct on Aliance ?
 
Newbie Spellweaver
Joined
Apr 28, 2013
Messages
11
Reaction score
0
The Alliance does not work like forum :)
Maybe because of an error display them to me off?
In which there are still bugs in the game like? Maybe I could help and fix the code.
 
Status
Not open for further replies.
Back
Top