Hi otlanders,
I am using this script, so when one player kills another, it is to update my database, but it is not working, can anyone help me?
scripts
TFS 0.4 Creaturescript - topfrags
I am using this script, so when one player kills another, it is to update my database, but it is not working, can anyone help me?
XML:
<event type="kill" name="topfrags" event="script" value="topfrags.lua"/>
Lua:
local skulls = {SKULL_WHITE, SKULL_YELLOW, SKULL_RED, SKULL_BLACK}
function addPlayerFrag(cid, value)
db.executeQuery("UPDATE `players` SET `frags_all` = `frags_all` + " .. value .. " WHERE `id` = " .. getPlayerGUID(cid) .. ";")...