Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addusers.php troops #23

Open
Nx2UndU opened this issue Jul 26, 2021 · 0 comments
Open

addusers.php troops #23

Nx2UndU opened this issue Jul 26, 2021 · 0 comments

Comments

@Nx2UndU
Copy link

Nx2UndU commented Jul 26, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant