Red skull
function onUse(cid, item, fromPosition, item2, toPosisition)
local config={
RemoveOnUse = "yes" -- remover o item ao usar ("yes" or "no")
}
if getCreatureSkullType(cid) == SKULL_RED then
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
doCreatureSetSkullType(cid, 0)
doCreatureSay(cid, "Your frags and skulls is cleaned!", 19)
doSendMagicEffect(getPlayerPosition(cid), 26)
if (config.RemoveOnUse == "yes") then
doRemoveItem(item.uid, 1)
end
else
doPlayerSendCancel(cid,"You don't have red skull.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
return TRUE
end
Black Skull
function onUse(cid, item, fromPosition, item2, toPosisition)
local config={
RemoveOnUse = "yes" -- remover o item ao usar ("yes" or "no")
}
if getCreatureSkullType(cid) == SKULL_BLACK then
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
doCreatureSetSkullType(cid, 0)
doCreatureSay(cid, "Your frags and skulls is cleaned!", 19)
doSendMagicEffect(getPlayerPosition(cid), 26)
if (config.RemoveOnUse == "yes") then
doRemoveItem(item.uid, 1)
end
else
doPlayerSendCancel(cid,"You don't have Black Skull.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
return TRUE
end






info
Grupo: Campones
Registrado: 17/07/10
Posts: 22
Reputação: 0
Tipo do script:Remover Black skull e red skull
Protocolo (versão do Tibia):8.6
Servidor utilizado: Mix Yourots 0.0.4
Nível de experiência: iniciante
Adicionais/Informações:
Queria um item que removesse o black e o red skull
mais seria um item pra kda skull por exemplo um pro red skull e um pro black skull
Por favor mim ajudem vlws
By:DangeX