Solução para o error na database.
CREATE TABLE IF NOT EXISTS `city_war` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`GuildName_A` varchar(255) NOT NULL,
`GuildFrags_A` tinyint(4) unsigned NOT NULL DEFAULT '0',
`GuildName_B` varchar(255) NOT NULL,
`GuildFrags_B` tinyint(4) unsigned NOT NULL DEFAULT '0',
`War_Time` int(11) NOT NULL DEFAULT '0',
`War_Map` varchar(255) NOT NULL,
`War_Mode` int(11) NOT NULL DEFAULT '0',
`War_PlayersLimit` int(11) NOT NULL DEFAULT '0',
`War_Status` int(11) NOT NULL DEFAULT '0',
`War_DateEnd` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
Depois vá em data/libs/citywar_lib.lua
Linha 275.
doBroadcastMessage("[City War]\n" .. war.challengerGuildName .. " convidou a guild " .. war.challengedGuildName .. "\nA guerra sera na cidade de " .. war.city .. "\nSerao " .. war.players .. " jogadores para cada time. \nSerao " .. war.time .. " minutos de guerra.\nO Lider da guild tem 5 minutos para aceitar o convite.\nDigite: !citywar accept")
db.executeQuery("INSERT INTO `city_war` (`id`, `GuildName_A`, `GuildFrags_A`, `GuildName_B`, `GuildFrags_B`, `War_Time`, `War_Map`, `War_Mode`, `War_PlayersLimit`, `War_Status`, `War_DateEnd`) VALUES ('0','" .. war.challengerGuildName .. "', '0', '" .. war.challengedGuildName .. "', '0', '" .. war.time .. "', '" .. war.city .. "', '" .. war.mode .. "', '" .. war.players .. "', '1', '" .. os.time() + (war.time * 60 * 1000) .. "');")
return setmetatable(war, {__index = self}, addEvent(CityWar.checkWar, 5 * 60 * 1000, war.city))
Só modificar.
Agora o error no script não consegui resolver ainda. Na hora que aceita ele gera um erro na chamada a função "accept".
Digite: !citywar accept".
[0:44:15.961] [Error - TalkAction Interface]
[0:44:15.961] data/talkactions/scripts/citywar_talkaction.lua:onSay
[0:44:15.962] Description:
[0:44:15.962] (internalGetPlayerInfo) Player not found when requesting player info #11
[0:44:15.962] [Error - TalkAction Interface]
[0:44:15.962] data/talkactions/scripts/citywar_talkaction.lua:onSay
[0:44:15.962] Description:
[0:44:15.962] (luaDoPlayerSendTextMessage) Player not found