Esse script é meu, tente o novo:
--- skull remover by kakilo - quinto script
function onSay(cid, words, param, channel)
if (getCreatureSkullType(cid) == SKULL_BLACK) then
if doPlayerRemoveMoney(cid, 200000) then
doCreatureSetSkullType(cid, SKULL_NONE)
doPlayerSendTextMessage(cid, 22, "Your soul was been cleaned.")
else
doPlayerSendTextMessage(cid, 22, "You need 200.000 gold pieces to remove the black skull")
end
end
if (getCreatureSkullType(cid) == SKULL_RED) then
if doPlayerRemoveMoney(cid, 100000) then
doCreatureSetSkullType(cid, SKULL_NONE)
doPlayerSendTextMessage(cid, 22, "Your soul was been cleaned.")
else
doPlayerSendTextMessage(cid, 22, "You need 100.000 gold pieces to remove the red skull")
end
end
if (getCreatureSkullType(cid) == SKULL_WHITE) then
if doPlayerRemoveMoney(cid, 10000) then
doCreatureSetSkullType(cid, SKULL_NONE)
doPlayerSendTextMessage(cid, 22, "Your soul was been cleaned.")
else
doPlayerSendTextMessage(cid, 22, "You need 10.000 gold pieces to remove the white skull")
end
end
if (getCreatureSkullType(cid) == SKULL_NONE) then
doPlayerSendTextMessage(cid, 22, "Your soul clean like water!")
end
return TRUE
end
Está dando algum erro?
Abraços.









info
Grupo: Banidos
Registrado: 14/02/10
Posts: 50
Reputação: +5
EU TENTEI colocar um talkaction de remover skull no meu servidor e nao consegui...
ai em Data>talkactions>scripts
criei um arquivo lua com o nome skull.lua
ai dps eu fui adc nos talkactions.XML
mais mesmo assim nao deu certo,meu ot é 8.54
alguem poderia me ajudar?
Obrigado
Editado Março 1 por Critico