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.
bump
Frags now change after
to
Looking at other players still says you have ... 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: