• 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!

Znote 1.0 Guild War System

Status
Not open for further replies.

Extrodus

|| Blazera.net ||
Premium User
Joined
Dec 22, 2008
Messages
2,736
Solutions
7
Reaction score
541
Location
Canada
Has anyone scripted out a basic guild war invite/accept/decline system for TFS 1.0 since it no longer uses /war-invite or /war-accept.

Any help is appreciated, currently using the latest Znote from: https://github.com/Znote/ZnoteAAC

Regards,
Extrodus
 
Stop spamming, either pay someone or do it yourself simple as that...

Dude, nobody did ask you anything. So please leave this thread if your not intrested.. cuz i dont care about guys like you, thinking they are something, if you dont want to help then dont. Cuz theres alot other people that could help.
 
Dude, nobody did ask you anything. So please leave this thread if your not intrested.. cuz i dont care about guys like you, thinking they are something, if you dont want to help then dont. Cuz theres alot other people that could help.
Look at the support board im one of those who helps the most... Stop talking shit you little ... I told you to stop spam a thread, if someone wants to help you, they will. Stop spamming the forum with your bullshit.
Either pay someone to do it or stfu. If you can't do it yourself don't expect to get it for free....
 
Look at the support board im one of those who helps the most... Stop talking shit you little ... I told you to stop spam a thread, if someone wants to help you, they will. Stop spamming the forum with your bullshit.
Either pay someone to do it or stfu. If you can't do it yourself don't expect to get it for free....

As i said before, stop posting this thread if you aint helping, and btw, gtf*
 
Why don't you just create a new thread? I don't think people will see that you're looking for a version for Gesior AAC when the thread title is Znote 1.0 Guild War System.
 
I managed to update the old /war and /balance commands to make them work in TFS 1.0
However, I noticed that the server misses primordial functions in the sources for the Guild Wars, like the one that updates the online players' emblems , and that means that when a war begins, players have to relog so they don't get a white skull and get their emblems.
The database table also misses the frags and payment columns, and ioguild.cpp barely has the getWarList function.

I just hope that the TFS devs could hurry with this essential feature that most servers are using now.

balance.lua http://pastebin.com/xnwZYcD5
war.lua (has a bug when player sets #days of war) http://pastebin.com/TZrvhtAc

compat.lua, function getGuildId needs fix:
Code:
function getGuildId(guildName)
    local resultId = db.storeQuery("SELECT `id` FROM `guilds` WHERE `name` = " .. db.escapeString(guildName))
    if resultId ~= false then
        local guildId = result.getDataInt(resultId, "id")
        result.free(resultId)
        return guildId
    end
    return false
end

SQL
Code:
ALTER TABLE `guild_wars` ADD COLUMN `frags` int(10) unsigned NOT NULL DEFAULT '0',
ALTER TABLE `guild_wars` ADD COLUMN `payment` bigint(20) unsigned NOT NULL DEFAULT '0',
 
I tried to use those Talkactions but i got an error at a location where it was written "explode" so i changed it to "split". I hope that was the correct change, I tried to look at the TFS 1.0 Lua Functions and replace it with the one that looked similar.

Now when I try to use the /war invite,Guild,50 nothing happens. Also when i try to insert those Queries i get an error telling me that the Syntax was incorrect near ' '. I tried myself to fix the syntax but once again with no success.

Any ideas why the command/query isn't working?
 
When i'm not in a guild and i try to use the /war command it says you need to be in a guild to use this command. However when i'm in a guild and a try to use it, nothing happens :(

Still trying myself but maybe one of you genius's might know better.

Thanks for your attention!
 
Nevermind i'm just an idiot. :p

The commands are working great, however for some reason after One guild sends and invitation to war with another, the other team is unable to accept. It says, "5:52 Currently there's no pending invitation for a war with XXXX."
 
nevermind it was my SQL query database that was mis-aligned. Thanks for the talkactions :*


Well I still have that, although they are in war mode, no frags are being counted and even if the limit was 10 frags, since no frags are being counted even after 10 deaths the war is still active.
 
Last edited:
how do you invite an guild to a war? is it through the website or ingame?

Im using latest znote thanks


thanks
 
the guild is invited but get a pag error, someone know what is wrong?
is when you invite another guild to a war, but the invite is ok only show that erros link i think someone know how fix or what is wrong?

Warning: Invalid argument supplied for foreach() in C:\xampp2\htdocs\ComodatoSite\guilds.php on line 370
You have invited Art Of Noise to war.

![image](https://cloud.githubusercontent.com/assets/5881404/2746520/90bea9a2-c749-11e3-93c4-f5a8c1cac35b.png)

and my file guilds.php

http://pastebin.com/CKFWkDwX


more informations about the bug at

https://github.com/Znote/ZnoteAAC/issues/47
 
Last edited:
Hi,

I m using this code, but when I do /war invite GUILD, 10

What is the commands for /war and /balance

OBS: I was running this commands on guild chat as requested before.
 
Status
Not open for further replies.
Back
Top