Ir para conteúdo

Featured Replies

Postado
  • Autor

mals tava viajando o scrip eu achei ficava em mods change gold

<?xml version="1.0" encoding="UTF-8"?>
<mod name="change-gold" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
    <action itemid="2148;2152;2160;xxxxx" event="script" override="yes"><![CDATA[
        local coins = {
            [ITEM_GOLD_COIN] = {
                to = ITEM_PLATINUM_COIN, effect = COLOR_YELLOW
            },
            [ITEM_PLATINUM_COIN] = {
                from = ITEM_GOLD_COIN, to = ITEM_CRYSTAL_COIN, effect = COLOR_LIGHTBLUE
            },
            [ITEM_CRYSTAL_COIN] = {
                from = ITEM_PLATINUM_COIN, to = ITEM_MILLION_COIN, effect = COLOR_TEAL
            },
            [ITEM_MILLION_COIN] = {
                from = ITEM_CRYSTAL_COIN, effect = COLOR_RED
            }
        }

        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)
                doPlayerSendTextMessage(cid, MESSAGE_EXPERIENCE, "$$$", ITEMCOUNT_MAX, coins[coin.to].effect, getCreaturePosition(cid))
            elseif(coin.from ~= nil) then
                doChangeTypeItem(item.uid, item.type - 1)
                doPlayerAddItem(cid, coin.from, ITEMCOUNT_MAX)
                doPlayerSendTextMessage(cid, MESSAGE_EXPERIENCE, "$$$", ITEMCOUNT_MAX, coins[coin.from].effect, getCreaturePosition(cid))
            end

            return true
        end
    ]]></action>
</mod>
  • Respostas 6
  • Visualizações 404
  • Created
  • Última resposta

Top Posters In This Topic

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.6k

Informação Importante

Confirmação de Termo