• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[GESIOR2012] Wars on WWW [TFS 1.0 only] - beta version

thanks bro that fixed mine :) any idea how to add the guildwars to the dropdown menu, it only shows it under the guilds name thanks
 
go to your layout.php...search for :

PHP:
<a href='?subtopic=guilds'>
  <div id='submenu_guilds' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
    <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>


    <div id='ActiveSubmenuItemIcon_guilds' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
    <div class='SubmenuitemLabel'>Guilds</div>
    <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
  </div>
</a>

now, under paste this:

PHP:
<a href='?subtopic=wars'>
  <div id='submenu_wars' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
    <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>


    <div id='ActiveSubmenuItemIcon_wars' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
    <div class='SubmenuitemLabel'><font color=RED><b>Guilds War</b></font></div>
    <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
  </div>
</a>
 
I have 1 problem in GUILDS.php

Fatal error: Call to a member function fetchAll() on a non-object in

Please help me!
 
I created guild everything is ok, but just I can't manage it. Maybe some problem with guild table, any sulutions?
 
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 :p ].
- 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:
gwarss.PNG


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 :D
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")
paste:
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

I have installed your system completed its work but, all wars have a duration of 10 to 20 minutes and then run out, why does this happen?
 
Back
Top