• 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.
Can you tell me how to change it xamppy? :)
Of course.

Go to xampp/htdocs/ and open guilds.php file.
Find the line 707~, and after:
Code:
if(!$is_invited) {
$guild_errors[] = 'Character '.$player->getName().' isn\'t invited to guild <b>'.$guild->getName().'</b>.';
}
paste this:
Code:
if($invited->isOnline()) {
$guild_errors[] = 'You must logout the character <b>'.$player->getName().'</b> before accept the invitation.';
}
 
Thanks Xampy it works ;) Rep++

Also i have a idea to insert in ur War system (only for 0.3.6 i think). Like RL tibia when you are in war with a guild then you get a 'green' tag and the enemy a 'red' tage.
Could you make that? would be nice ! :)
 
:)

It isn't possible. It can be done with C++, I think it wasn't implemented in TFS yet.
 
One bug left now XD

When i search a char and click on his guild i get:

The Following Errors Have Occurred:
# Invalid guild name format.

I get it since i changed what u told me to :)
Can u fix it =D
 
Hmmm, what I changed only affects to acceptinvite action. Nothing to be with show guild.
That's because you changed something in characters.php.

Go to your characters.php, and find the line 64~ and change this:
Code:
			{
				$guild_id = $rank_of_player->getGuild()->getId();
				$guild_name = $rank_of_player->getGuild()->getName();
				if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
				$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Guild membership:</TD><TD>'.$rank_of_player->getName().' of the <a href="index.php?subtopic=guilds&action=show&guild='.$guild_id.'">'.$guild_name.'</a></TD></TR>';
			}
by this:
Code:
			{
				$guild_name = $rank_of_player->getGuild()->getName();
				if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
				$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Guild membership:</TD><TD>'.$rank_of_player->getName().' of the <a href="index.php?subtopic=guilds&action=show&guild='.$guild_name.'">'.$guild_name.'</a></TD></TR>';
			}
 
Last edited:
Hehe another problem ^^

Someone players get "Your not offline" but infact they are offline...
Even if they are 1 hour offline they keep getting the msg..

Can you help me :)
 
tutorial worked perfectly on my server ...
despite that at the time a player from the guild "A" kill a guild "B", does the following problem ...
the player who was to have died did not die despite having see "0"
\ /
imagemtvu.jpg


the Kafkaesque commands (eg "/ war-invite, / war-reject, / war-cancel ..."), is working perfectly, this error only when a player from one of the guilds enemy dies ... and it begins to appear the following log in TFS...
\/
imagemmms.jpg


my tfs is 3.0.5, which tutorial should I follow?
 
Last edited:
Hehe another problem ^^

Someone players get "Your not offline" but infact they are offline...
Even if they are 1 hour offline they keep getting the msg..

Can you help me :)

Yee, because if your server crash in any moment, people who were online will have 'online = 1' in phpmyadmin (SQL line blah blah, idk how to explain it). So you must add in your start.lua from creaturescripts:
Code:
db.executeQuery("UPDATE players SET online =0 WHERE online=1;")


tutorial worked perfectly on my server ...
despite that at the time a player from the guild "A" kill a guild "B", does the following problem ...
the player who was to have died did not die despite having see "0"
\ /
imagemtvu.jpg


the Kafkaesque commands (eg "/ war-invite, / war-reject, / war-cancel ..."), is working perfectly, this error only when a player from one of the guilds enemy dies ... and it begins to appear the following log in TFS...
\/
imagemmms.jpg


my tfs is 3.0.5, which tutorial should I follow?
You followed the wrong tutorial. You must follow this one:
http://otland.net/324722-post1.html
Don't forget that you must delete the scripts you copied in your server, since they are for TFS 0.3.4.
 
I followed this tutorial did not understand the first part
1)Add this file to mods folder (mods folder is inside otserver folder) and call it guildWarSystem.xml:
asks me to create a file named guildwarsystem.xml in the mods ...
not have this folder on my surce, where I put this file?
\/
surce.jpg
 
Before data folder, not inside data folder (where the config.lua is, there's the mods folder).
 
get it! leave more ".xml" even? file or leave as ".lua"

obs:writing this ruin the fact that I am Brazilian ..
writing to all the googletraslate ...
heheh
=P
 
ok did the tutorial you gave me right ...
my server opens normally ... more commands (war-reject, invite-war, war-canecel ...) do not work ...
would not have to add these commands in the "data / talkactions?
your tutorial does not mention anything to type ...
what i do now ...?

Puedo borrar todos los archivos de la "war" ... (Ejemplo: warkill.lua, waratack.lua, guildwars.lua ...)
borra todos los archivos en "war" para empezar de 0 ...
hasta ahora sólo poner en mi guildwarsystem.xml OT surce el archivo en el "mods" ...
¿qué debo hacer ahora?

Nota: El sistema de la war del sitio de mi servidor es perfecto a cabo, lo que falta arurmar configuración del servidor propio.
 
Last edited:
get it! leave more ".xml" even? file or leave as ".lua"

obs:writing this ruin the fact that I am Brazilian ..
writing to all the googletraslate ...
heheh
=P
I don't understand this post xd.

ok did the tutorial you gave me right ...
my server opens normally ... more commands (war-reject, invite-war, war-canecel ...) do not work ...
would not have to add these commands in the "data / talkactions?
your tutorial does not mention anything to type ...
what i do now ...?

Puedo borrar todos los archivos de la "war" ... (Ejemplo: warkill.lua, waratack.lua, guildwars.lua ...)
borra todos los archivos en "war" para empezar de 0 ...
hasta ahora sólo poner en mi guildwarsystem.xml OT surce el archivo en el "mods" ...
¿qué debo hacer ahora?

Nota: El sistema de la war del sitio de mi servidor es perfecto a cabo, lo que falta arurmar configuración del servidor propio.
Hahaha, Spanglish??? xD
Yes, you must delete those old scripts (warkill, warattack, the globalevent, the talkactions, etc). Don't forget to remove the functions from data/lib/functions.lua
 
I don't understand this post xd.


Hahaha, Spanglish??? xD
Yes, you must delete those old scripts (warkill, warattack, the globalevent, the talkactions, etc). Don't forget to remove the functions from data/lib/functions.lua

Brazilian'm realidad
xD
Lo hice todo eliminado ... ok ...
guildwarsystem.xml poner el archivo en los mods ...
no funciona en la actualidad exige (war-invite, war-cancel, war-accept, war-reject..)
¿qué debo hacer?

Obs: Hablo español porque me parece más fácil
xD
 
no funciona en la actualidad exige (war-invite, war-cancel, war-accept, war-reject..)
What does it mean? That talkactions doesn't work?
 
Status
Not open for further replies.
Back
Top