[30/10/2009 13:31:05] Lua Script Error: [GlobalEvent Interface]
[30/10/2009 13:31:05] data/globalevents/scripts/wars.lua:onThink
[30/10/2009 13:31:06] data/lib/database.lua:60: [Result:getDataInt] Result not set!
[30/10/2009 13:31:06] stack traceback:
[30/10/2009 13:31:06] [C]: in function 'error'
[30/10/2009 13:31:06] data/lib/database.lua:60: in function 'getDataInt'
[30/10/2009 13:31:06] ./GuildWar.lua:212: in function 'getGuildsWithWar'
[30/10/2009 13:31:06] data/globalevents/scripts/wars.lua:4: in function <data/globalevents/scripts/wars.lua:3>
[30/10/2009 13:31:06] [Error - GlobalEvents::think] Couldn't execute event: wars
mods only work with tfs 3.5pl1+
Yeah!!! works great thanks rep + +
@edit
Now just remove the frags are not counted in the game because you have given white skull and there are not counted by the
Not Working for me, i kill player and i take RED Skulls, Frags and etc :/
XAMMPYY HELP!
When I'm trying to do; /war-challenge all I get is; Your guild is not in a war. Using the all in one package. How do I fix this?
<event type="kill" name="ArenaKill" event="script" value="arenakill.lua"/>
<event type="kill" name="WarKill" event="script" value="war_kill.lua"/>
Thanks for be patient !Just be patient since people got real life
There is a bug on tfs 0.3.5pl1
For example when 2 guilds are in war, when for example 7 players kill one player it counts as 7 frags, not only 1
Also it counts the double when I kill someone..
Use the new war_kill.lua file posted in main thread.eace:i cant get the kills get counted :S....
dofile("./GuildWar.lua")
local PZ = createConditionObject(CONDITION_INFIGHT)
setConditionParam(PZ, CONDITION_PARAM_TICKS, getConfigInfo('whiteSkullTime'))
function onKill(cid, target, lastHit)
if isPlayer(cid) == TRUE and isPlayer(target) == TRUE then
local myGuild = getPlayerGuildId(cid)
local enemyGuild = getPlayerGuildId(target)
if myGuild ~= 0 and enemyGuild ~= 0 then
if enemyGuild == getGuildWarInfo(myGuild).With then
doAddCondition(cid, PZ)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "This frag will not count!")
if lastHit == TRUE then
registerDeath(myGuild, enemyGuild, cid, target)
end
end
end
end
return TRUE
end
I'll check it tomorrow.:$When I'm trying to do; /war-challenge all I get is; Your guild is not in a war. Using the all in one package. How do I fix this?