Olá galera fiquei um tempo fora mais voltei então let's go
O que o script ira fazer ?
Simplesmente o comando ira comprar outift com talkaction !
Então vamos lá
Vá em data / scripts / talkactions / renomeie alguem arquivo para outiftbuy.lua
é adicione
function onSay(cid, words, param) local storage = 30193 -- mão mexa local itemid = 2160 -- id do item que vai remover local count = 5 -- quantidade do item que vai remover local looktype = 75 -- O Looktype da outift que vai ser vendida if getPlayerStorageValue(cid, storage) >= 1 then doPlayerSendTextMessage(cid, 22, "Desculpe voce ja comprou essa outift") return true end if doPlayerRemoveItem(cid,itemid,count) then doPlayerSendTextMessage(cid, 22, "Você não tem dinheiro suficiente") return true end doPlayerAddOutfit(cid,looktype,3) setPlayerStorageValue(cid, storage, 1) doPlayerSendTextMessage(cid, 22, "Você comprou a outift") return true end
Em talkactions.xml
<talkaction words="!outift" event="script" value="outiftbuy.lua"/>
Espero que gostem !