• 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.
how do i add guild wars to my website, it all works but how do i add the button?
 
@Nahruto:
Mmmm, ya lo hice, pero no me salia bien. Me salian errores del POT y lo hice de otra forma.

@Azuk:
Te debe funcionar igual... (It must work like 0.3.2 for example)

@lockjoint:
You must add it by C:\xampp\htdocs\layouts\tibiacom\layout.php
There.
 
Last edited:
Xampy, mi hermano borro Xampp de mi computadora :(! y tube q aser todo denuevo y aora me sale este error cuando voy asia la pagina de guilds


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:53 Stack trace: #0 C:\xampp\htdocs\wars.php(53): PDO->query('?? SELECT g....') #1 C:\xampp\htdocs\index.php(196): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\wars.php on line 53


no recuerdo como abia aglado eso antes
 
Eso significa que la columna 'g.war_time' no existe. En la linea 53 no hay nada de eso, asi que alomejor has hecho algo mal. Vuelve a hacer todo de nuevo a ver si no da más este error.

Saludos.
 
ah si, gracias :), se me avia olvidado q se me borro el database, y no ise el paso de poner esto
Code:
ALTER TABLE `guilds` 
ADD `invited_to` INT( 11 ) NOT NULL ,
ADD `invited_by` INT( 11 ) NOT NULL ,
ADD `in_war_with` INT( 11 ) NOT NULL ,
ADD `kills` INT( 11 ) NOT NULL ,
ADD `show` SMALLINT( 1 ) NOT NULL ,
ADD `war_time` INT( 11 ) NOT NULL ;

 CREATE TABLE `deaths_in_wars` (
`guild_id` INT( 11 ) NOT NULL ,
`player_id` INT( 11 ) NOT NULL ,
`killer_guild` INT( 11 ) NOT NULL ,
`killer` INT( 11 ) NOT NULL ,
`date` INT( 11 ) NOT NULL 
) ENGINE = MYISAM ;
 
@up:
Np, it will show that error if you don't have any guild in war yet. This bug and others more will be repaired on next update (this weekend).

Regards!
 
Please check the function: getGuildWarInfo(id)

The variable "ON" does not exist in the returned table by that function.
Check line 65 in the talkaction script. "getGuildWarInfo(myGuild).ON" will always return nil and therefore that command will never work.

Anyway, awesome release. Thank you. :)
 
Last edited:
Code:
Lua Script Error: [GlobalEvent Interface]
data/globalevents/scripts/wars.lua:onThink

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

running 0.3.4pl2 on debian
someone knows what is wrong?
 
@up:
That 'error' is because you don't have any Guild in war yet. No problem about that, when you have two guilds in war, at least, you won't notice about that error.

@tatanpuga:
That's because you are using another server that is not TFS 0.3.

@Mazen:
I'll check it, thanks.

_____________________________________________

I'll release new version, maybe, next week.


Regards.
 
[Warning - Event::loadScript] Event onAttack not found (data/creaturescripts/scripts/war_attack.lua)

I have the scripts all right.
 
What TFS version do you use?
 
GUYS GIVE THIS MAN A BREAK DAMN! HE JUST FINISHED EXAMS AND YOU ARE ALL WINING ABOUT NEW SCRIPT, HE WILL FIX IT BUT ON HIS TIME SO SHUT THE F*CK UP ALL !

PS. rep++ xD
 
Xampy can u script that : one guild can fight not only with 1 guild ?:>
 
Status
Not open for further replies.
Back
Top