Tormented Being
Member
how can i make this only do the query for the play that kills the creature?
Lua:
local dano = damage
function onKill(cid, target, damage, flags)
if isMonster(target) then
db.executeQuery("UPDATE `player_storage` SET `value` = `value` + ".. dano .." WHERE `key` = ".. 7854 .." WHERE `player_id` = ".. getPlayerGUID(cid) .."")
end
return true
end