• 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!

TFS 1.X+ TFS 1.3 onLook show frags and deaths

DaBlauwk

Psychedelic
Joined
Jun 9, 2014
Messages
41
Reaction score
3
Location
The Moon
Hello, having a problem with TFS 1.3, 8.6 adding onLook frags and deaths
I tried to add CreatureEvent - TFS 1.0 KDR System! (https://otland.net/threads/tfs-1-0-kdr-system.221595/) to my server but kdr doesn't change
Nothing changes in the database and nothing changes on the onLook, its still 0 frags and 0 deaths.
Also if looking at other player it still says you, not he or she.
Thanks in advance.
Post automatically merged:

bump
Post automatically merged:

Frags now change after
Lua:
function onKill(player, target, damage, flags)
        if isPlayer(target) == true then
            db.query("UPDATE `players` SET `frags` = `frags` + 1 WHERE id = " .. getPlayerGUID(player) .. ";")
            doCreatureSay(player, '+1 Frag!', TALKTYPE_ORANGE_1)
        end
    return true
 end

to
Lua:
function onKill(player, target, damage, flags)
        if creature:isPlayer(target) == true then
            db.query("UPDATE `players` SET `frags` = `frags` + 1 WHERE id = " .. getPlayerGUID(player) .. ";")
            doCreatureSay(player, '+1 Frag!', TALKTYPE_ORANGE_1)
        end
    return true
 end

Looking at other players still says you have ... frags and ... deaths
 
Last edited:
Top