• 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 would it be if i want to load or /reload de script? :S
cant be reloaded? distro autodetects it when server gets started?
 
Thanks for this! Rep++, It counts frag and everything works except one thing ;P

I get frags even if I kill someone that is versus me :( It shows no error somewhere,

Edit: Oh I saw this error now:

Code:
[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
 
Last edited:
anyone please how do i make the server load a mod :S:S:S:S

>> Running Database Manager
> No tables were optimized.
>> Loading items
>> Loading groups
>> Loading vocations
>> Loading script systems
>> Loading chat channels
>> Loading outfits
>> Loading experience stages
>> Loading monsters
>> Loading map and spawns...
> Map size: 65000x65000.
 
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!
 
OK, thanks for answers.. well i have tried once again to make it work, i get no errors @ console.. but kill still doesnt count ... think some people is hving the same problem.. anyone please?
 
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?
 
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?


Also it counts the double when I kill someone..
 
I have problem. Svargrond arena + this war guild don't work.

PHP:
<event type="kill" name="ArenaKill" event="script" value="arenakill.lua"/>

PHP:
<event type="kill" name="WarKill" event="script" value="war_kill.lua"/>

When someone die registre ArenaKill not, WarKill.
Someone help me??
 
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 o_O
 
Just be patient since people got real life ;)
Thanks for be patient :D!

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 o_O
Also it counts the double when I kill someone..
i cant get the kills get counted :S....
Use the new war_kill.lua file posted in main thread.:peace:
Lua:
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
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?
I'll check it tomorrow.:$
 
Status
Not open for further replies.
Back
Top