Quantcast
Channel: OTLand
Viewing all articles
Browse latest Browse all 32017

TFS 0.4 Creaturescript - topfrags

$
0
0
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?

XML:
    <event type="kill" name="topfrags" event="script" value="topfrags.lua"/>
scripts
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) .. ";")...
TFS 0.4 Creaturescript - topfrags

Viewing all articles
Browse latest Browse all 32017

Trending Articles