undead mage
Active Member
Anyone has a script for a doll to remove frags? or that adds soul points?
function onUse(cid, item, fromPosition, itemEx, toPosition)
local soul = getPlayerSoul(cid)
if soul == 200 then
return doPlayerSendCancel(cid, "You can not add more soul")
end
doPlayerAddSoul(cid, 1)
doPlayerSendTextMessage(cid,25,"You added 1 soul.")
doRemoveItem(item.uid, 1)
return true
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
doPlayerSendTextMessage(cid,25,"Your frags have been removed.")
doRemoveItem(item.uid, 1)
end