--50% kung lao %50 Vodkart
function onSay(cid, words, param)
local S = {
[3] = {price = 1000000,cobrar = true,msg = "Você perdeu seu white skull e frags.", premium = true},
[4] = {price = 3000000,cobrar = true,msg = "Você perdeu seu red skull e frags", premium = true},
[5] = {price = 5000000,cobrar = true,msg = "Você perdeu seu black skull e frags", premium = true},
}
local storage = 88888
local skull = S[getCreatureSkullType(cid)]
if(not skull) then
doPlayerSendCancel(cid,"Você nao está com nenhum tipo de skull.")
return TRUE
elseif skull.premium == true and not isPremium(cid) then
doPlayerSendCancel(cid,"Apenas players premium podem remover skull.")
return TRUE
elseif skull.cobrar == true and doPlayerRemoveMoney(cid, skull.price) == FALSE then
doPlayerSendCancel(cid,"Você não tem " .. skull.price .. " gps para remover sua skull.")
doSendMagicEffect(getPlayerPosition(cid), 2)
return TRUE
elseif getPlayerStorageValue(cid,storage) - os.time() <= 0 then
doPlayerSendCancel(cid,"Você precisa ser vip para remover sua skull.")
end
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
doCreatureSetSkullType(cid, 0)
doRemoveCreature(cid)
doPlayerSendTextMessage(cid, 22,skull.msg)
doSendMagicEffect(getPlayerPosition(cid), 26)
return TRUE
end
Ei, o outro que continua com problema, tente fazer isso:
Substitua
if (config.vip == "yes") and getPlayerStorageValue(cid,config.storage) - os.time() <= 0 then
Por
if getPlayerStorageValue(cid,config.storage) - os.time() <= 0 then




info
Grupo: Barão
Registrado: 27/04/09
Posts: 242
Reputação: +83
Gênero: Masculino
Char no Tibia: Askators
Blazingfire nao adianta mesmo sem vip ele me leva pra minha casa mas eu nao vo mais querer este script tem como vc tentar colocar nesse aqui agora?
--50% kung lao %50 Vodkart function onSay(cid, words, param) local S = { [3] = {price = 1000000,cobrar = true,msg = "Você perdeu seu white skull e frags.", premium = true}, [4] = {price = 3000000,cobrar = true,msg = "Você perdeu seu red skull e frags", premium = true}, [5] = {price = 5000000,cobrar = true,msg = "Você perdeu seu black skull e frags", premium = true}, } local skull = S[getCreatureSkullType(cid)] if(not skull) then doPlayerSendCancel(cid,"Você nao está com nenhum tipo de skull.") return TRUE elseif skull.premium == true and not isPremium(cid) then doPlayerSendCancel(cid,"Apenas players premium podem remover skull.") return TRUE elseif skull.cobrar == true and doPlayerRemoveMoney(cid, skull.price) == FALSE then doPlayerSendCancel(cid,"Você não tem " .. skull.price .. " gps para remover sua skull.") doSendMagicEffect(getPlayerPosition(cid), 2) return TRUE end db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")") doCreatureSetSkullType(cid, 0) doRemoveCreature(cid) doPlayerSendTextMessage(cid, 22,skull.msg) doSendMagicEffect(getPlayerPosition(cid), 26) return TRUE end