You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just set this clone on a localhost and through the admin panel I was able to add users (Farms) but I didn't like the configuration of the users' villages so i changed it in the gameengine/admin/mods/addusers.php ... but I can't figure out what to change to add randome troops to these villages !! the line in the file is written like this
//insert units randomly generate the number of troops
$q = "UPDATE " . TB_PREFIX . "units SET u".(($tribe-1)*10+1)." = ".rand(100, 2000).", u".(($tribe-1)*10+2)." = ".rand(100, 2400).", u".(($tribe-1)*10+3)." = ".rand(100, 1600).", u".(($tribe-1)*10+4)." = ".rand(100, 1500).", u".(($tribe-1)*10+5)." = " .rand(48, 1700).", u".(($tribe-1)*10+6)." = ".rand(60, 1800)." WHERE vref = '".$wid."'";
mysqli_query($GLOBALS["link"], $q);
what do I change to make it executable when adding new users ???? I'm not a programmer btw so please use simple terminology thnx
The text was updated successfully, but these errors were encountered:
I just set this clone on a localhost and through the admin panel I was able to add users (Farms) but I didn't like the configuration of the users' villages so i changed it in the gameengine/admin/mods/addusers.php ... but I can't figure out what to change to add randome troops to these villages !! the line in the file is written like this
what do I change to make it executable when adding new users ???? I'm not a programmer btw so please use simple terminology thnx
The text was updated successfully, but these errors were encountered: