function onUse(cid, item, fromPosition, itemEx, toPosition)
local config={
id = 69 --- id da newtype
}
if item.uid == 8985 then
queststatus = getPlayerStorageValue(cid,60397)
if queststatus == -1 then
doPlayerAddOutfit(cid, config.id, 3)
doRemoveItem(item.uid,1)
doPlayerSendTextMessage(cid, 22, "Parabéns você ganhou uma nova outfit")
setPlayerStorageValue(cid,60397,1)
else
doPlayerSendTextMessage(cid,22,"Você já ganhou a outfit")
end
return true
end
end
lembre-se de adicionar o addon no seu servidor, no tutorial que deixei lá no outro post.