• 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 a character kills a member of the versus guild, that characters doesn't die...

example:
Guilds -> Exterminio vs Violentos
Exterminio leader -> Garr
Violentos leader -> Marea

when Garr Kills Marea, Marea goes down to 0 hp, but doesn't die, and keep attacking Garr.

Garr sees Marea without name and without hp bar, and can't attack him anymore.



why? >.<


on the server says that there's an error on the creaturescript WarKill.lua: 4

script:
PHP:
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 playerPos = getPlayerPosition(cid)
    local targetPos = getPlayerPosition(target)
    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 getTileZoneInfo(playerPos) == 0 and getTileZoneInfo(targetPos) == 0 then
                    if getShowInfo(myGuild).S == 1 then
                                        registerDeathOne(myGuild, enemyGuild, cid, target)
                    else
                        registerDeathTwo(myGuild, enemyGuild, cid, target)
                    end    
                    addEvent(removeFrag, 150)
                else
                    doPlayerSendTextMessage(cid, 19, "Remember: in PvP zone the system doesn't register the frag.")
                end 
                        end
                end
        end
        return TRUE
end


whats wrong?
 
It happens also with the MOD, is a bug that no one knows why happens :S
 
why some players kill one, add multiple frags for Guild?

Srry English
 
why some players kill one, add multiple frags for Guild?

Srry English

because many players kill the same player, it should be re-scripted and be done with event onDeath, change structure for tables and php work to support multi killers.
 
and BEFORE (line 1760~):
PHP:
else
{
$guild_errors[] = 'You are not a leader of guild!';
}
}

Can someone share guilds.php file ? I can't find this part of file.
 
mine here, is giving a problem I would have the guilds.php?
 
Hi, I followed the guide and I get this error,
Code:
Parse error: syntax error, unexpected T_CASE in C: \ xampp \ htdocs \ index.php on line 5
line 5
Code:
case "buypoints";
        $subtopic = "buypoints";
        $topic = "Buy Points";
        include("buypoints.php");
    break;
case "wars";
        $subtopic = "wars";
        $topic = "Wars";
        include("wars.php");
    break;
can help me?:confused:
 
Last edited:
Code:
Maps = {
        ["map1"] =
                {
                        Guild1Pos = {x=238, y=442, z=12},
                        Guild2Pos = {x=244, y=442, z=12}
                },
        ["map2"] =
                {
                        Guild1Pos = {x=994, y=1004, z=6},
                        Guild2Pos = {x=1000, y=1003, z=6}

whats is this ? Should I make a map too lol ?
 
and BEFORE (line 1760~):
PHP:
else
{
$guild_errors[] = 'You are not a leader of guild!';
}
}

Can someone share guilds.php file ? I can't find this part of file.

BUMP!! it will help me to haha ,D

@0.3.6 gesior




BUUUMMMPPP
 
Last edited:
Code:
Maps = {
        ["map1"] =
                {
                        Guild1Pos = {x=238, y=442, z=12},
                        Guild2Pos = {x=244, y=442, z=12}
                },
        ["map2"] =
                {
                        Guild1Pos = {x=994, y=1004, z=6},
                        Guild2Pos = {x=1000, y=1003, z=6}

whats is this ? Should I make a map too lol ?
x2 :S
 
Status
Not open for further replies.
Back
Top