• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Fixed Guild War System for Website [include all]-[will not count frags] (TFS 0.3+)

Status
Not open for further replies.
Hey
i put the system and works, but when 1 player kill other player, and that player comes back, the player who survived has to be attacked first otherwise if the player who survived kills him again, he will take frag!
I little bit confuse, but my question is how i do to never get frag if in war, same if the player who survived attacks first??
 
What is the code to avoid breaking the layout?

Note: when i click on my website Guild War the bars <<<all open
 
guild war can only do not see it on the ACC maker (the silent options maker ACC) what to do?
 
not work on 0.3.5

This work for me on 0.3.3 but if i change tfs to 0.3.5 it not work :huh:

this is code
Code:
Lua Script Error: [GlobalEvent Interface] 
[18/08/2009 22:41:08] data/globalevents/scripts/wars.lua:onThink

[18/08/2009 22:41:08] data/lib/database.lua:60: [Result:getDataInt] Result not set!
[18/08/2009 22:41:08] stack traceback:
[18/08/2009 22:41:08] 	[C]: in function 'error'
[18/08/2009 22:41:08] 	data/lib/database.lua:60: in function 'getDataInt'
[18/08/2009 22:41:08] 	./GuildWar.lua:213: in function 'getGuildsWithWar'
[18/08/2009 22:41:08] 	data/globalevents/scripts/wars.lua:4: in function <data/globalevents/scripts/wars.lua:3>
[18/08/2009 22:41:08] [Error - GlobalEvents::think] Couldn't execute event: wars
 
Last edited:
I got this working relatively well on TFS 0.2.5 :D
 
hey i got this error pls Help ^^



Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'g.war_time' in 'field list'' in C:\xampp\htdocs\wars.php:58 Stack trace: #0 C:\xampp\htdocs\wars.php(58): PDO->query('?? SELECT g....') #1 C:\xampp\htdocs\index.php(239): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\wars.php on line 58
 
Great Xampy waited for this long time nice that someone putted effort in to fix this, thanks alot preciate this.!

rep+
 
Hello i have this problem
unbenanntgcn.jpg

i m sure that i put the GuildWar.lua in the folder where the exe. is
 
/talkactions/GuildWar.lua there also that is. globalevents/wars.lua, creaturescripts, you did not add the files.
__________________
klekSu.png

You are welcome on kleksoria.com!
Please visit new open tibia forum with it's own ots list. otservers.net!
 
Last edited:
It would be awsome if you could make this for TFS 0.2!
 
Lua:
[26/08/2009 15:00:46] Lua Script Error: [GlobalEvent Interface] 
[26/08/2009 15:00:46] data/globalevents/scripts/wars.lua:onThink
[26/08/2009 15:00:46] data/lib/database.lua:60: [Result:getDataInt] Result not set!
[26/08/2009 15:00:47] stack traceback:
[26/08/2009 15:00:47] 	[C]: in function 'error'
[26/08/2009 15:00:47] 	data/lib/database.lua:60: in function 'getDataInt'
[26/08/2009 15:00:47] 	./GuildWar.lua:212: in function 'getGuildsWithWar'
[26/08/2009 15:00:47] 	data/globalevents/scripts/wars.lua:4: in function <data/globalevents/scripts/wars.lua:3>
[26/08/2009 15:00:47] [Error - GlobalEvents::onThink] Couldn't execute event: wars
and i have followed the tutorial 3 times. changed every script 3 times aswell :p get that messsage every time. using tfs 0.3.4.

Also when i try to look on the invited guilds i get this

Lua:
The Following Errors Have Occurred:
# Guild with ID 0 doesn't exist.

1 more question. how do i add so you can invite more than 1 guild?
 
Last edited:
Lua:
[26/08/2009 15:00:46] Lua Script Error: [GlobalEvent Interface] 
[26/08/2009 15:00:46] data/globalevents/scripts/wars.lua:onThink
[26/08/2009 15:00:46] data/lib/database.lua:60: [Result:getDataInt] Result not set!
[26/08/2009 15:00:47] stack traceback:
[26/08/2009 15:00:47] 	[C]: in function 'error'
[26/08/2009 15:00:47] 	data/lib/database.lua:60: in function 'getDataInt'
[26/08/2009 15:00:47] 	./GuildWar.lua:212: in function 'getGuildsWithWar'
[26/08/2009 15:00:47] 	data/globalevents/scripts/wars.lua:4: in function <data/globalevents/scripts/wars.lua:3>
[26/08/2009 15:00:47] [Error - GlobalEvents::onThink] Couldn't execute event: wars
and i have followed the tutorial 3 times. changed every script 3 times aswell :p get that messsage every time. using tfs 0.3.4.

Also when i try to look on the invited guilds i get this

Lua:
The Following Errors Have Occurred:
# Guild with ID 0 doesn't exist.

1 more question. how do i add so you can invite more than 1 guild?


i have the same problem, who can fix it?
 
Status
Not open for further replies.
Back
Top