Create a war system using PHP 7.2 and mysqli. The system will use plain mysqli and will intertwin within my current system.
I will need a two functions to add in to my attack system, one to see if the users are in a war together. The other for the war attack to count points.
users are defined by by their id's from a users table. (id,level, money, points, username,lastactive) are the main columns that will be needed.
Points calculations are defined in the attachment.
Will need a invite to war system.
System to see who is in a war to attack.
setup system to decided whether they are 5v5 or how ever many people decide to take place.
Cron system to decide on the winners every month (defined by constants).
system to declare winners and distribute money and points to the winners (defined by constants).
page to see all current wars and who is winning showing scores.
system to be able to decide if a regiment wants to receive war invites