Invite guild/accept invitation /cancel invitation/reject invitation - all on WWW.
Some information about TFS 1.0 wars:
- Because of TFS 1.0 limits all wars length must be 7 days [not really ].
- Not accepted/canceled/rejected invitations for wars disappear after server restart.
- You can start war anytime (you must relog after start war on www, if you don't want to get 'unjust' in game)
Statistics of wars on page of each guild:
This works only with TFS 1.0!
How to install [I will add on github after few days of tests]:
1. Replace content of pages/guilds.php file with:
http://paste.ots.me/560176/text
http://wklej.to/MZmZk/text
2. Replace content of pages/wars.php file with (you may also need to add link to layout):
http://paste.ots.me/560178/text
http://wklej.to/dx2qs/text
3. Create new file with name guildwar.php in folder classes and paste:
http://paste.ots.me/560177/text
http://wklej.to/pKWcF/text
Website is ready, you can start wars etc., but they will never finish
4. Now you must edit your server LUA script, open data/globalevents/scripts/startup.lua and under/over line:
paste:
REPORT BUGS IN THIS THREAD
Some information about TFS 1.0 wars:
- Because of TFS 1.0 limits all wars length must be 7 days [not really ].
- Not accepted/canceled/rejected invitations for wars disappear after server restart.
- You can start war anytime (you must relog after start war on www, if you don't want to get 'unjust' in game)
Statistics of wars on page of each guild:
This works only with TFS 1.0!
How to install [I will add on github after few days of tests]:
1. Replace content of pages/guilds.php file with:
http://paste.ots.me/560176/text
http://wklej.to/MZmZk/text
2. Replace content of pages/wars.php file with (you may also need to add link to layout):
http://paste.ots.me/560178/text
http://wklej.to/dx2qs/text
3. Create new file with name guildwar.php in folder classes and paste:
http://paste.ots.me/560177/text
http://wklej.to/pKWcF/text
Website is ready, you can start wars etc., but they will never finish
4. Now you must edit your server LUA script, open data/globalevents/scripts/startup.lua and under/over line:
PHP:
db.query("DELETE FROM `guild_wars` WHERE `status` = 0")
PHP:
db.query("UPDATE `guild_wars` SET `status` = 4, `ended` = " .. os.time() .. " WHERE `status` = 1 AND (`started` + 86400 * 7) < " .. os.time())
REPORT BUGS IN THIS THREAD
Last edited: