Postado Maio 25, 2016 9 anos me passe o id da scarab e o id do td. Editado Maio 25, 2016 9 anos por Striker Macabrus (veja o histórico de edições)
Postado Maio 25, 2016 9 anos Autor 2 horas atrás, Striker Macabrus disse: me passe o id da scarab e o id do td. Da Scarab Coin é 2159 e do td é 2160
Postado Maio 25, 2016 9 anos Eu não estou em casa peguei a script do egyptPOWER como base adicionei apenas uma linha entao os creditos é dele, bom em fim Procure pelo arquivo changegold.lua na pasta actions/scripts e substitua por este, eu não testei a script então teste se der algum erro poste aqui que irei tentar lhe ajudar. 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}, } 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 true end Editado Maio 25, 2016 9 anos por Striker Macabrus (veja o histórico de edições)
Postado Maio 25, 2016 9 anos Autor 52 minutos atrás, Striker Macabrus disse: Eu não estou em casa peguei a script do egyptPOWER como base adicionei apenas uma linha entao os creditos é dele, bom em fim Procure pelo arquivo changegold.lua na pasta actions/scripts e substitua por este, eu não testei a script então teste se der algum erro poste aqui que irei tentar lhe ajudar. 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}, } 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 true end Ela esta transformando em scarab coin mas não esta destransformando!!
Postado Maio 25, 2016 9 anos 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
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.