Ir para conteúdo
Banner com Efeitos

Featured Replies

  • Respostas 12
  • Visualizações 546
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Procure pelo arquivo changegold.lua na pasta actions/scripts/... e substitua por este. Substitua ID DA SCARAB COIN pelo id do item.       Me de feedback sobre o ocorrido.

Postado

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 por Striker Macabrus (veja o histórico de edições)

Postado
  • 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

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 true
end

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo