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

Lua Removing all frags and skulls script error

Sultinho

www.titania-global.com
Joined
May 20, 2009
Messages
109
Reaction score
2
My script is globalevent:

Look my globalevents.xml:

Code:
<globalevent name="frags" interval="1000" event="script" value="frags.lua"/>

And script:

Code:
function onTime()
doBroadcastMessage("All frags and Skulls are removede. Re-log please.")
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
doCreatureSetSkullType(cid, 0)
return true
end

- - - Updated - - -

BUMP

- - - Updated - - -

BUMP
 
Lua:
function onTime()
doBroadcastMessage("All frags and Skulls are removede. Re-log please.")
db.query("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
doCreatureSetSkullType(cid, 0)
return true
end
 
What TFS version have you? try changed
Ontime or Onthinkfor Ontimer - made by you get Old version TFS.. and not works Ontime
Lua:
function onTime()
doBroadcastMessage("All frags and Skulls are removede. Re-log please.")
db.query("UPDATE killers SET unjustified = 0;")
doCreatureSetSkullType(cid, 0)
return true
end
 
Last edited:
Lua:
function onThink(interval, lastExecution)
if tostring(os.date("%X")):sub(1, 5) == "00:00" then
doBroadcastMessage("All frags and Skulls are removede. Re-log please.")
db.executeQuery("UPDATE killers SET unjustified = 0;")
end
return true
end

tag
Code:
<globalevent name="CleanFrags" interval="60" event="script" value="script name.lua"/>
 
Back
Top