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!

Troop MAX LIMIT

Newbie Spellweaver
Joined
Sep 2, 2012
Messages
19
Reaction score
1
HOW TO INCREASE TROOP LIMIT IN YOUR VILLAGE?

File: /GameEngine/Technology.php

LIne:
PHP:
if($controlloTruppe['u'.$i] >= "1000000")

Finally found it, was looking for it long time.

 
Last edited:
Skilled Illusionist
Joined
Mar 9, 2011
Messages
391
Reaction score
120
Lol , that code is a prevent for double troops (it`s a temporary "fix"). If you ask me in git , i`ll told you where to remove that limit :)

Because I limit that possibility from Technology.php.

That why all servers not works properly because everyone cheats :)

Find in GameEngine/Technology.php that code :

PHP:
	public function getUnitList() {

After that will find

PHP:
	//FIX BY MisterX
  	$controlloTruppeInRinforzo = $database->getEnforceControllTroops($village->wid);
     	for($i=1;$i<=50;$i++) {
     	if($controlloTruppeInRinforzo['u'.$i] >= "30000000")
     	mysql_query("UPDATE ".TB_PREFIX."enforcement set u".$i." = '0' where vref = $village->wid");
     	}
	//FIX BY Shadow and made by NIKO28
	$controlloTruppe = $database->getUnit($village->wid);
   	for($i=1;$i<=50;$i++) {
   	if($controlloTruppe['u'.$i] >= "10000000")
   	mysql_query("UPDATE ".TB_PREFIX."units set u".$i." = '0' where vref = $village->wid");
   	}

Remove that lines.

Theoretically if play fair , you cannot made more then 10 million troops and 30 million reinforcement
 
Last edited:
Newbie Spellweaver
Joined
Sep 2, 2012
Messages
19
Reaction score
1
yes you can, i just sent all of my troops to my capital in x1000 server and it's over 10m, so imagine if someone else sends you deff or off, so you have even more, it really depends on how fast server is, because if one troop is 1 sec and you make troops in 20 village, then you make 10m fast, but if server is slow then you don't
 
Skilled Illusionist
Joined
Mar 9, 2011
Messages
391
Reaction score
120
Because never will exist a real travian server with 1000 xp !!!
 
Back
Top