Ai galera,trago a vocês um removedor de frags que encontrei na net.
Entre em data/actions/script, crie um arquivo .lua e renomeie para Removefrags.lua dentro coloque:
function onUse(cid, item, fromPosition, item2, toPosition)
local nonremskulls = {red = SKULL_RED, white = SKULL_WHITE, black = SKULL_BLACK}
if getPlayerStorageValue(cid,1800) == 10 then
doCreatureSay(cid, "You can not remove your frags and their skulls.", TALKTYPE_ORANGE_1)
else if getPlayerLevel(cid) >= 10 then
doCreatureSay(cid, "Your Frags were successfully removed.", TALKTYPE_ORANGE_1)
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
doCreatureSetSkullType(cid,0)
doSendMagicEffect(fromPosition, 37)
doRemoveItem(item.uid, 1)
setPlayerStorageValue(cid,1800,20)
return TRUE
else
doCreatureSay(cid, "Only people level 10 can use this item.", TALKTYPE_ORANGE_1)
end
end
end
Agora entre em data/actions/actions.xml, e coloque :
<action itemid="5468" script="removefrags.lua"/>
Abraço!!!
Dedicado a membros que ajudaram no script.