• 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.
when you tested with tfs 0.3.5 you just played the file "guildwarsystem.xml" folder in the mods is ran the controls (talkactions)?
waru.jpg
 
Last edited:
Cannot understand what you write. Write in Brazilian then...
You must add the "guildWarSystem.xml" to your OTServer/mods folder (e.g. "C:\Documents and Setting\Xampy\Escritorio\OTServer\mods\") and delete from "creaturescripts.xml" (creaturescripts folder), "globalevents.xml" (globalevents folder), "talkactions.xml" (talkactions folder) and "functions.lua" (lib folder) the respesctive lines you copied.
 
-English-
I did all this ...
the TFS is not loading the file "guildwarsystem.xml"
none of the settings in this file is working.
-spanish-
Yo hice todo esto ...
el TFS no se carga el archivo "guildwarsystem.xml"
ninguna de las opciones en este archivo no está funcionando.
-Português-
fiz tudo isto...
o tfs não está carregando o arquivo "guildwarsystem.xml"
nenhuma das configurações deste arquivo está funcionando.

hehe
is horrible not to speak in English ...
=´[
 
Show me your entire console log.
 
When entering the war guilds, they are automatically teleported to the area of war?

TFS 0.3.6

Nope, it only counts frags on website, etc. I removed the /war-challenge talkaction because it was insecure (player from enemy guild could teleport all members from both guilds whenever he want) and I'll add it another time when I'll fix it.
 
More like, as it removes even the player guild killing another player, away from war he wins frags? For the place of war I put a PvP Zone (do not know if it's PVP zone itself)!
 
What????? Sorry, I don't understand.
 
excuse the delay is that I went to church ... xD
looks oh my log ...
\ /
log1p.jpg

log2k.jpg

Gotta do not set anything aside from playing the file "guildwarsystemm.xml" in the "mods"?
 
What????? Sorry, I don't understand.

Maybe he means that the frags in pvp-zone are counted, and they shouldn't be counted, that was what I understood.

Anyways, did you received my PM with OTS_Player.php?
 
Type what I understood by this system is that the place of war which is also the pvp zone to not get frags or lose loot right?
Or do you need?
 
Xampy, About that "You need to be offline to join guild" Some players also have it when they are OFFLINE. And as you said about the ONLINE = 1(online) 0 (offline). I checked the player and he had ONLINE =0 and still couldnt join the guild...

Could u help me..
And for a reason the war system rly dont work on my OT (0.3.6pl1) People keep getting frags and I just followed ur tutorial.
 
one TFS 0.3.5 that has managed to run this system?
I ... sript using TFS 0.3.4 work ... only time that the player was going to die that he was with "0" of life and not die. This problem is the script ... Too bad I do an idea to fix ...

who have TFS 0.3.5 and was able to use this system ... Help me.
= P
thanks ...
 
I tested on 0.3.4pl2, 0.3.5pl1 and 0.3.6(pl1) and I didn't get neither any error in console nor any error in webpage.
I'll try to improve the system...
 
one TFS 0.3.5 that has managed to run this system?
I ... sript using TFS 0.3.4 work ... only time that the player was going to die that he was with "0" of life and not die. This problem is the script ... Too bad I do an idea to fix ...

who have TFS 0.3.5 and was able to use this system ... Help me.
= P
thanks ...

I had the same problems you need to use the install from 0.3.4 and the warkill from newest. then make a fix on line 113 that checks if it isnt 0.
 
I change what the warkill?

local PZ = createConditionObject(CONDITION_INFIGHT)
setConditionParam(PZ, CONDITION_PARAM_TICKS, getConfigInfo('whiteSkullTime'))

function onKill(cid, target)

if isPlayer(cid) == TRUE and isPlayer(target) == TRUE then

local GUID = getPlayerGUID(cid)
local NAME = getPlayerName(cid)
local namet = getPlayerName(target)
local skull = getCreatureSkullType(cid)
local fragTime = getConfigInfo('timeToDecreaseFrags')
local amount = getPlayerRedSkullTicks(cid)
local frags = math.floor((amount / fragTime) + 1)
local cidd = cid

local function removeFrag(cid)

local amountt = getPlayerRedSkullTicks(cidd)
local fragss = math.floor((amountt / fragTime) + 1)

if fragss > frags then
doPlayerSetRedSkullTicks(cidd, amount)
doPlayerSendTextMessage(cidd, 21, "Frag from "..namet.." wasn't counted.")
end

if skull == SKULL_WHITE then
if getCreatureSkullType(cidd) == SKULL_RED then
doCreatureSetSkullType(cidd, SKULL_WHITE)
doPlayerSetRedSkullTicks(cidd, 0)
end
end
end

local myGuild = getPlayerGuildId(cid)
local enemyGuild = getPlayerGuildId(target)

if myGuild ~= 0 and enemyGuild ~= 0 then
if enemyGuild == getGuildWarInfo(myGuild).With then
doAddCondition(cid, PZ)
if getShowInfo(myGuild).S == 1 then
registerDeathOne(myGuild, enemyGuild, cid, target)
else
registerDeathTwo(myGuild, enemyGuild, cid, target)
end
addEvent(removeFrag, 150)
end
end
end
return TRUE
end
 
Status
Not open for further replies.
Back
Top