Ir para conteúdo

Featured Replies

Postado

. Q servidor UAL o sitio web utiliza como una base? 

Servidor Pokemon HuatsonOT (DXP)

¿Cuál es la razón de este tema? 

Error no aparece lo que especifica el lua y quiero agregar cambio de nombre y agregar mas dias para la venta

¿Está surgiendo un error? Si es así ponlo aquí. 

 

Nombre

agregar cambio de nombre y dias vips al scrip y que aparesca de momento solo salen los default aunque esta modificadoemerald_shop.luaimage.thumb.png.66992ec121e4bb8895c87a756edc5378.png

 

¿Tienes el código disponible? Si lo has publicado aquí: 

local market = {
[0] = {emeralds = 25},
[1] = {emeralds = 10, vipdays = 30},
[2] = {emeralds = 28, vipdays = 90},
[3] = {emeralds = 45, vipdays = 180},
[3] = {emeralds = 100, vipdays = 360},
[4] = {emeralds = 15, pokemon = "Ditto"},
[4] = {emeralds = 350, pokemon = "ShinyDitto"},
[5] = {emeralds = 2, blessings = 2},
[6] = {emeralds = 5, blessings = 5},
[7] = {emeralds = 5},
}

local OPCODE_EMERALD_SHOP = opcodes.OPCODE_EMERALD_SHOP

function onExtendedOpcode(cid, opcode, buffer)
    local t = string.explode(buffer, "|")
    if opcode == OPCODE_EMERALD_SHOP then
        if t[1] == "Market" then    
            if tonumber(t[2]) >= 1 and tonumber(t[2]) <= 3 then
                doPlayerAddPremiumDays(cid, market[tonumber(t[2])].vipdays)
            elseif tonumber(t[2]) == 4 then
                doPlayerAddPoke(cid, market[tonumber(t[2])].pokemon, "poke")
            elseif tonumber(t[2]) >= 5 and tonumber(t[2]) <= 6 then
                for blessings = 1, market[tonumber(t[2])].blessings do
                    if getPlayerBlessing(cid, market[tonumber(t[2])].blessings) then
                        return doSendPlayerExtendedOpcode(cid, OPCODE_EMERALD_SHOP, "You already have the blessing.")
                    end
                    doPlayerAddBlessing(cid, blessings)
                end
            elseif tonumber(t[2]) == 7 then
                doPlayerSetSex(cid, (getPlayerSex(cid) == 0 and 1 or 0))
            end
        end
        return doPlayerRemoveItem(cid, 2145, market[tonumber(t[2])].emeralds) and doSendPlayerExtendedOpcode(cid, OPCODE_EMERALD_SHOP, "True")
    end
end

 

¿Tienes alguna imagen que pueda ayudar con el problema? Si es así, ponlo aquí. 

 

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.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo