Postado Maio 25, 2016 9 anos Autor 2 horas atrás, Striker Macabrus disse: Tente assim: local coins = {[12416] = {to = 2148},[2148] = {to = 2152, from = 12416}, [2152] = {to = 2160, from = 2148}, [2160] = {to = 2159, from = 2152},[2159] = {to = 2160, from = 2152},[2159] = {from = 2160}, [2160] = {from = 2159},}function onUse(cid, item, fromPosition, itemEx, toPosition) if(getPlayerFlagValue(cid, PLAYERFLAG_CANNOTPICKUPITEM)) then return false end local coin = coins[item.itemid] if(not coin) then return false end if(coin.to ~= nil and item.type == ITEMCOUNT_MAX) then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, coin.to, 1) elseif(coin.from ~= nil) then doChangeTypeItem(item.uid, item.type - 1) doPlayerAddItem(cid, coin.from, ITEMCOUNT_MAX) end return trueend Não ta dando ainda... agr ta transformando 100tds em 100 scarab coin!
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.