• 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.
Thank you!:p

@up:
I would like to give you rep++ back but:
Code:
You must spread some Reputation around before giving it to Zer0xe again.

I spreaded some rep++ to some people, but it shows me the same. // :confused:
 
Last edited:
Yes, It works perfectly, but there is one thing I dont understand. If player has 0 frags, he is still getting frag when killing his enemie. I asked some guys around and they said its not a bug, if so, why did you made it like that and how can I change it so 1st frag would not be counted? :eek:

Is that possible?
 
I get these errors:
[19/05/2009 13:23:37] Lua Script Error: [TalkAction Interface]
[19/05/2009 13:23:37] data/talkactions/scripts/GuildWar.lua:eek:nSay

[19/05/2009 13:23:37] data/lib/database.lua:60: [Result:getDataInt] Result not set!
[19/05/2009 13:23:37] stack traceback:
[19/05/2009 13:23:37] [C]: in function 'error'
[19/05/2009 13:23:37] data/lib/database.lua:60: in function 'getDataInt'
[19/05/2009 13:23:38] ./GuildWar.lua:225: in function 'guildExist'
[19/05/2009 13:23:38] data/talkactions/scripts/GuildWar.lua:9: in function <data/talkactions/scripts/GuildWar.lua:3>

[19/05/2009 13:37:04] Lua Script Error: [GlobalEvent Interface]
[19/05/2009 13:37:04] data/globalevents/scripts/wars.lua:eek:nThink

[19/05/2009 13:37:04] data/lib/database.lua:60: [Result:getDataInt] Result not set!
[19/05/2009 13:37:05] stack traceback:
[19/05/2009 13:37:05] [C]: in function 'error'
[19/05/2009 13:37:05] data/lib/database.lua:60: in function 'getDataInt'
[19/05/2009 13:37:05] ./GuildWar.lua:212: in function 'getGuildsWithWar'
[19/05/2009 13:37:05] data/globalevents/scripts/wars.lua:4: in function <data/globalevents/scripts/wars.lua:3>

Anyone know what's wrong?

I'm using TFS 0.3.4pl2



EDIT;
I get error when I click on the scores on website.
I mean first you go in so you see what guilds are in war, then you can click on the scores, ex. 1-0 and then you will be redirected to something else, but it doens't work. I get this error:
Fatal error: Call to undefined method OTS_Guild::getEnemy() in C:\xampp\htdocs\wars.php on line 258
 
Last edited:
Is that possible?

It removes your second frag. You never will have a third frag if you are killing someone in war with you. Also, you won't get any frag if you have 7 frags (p.e., 1 more = banned) and you kill someone that is in war with you. Only the first is counted.
 
I get these errors:
EDIT;
I get error when I click on the scores on website.
I mean first you go in so you see what guilds are in war, then you can click on the scores, ex. 1-0 and then you will be redirected to something else, but it doens't work. I get this error:

You got this error from the website because you are not using the PHP fixed file. That's on first post...

EDIT; Thanks for everybody who rep++ me! Got 2nd rep bar :w00t:
 
Fatal error: Call to a member function query() on a non-object in C:\xampplite\htdocs\wars.php on line 47
ive got this error =/
im using tfs 0.3.4 and all is working well
for the web im using latest nicaw, because i cant use gesior with this tfs version =/

ty! very nice script =)
 
Hello!
I didn't tested it on Nicaw, I doubt that it works...
This error, in Gesior's AAC, occurs because you are entering with:
Code:
http://localhost/wars.php
You must enter with:
Code:
http://localhost/index.php?subtopic=wars
In Gesior's AAC, I repeat... I don't know how it works with Nicaw, maybe I will re-edit it for Nicaw's AAC and make the PHP file for it, but I don't promise you nothing.
 
i dont know why but every time the interval on think occurs i get this error msg on console:

Code:
[21/05/2009 00:42:28] data/lib/database.lua:60: [Result:getDataInt] Result not set!
[21/05/2009 00:42:28] stack traceback:
[21/05/2009 00:42:28] 	[C]: in function 'error'
[21/05/2009 00:42:28] 	data/lib/database.lua:60: in function 'getDataInt'
[21/05/2009 00:42:29] 	./GuildWar.lua:212: in function 'getGuildsWithWar'
[21/05/2009 00:42:29] 	data/globalevents/scripts/wars.lua:4: in function <data/globalevents/scripts/wars.lua:3>
[21/05/2009 00:42:29] [Error - GlobalEvents::onThink] Couldn't execute event: wars

hope someone can help me.
 
@up:

What TFS version do you use?
 
I got this error:
Code:
[22/05/2009 22:06:15] Lua Script Error: [GlobalEvent Interface] 
[22/05/2009 22:06:15] data/globalevents/scripts/wars.lua:onThink

[22/05/2009 22:06:15] data/lib/database.lua:60: [Result:getDataInt]: Result not set!
[22/05/2009 22:06:15] stack traceback:
[22/05/2009 22:06:15] 	[C]: in function 'error'
[22/05/2009 22:06:15] 	data/lib/database.lua:60: in function 'getDataInt'
[22/05/2009 22:06:15] 	./GuildWar.lua:212: in function 'getGuildsWithWar'
[22/05/2009 22:06:15] 	data/globalevents/scripts/wars.lua:4: in function <data/globalevents/scripts/wars.lua:3>
[22/05/2009 22:06:16] [Error - GlobalEvents::onThink] Couldn't execute event: wars

Anyone can help me?

Edit: its like richiadicct, but! im using TFS 0.3.4 pl1, with forgotten.exe of pl2
 
@Lording & richiaddict:
I tested it with 0.3.4 pl2 (I think that the errors must be equal to pl1).
I found nothing. No errors for me:

[23/05/2009 14:39:55] The Forgotten Server, version 0.3.4 (Crying Damson)
[23/05/2009 14:39:55] A server developed by Elf, Talaturen, Lithium, Kiper, Kornholijo, KaczooH, slawkens & Macroman.
[23/05/2009 14:39:55] Visit our forum for updates, support and resources: http://otland.net.

[23/05/2009 14:39:56] >> Debugging: nothing.
[23/05/2009 14:39:56] >> Checking software version... up to date!

[23/05/2009 14:39:56] >> Loading config (config.lua)
[23/05/2009 14:39:56] > Using plaintext passwords
[23/05/2009 14:39:56] >> Loading RSA key
[23/05/2009 14:39:56] >> Starting SQL connection
[23/05/2009 14:39:56] >> Running Database Manager
[23/05/2009 14:39:57] > No tables were optimized.
[23/05/2009 14:39:57] >> Loading items
[23/05/2009 14:39:58] >> Loading groups
[23/05/2009 14:39:58] >> Loading vocations
[23/05/2009 14:39:58] >> Loading script systems
[23/05/2009 14:39:59] >> Loading chat channels
[23/05/2009 14:39:59] >> Loading outfits
[23/05/2009 14:39:59] >> Loading experience stages
[23/05/2009 14:39:59] >> Loading monsters
[23/05/2009 14:39:59] >> Loading map and spawns...
[23/05/2009 14:40:00] > Map size: 1000x1000.
[23/05/2009 14:40:00] > Map descriptions:
[23/05/2009 14:40:00] Saved with Remere's Map Editor 1.1.4
[23/05/2009 14:40:00] SimOne MapEditor 0.5.0
[23/05/2009 14:40:01] > Map loading time: 2.141 seconds.
[23/05/2009 14:40:02] > Data loading time: 0.391 seconds.
[23/05/2009 14:40:02] > Unserialization time for houses: 0 seconds.
[23/05/2009 14:40:03] > Unserialization time for map: 1.204 seconds.
[23/05/2009 14:40:03] >> Checking world type... PvP
[23/05/2009 14:40:03] >> Initializing game state modules and registering services...
[23/05/2009 14:40:03] > Global address: 127.0.0.1
[23/05/2009 14:40:03] > Local ports:
[23/05/2009 14:40:03] 7171 7172
[23/05/2009 14:40:03] >> All modules were loaded, server starting up...
[23/05/2009 14:40:03] >> Forgotten server Online!
 
Status
Not open for further replies.
Back
Top