antiblock
Elveron

@Metin2

Membro
  • Content Count

    170
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by @Metin2


  1. 2 minutos atrás, brenobeas disse:

    Galera Boa Tarde, gostaria de saber como eu identifico a "INDEX" de um determinado mapa, index e warp é a mesma coisa?

     

    Arquivo Settings do mapa: 

     

    ScriptType    MapSetting

    CellScale    200
    HeightScale    0.500000

    ViewRadius    128

    MapSize    3    6
    BasePosition    1049600    1510400
    TextureSet    textureset\metin2_BayBlackSand.txt
    Environment    bayblacksand.msenv

     

    Se poderem ajudar dou +1 Desde já Obrigado!

    Index você localiza nas files na parte do mapas.

    e o warp in game no seu casso terá que fazer 10496 15104


  2. 5 horas atrás, itachi_Uchiha disse:

    Boas Pessoal Venho pedir uma ajuda eu adicionei o Systema de montadas e quando uso ela equipa no mesmo sitio das faixas 

    Deixo aqui uma Imagen para  ver qual he o erro como posso mudar isso ?

    0508_215046.jpg

     

    Boas amigo usa esse .py >>>

     

    Spoiler

    import uiScriptLocale
    import item

    COSTUME_START_INDEX = item.COSTUME_SLOT_START

    window = {
        "name" : "CostumeWindow",
        "x" : SCREEN_WIDTH - 175 - 140,
        "y" : SCREEN_HEIGHT - 37 - 565,
        "style" : ("movable", "float",),
        "width" : 140,
        "height" : 180 + 47,
        "children" :
        (
            {
                "name" : "board",
                "type" : "board",
                "style" : ("attach",),
                "x" : 0,
                "y" : 0,
                "width" : 140,
                "height" : 180 + 47,
                "children" :
                (
                    {
                        "name" : "TitleBar",
                        "type" : "titlebar",
                        "style" : ("attach",),
                        "x" : 6,
                        "y" : 6,
                        "width" : 130,
                        "color" : "yellow",
                        "children" :
                        (
                            { "name":"TitleName", "type":"text", "x":60, "y":5, "text":uiScriptLocale.COSTUME_WINDOW_TITLE, "text_horizontal_align":"center" },
                        ),
                    },
                    {
                        "name" : "Costume_Base",
                        "type" : "image",
                        "x" : 13,
                        "y" : 38,
                        "image" : uiScriptLocale.LOCALE_UISCRIPT_PATH + "costume/new_costume_bg.jpg",
                        "children" :
                        (
                            {
                                "name" : "CostumeSlot",
                                "type" : "slot",
                                "x" : 3,
                                "y" : 3,
                                "width" : 127,
                                "height" : 145,
                                "slot" : (
                                    {"index":COSTUME_START_INDEX+0, "x":61, "y":45, "width":32, "height":64},
                                    {"index":COSTUME_START_INDEX+1, "x":61, "y": 8, "width":32, "height":32},
                                    {"index":COSTUME_START_INDEX+2, "x":10, "y":125, "width":32, "height":32},
                                    {"index":COSTUME_START_INDEX+3, "x":61, "y":125, "width":32, "height":32},
                                    {"index":COSTUME_START_INDEX+4, "x":13, "y":15, "width":32, "height":96},
                                    # {"index":COSTUME_START_INDEX+4, "x":10, "y":8, "width":32, "height":96},
                                ),
                            },
                        ),
                    },
                ),
            },
        ),
    }

     se   ajudei não esqueça do +1.      xD


  3. Amigo nesse caso não vai adiantar fazer backup da db antiga mesmo sendo do de player,item se a nova files precisa de nova tabela o backup antigo não vai adianta ira Buga novamente  porque não tem as tabela necessárias ! 

     

    Isso é o que eu acho mais posso ta enganado .

     

    deixo aqui os backup que você quer !

     

    Player.player = Personagens criado

    Player.Item = Item que tem no inventario ou mall dos player

    Player.player_index = É aonde tem os personagem "guerreiro,shaman,shura,ninja, ou lycan "

     


  4. faz backup da account atual !

     

    como fazer backup !

    Click com Button direito do mouse  em account.account ,vá ate Dump SQL file e save em algum lugar do seu gosto em seu pc

     

    apos colocar Database você cria uma Query com o backup que tu fez  .

     

    Espero ter ajudado!

     


  5. OK. Fis o teste  tava tudo oks montava normalmente !

     

     

    Quest Montaria :

    Spoiler

    quest ride begin
        state start begin
            function Ride(vnum, remain_time)
                ride_info = {
    -------------------------------------------------------------------------------------------------------------------------------
                    ---------------------------------------------------------------------------------------------------------------
                    -- ID do Item | ID da Montaria | Tempo | Bonus | Qt do Bonus | Level | Remover item sim ou não - True or False
                    ---------------------------------------------------------------------------------------------------------------
    -------------------------------------------------------------------------------------------------------------------------------
                    [71114] = {20110, 60*10, apply.DEF_GRADE_BONUS, 75, 75, true},
                    --[71115] = {00000, 60*10, apply.NONE, 0, 1, true },
                    [71116] = {20111, 60*10, apply.DEF_GRADE_BONUS, 100, 80, true},
                    --[71117] = {00000, 60*10, apply.NONE, 0, 1, true },
                    [71118] = {20112, 60*10, apply.DEF_GRADE_BONUS, 125, 85, true},
                    --[71119] = {00000, 60*10, apply.NONE, 0, 1, true },
                    [71120] = {20113, 60*10, apply.DEF_GRADE_BONUS, 200, 85, true},
                    --[71121] = {00000, 60*10, apply.NONE, 0, 1, true },

    -------------------------------- 2592000
                    [71124] = {20114, item.get_socket(2)*60, apply.EXP_DOUBLE_BONUS, 20, 1, false},        --Item Shop
                    [71125] = {20115, 60*60*24*30, apply.ATTBONUS_MONSTER, 20, 20, false},
                    [71126] = {20116, 60*60*24*30, apply.CRITICAL_PCT, 10, 20, false},
                    [71127] = {20117, 60*60*24*30, apply.CRITICAL_PCT, 10, 20, false},
                    [71128] = {20118, 60*60*24*30, apply.NORMAL_HIT_DEFEND_BONUS, 10, 20, false},

    -------------------------------- 
                    [71131] = {20119, 60*60*24*7, apply.MOV_SPEED, 60, 1, false},
                    [71132] = {20119, 60*60*24*15, apply.MOV_SPEED, 60, 1, false},
                    [71133] = {20119, 60*60*24*30, apply.MOV_SPEED, 60, 1, false},
                    [71134] = {20119, 60*60*24*60, apply.MOV_SPEED, 60, 1, false},

    -------------------------------- 
                    [71137] = {20120, 60*60*24*30, apply.EXP_DOUBLE_BONUS, 20, 1, false},
                    [71138] = {20121, 60*60*24*30, apply.EXP_DOUBLE_BONUS, 20, 1, false},
                    [71139] = {20122, 60*60*24*30, apply.EXP_DOUBLE_BONUS, 20, 1, false},
                    [71140] = {20123, 60*60*24*30, apply.EXP_DOUBLE_BONUS, 20, 1, false},
                    [71141] = {20124, 60*60*24*30, apply.EXP_DOUBLE_BONUS, 20, 1, false},
                    [71142] = {20125, 60*60*24*30, apply.EXP_DOUBLE_BONUS, 20, 1, false},

    -------------------------------- 
                    [71161] = {20219, 60*60*24*30, apply.MOV_SPEED, 60, 1, false},
                    [71164] = {20220, 60*60*24*30, apply.MOV_SPEED, 60, 1, false},
                    [71165] = {20221, 60*60*24*30, apply.MOV_SPEED, 60, 1, false},
                    [71166] = {20222, 60*60*24*30, apply.MOV_SPEED, 60, 1, false},
                    [71171] = {20227, 60*60*24*30, apply.MOV_SPEED, 60, 1, false},
                    [71172] = {20226, 60*60*24*30, apply.MOV_SPEED, 60, 1, false},

                    [71176] = {20231, 60*60*24*30, apply.MOV_SPEED, 30, 1, false},
                    [71177] = {20232, 60*60*24*30, apply.MOV_SPEED, 30, 1, false},

    -------------------------------------------------------------------------------------------------------------------------------
                    ---------------------------------------------------------------------------------------------------------------
                    [52001] = {20201, 60*60*24*7, apply.NONE, 0, 0, false},
                    [52002] = {20201, 60*60*24*7, apply.NONE, 0, 0, false},
                    [52003] = {20201, 60*60*24*7, apply.NONE, 0, 0, false},
                    [52004] = {20201, 60*60*24*7, apply.NONE, 0, 0, false},
                    [52005] = {20201, 60*60*24*7, apply.NONE, 0, 0, false},

                    [52006] = {20205, 60*60*24*15, apply.ATTBONUS_MONSTER, 3, 0, false},
                    [52007] = {20205, 60*60*24*15, apply.MALL_EXPBONUS, 3, 0, false},
                    [52008] = {20205, 60*60*24*15, apply.MAX_HP, 250, 0, false},
                    [52009] = {20205, 60*60*24*15, apply.DEF_GRADE_BONUS, 50, 0, false},
                    [52010] = {20205, 60*60*24*15, apply.ATT_GRADE_BONUS, 30, 0, false},

                    [52011] = {20209, 60*60*24*30, apply.ATTBONUS_MONSTER, 5, 0, false},
                    [52012] = {20209, 60*60*24*30, apply.MALL_EXPBONUS, 5, 0, false},
                    [52013] = {20209, 60*60*24*30, apply.MAX_HP, 500, 0, false},
                    [52014] = {20209, 60*60*24*30, apply.DEF_GRADE_BONUS, 150, 0, false},
                    [52015] = {20209, 60*60*24*30, apply.ATT_GRADE_BONUS, 100, 0, false},

    ---------------------------
                    [52016]    = {20202, 60*60*24*365, apply.NONE, 0, 0, false},
                    [52017] = {20202, 60*60*24*365, apply.NONE, 0, 0, false},
                    [52018] = {20202, 60*60*24*365, apply.NONE, 0, 0, false},
                    [52019] = {20202, 60*60*24*365, apply.NONE, 0, 0, false},
                    [52020] = {20202, 60*60*24*365, apply.NONE, 0, 0, false},

                    [52021] = {20206, 60*60*24*365, apply.ATTBONUS_MONSTER, 3, 0, false},
                    [52022] = {20206, 60*60*24*365, apply.MALL_EXPBONUS, 3, 0, false},
                    [52023] = {20206, 60*60*24*365, apply.MAX_HP, 250, 0, false},
                    [52024] = {20206, 60*60*24*365, apply.DEF_GRADE_BONUS, 50, 0, false},
                    [52025] = {20206, 60*60*24*365, apply.ATT_GRADE_BONUS, 30, 0, false},

                    [52026] = {20210, 60*60*24*365, apply.ATTBONUS_MONSTER, 5, 0, false},
                    [52027] = {20210, 60*60*24*365, apply.MALL_EXPBONUS, 5, 0, false},
                    [52028] = {20210, 60*60*24*365, apply.MAX_HP, 500, 0, false},
                    [52029] = {20210, 60*60*24*365, apply.DEF_GRADE_BONUS, 150, 0, false},
                    [52030] = {20210, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 0, false},

    ---------------------------
                    [52031]= {20204, 60*60*24*365, apply.NONE, 0, 0, false},
                    [52032]= {20204, 60*60*24*365, apply.NONE, 0, 0, false},
                    [52033]= {20204, 60*60*24*365, apply.NONE, 0, 0, false},
                    [52034]= {20204, 60*60*24*365, apply.NONE, 0, 0, false},
                    [52035]= {20204, 60*60*24*365, apply.NONE, 0, 0, false},

                    [52036]= {20208, 60*60*24*365, apply.ATTBONUS_MONSTER, 3, 0, false},
                    [52037]= {20208, 60*60*24*365, apply.MALL_EXPBONUS, 3, 0, false},
                    [52038]= {20208, 60*60*24*365, apply.MAX_HP, 250, 0, false},
                    [52039]= {20208, 60*60*24*365, apply.DEF_GRADE_BONUS, 50, 0, false},
                    [52040]= {20208, 60*60*24*365, apply.ATT_GRADE_BONUS, 30, 0, false},

                    [52041]= {20212, 60*60*24*365, apply.ATTBONUS_MONSTER, 5, 0, false},
                    [52042]= {20212, 60*60*24*365, apply.MALL_EXPBONUS, 5, 0, false},
                    [52043]= {20212, 60*60*24*365, apply.MAX_HP, 500, 0, false},
                    [52044]= {20212, 60*60*24*365, apply.DEF_GRADE_BONUS, 150, 0, false},
                    [52045]= {20212, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 0, false},

    ---------------------------
                    [52046]= {20203, 60*60*24*365, apply.NONE, 0, 0, false},
                    [52047]= {20203, 60*60*24*365, apply.NONE, 0, 0, false},
                    [52048]= {20203, 60*60*24*365, apply.NONE, 0, 0, false},
                    [52049]= {20203, 60*60*24*365, apply.NONE, 0, 0, false},
                    [52050]= {20203, 60*60*24*365, apply.NONE, 0, 0, false},

                    [52051]= {20207, 60*60*24*365, apply.ATTBONUS_MONSTER, 3, 0, false},
                    [52052]= {20207, 60*60*24*365, apply.MALL_EXPBONUS, 3, 0, false},
                    [52053]= {20207, 60*60*24*365, apply.MAX_HP, 250, 0, false},
                    [52054]= {20207, 60*60*24*365, apply.DEF_GRADE_BONUS, 50, 0, false},
                    [52055]= {20207, 60*60*24*365, apply.ATT_GRADE_BONUS, 30, 0, false},

                    [52056]= {20211, 60*60*24*365, apply.ATTBONUS_MONSTER, 5, 0, false},
                    [52057]= {20211, 60*60*24*365, apply.MALL_EXPBONUS, 5, 0, false},
                    [52058]= {20211, 60*60*24*365, apply.MAX_HP, 500, 0, false},
                    [52059]= {20211, 60*60*24*365, apply.DEF_GRADE_BONUS, 150, 0, false},
                    [52060]= {20211, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 0, false},

    -------------------------------------------------------------------------------------------------------------------------------
    -------------------------------------------------------------------------------------------------------------------------------
                }
                if pc.level < ride_info[vnum][5] then
                    say("")
                    say_title("Olá "..pc.get_name())
                    say("")
                    say("Seu nível é muito baixo para usar essa montaria! ")
                    say("Você não é capaz de doma-la... ")
                    say("")
                    return
                -- elseif pc.is_polymorphed() then
                    -- say("")
                    -- say_title("Olá "..pc.get_name())
                    -- say("")
                    -- say("Não é permitido o uso da montaria, enquanto estiver transformado! ")
                    -- say("")
                    -- return
                -- elseif pc.is_riding() then
                    -- say("")
                    -- say_title("Olá "..pc.get_name())
                    -- say("")
                    -- say("Não é permitido o uso da montaria, quando está montado")
                    -- say("")
                    -- return
                else
                    if ride_info[vnum][2] == 0 and remain_time != 0 then
                        pc.mount(ride_info[vnum][1], remain_time*60)
                        pc.mount_bonus( ride_info[vnum][3], ride_info[vnum][4], remain_time*60)
                    else
                        pc.mount(ride_info[vnum][1], ride_info[vnum][2] )
                        pc.mount_bonus(ride_info[vnum][3], ride_info[vnum][4], ride_info[vnum][2])
                    end
                    -- pc.mount(ride_info[vnum][1], ride_info[vnum][2])
                    -- pc.mount_bonus(ride_info[vnum][3], ride_info[vnum][4], ride_info[vnum][2])
                    if true == ride_info[vnum][6] then
                        pc.remove_item(vnum, 1)
                    end
                end
            end

            when 71114.use or 71115.use or 71116.use or 71117.use or 71118.use or 71119.use or 71120.use or 71121.use or 
                71124.use or  71125.use or 71126.use or 71127.use or 71128.use or 71137.use or 71138.use or 71139.use or 71140.use or 71141.use or 71142.use or 
                71161.use or 71164.use or 71165.use or 71166.use or 71171.use or 71172.use or 71176.use or 71177.use or 71182.use or 71183.use or 71184.use or 
                71185.use or 71186.use or 71187.use or 71131.use or 71132.use or 71133.use or 71134.use or 71192.use or 71193.use begin

                if pc.get_map_index() == 110 or pc.get_map_index() == 111 or pc.get_map_index() == 112 or pc.get_map_index() == 113 or
                    pc.get_map_index() == 118 or pc.get_map_index() == 119 or pc.get_map_index() == 120 or pc.get_map_index() == 122 or
                    pc.get_map_index() == 123 or pc.get_map_index() == 124 or pc.get_map_index() == 126 or pc.get_map_index() == 127 or
                    pc.get_map_index() == 128 and not pc.is_gm() then
                    say("")
                    say_title("Olá "..pc.get_name())
                    say("")
                    say("Não é permitido o uso da montaria neste local. ")
                    return
                end

                if pc.is_polymorphed() then
                    syschat("Não é permitido o uso da montaria, enquanto estiver transformado! ")
                elseif false == pc.is_riding() then
                     if true == horse.is_summon() then
                        horse.unsummon()
                    end
                    ride.Ride(item.vnum, 0)
                else
                    pc.unmount()
                end
            end

            when 52001.use or 52002.use or 52003.use or 52004.use or 52005.use  or 52006.use or 52007.use or 52008.use or 52009.use or 52010.use  or 52011.use or 
                52012.use or 52013.use or 52014.use or 52015.use or 52016.use or 52017.use or 52018.use or 52019.use or 52020.use  or 52021.use or 52022.use or 
                52023.use or 52024.use or 52025.use  or 52026.use or 52027.use or 52028.use or 52029.use or 52030.use or 52031.use or 52032.use or 52033.use or 
                52034.use or 52035.use  or 52036.use or 52037.use or 52038.use or 52039.use or 52040.use or 52041.use or 52042.use or 52043.use or 52044.use or 
                52045.use or 52046.use or 52047.use or 52048.use or 52049.use or 52050.use or  52051.use or 52052.use or 52053.use or 52054.use or 52055.use or 
                52056.use or 52057.use or 52058.use or 52059.use or 52060.use begin

                if pc.get_map_index() == 110 or pc.get_map_index() == 111 or pc.get_map_index() == 112 or pc.get_map_index() == 113 or
                    pc.get_map_index() == 118 or pc.get_map_index() == 119 or pc.get_map_index() == 120 or pc.get_map_index() == 122 or
                    pc.get_map_index() == 123 or pc.get_map_index() == 124 or pc.get_map_index() == 126 or pc.get_map_index() == 127 or
                    pc.get_map_index() == 128 and not pc.is_gm() then
                    say("")
                    say_title("Olá "..pc.get_name())
                    say("")
                    say("Não é permitido o uso da montaria neste local. ")
                    return
                end
                -- if pc.get_armor() == 11901 or pc.get_armor() == 11902 then
                    -- say("")
                    -- say_title("Olá "..pc.get_name())
                    -- say("")
                    -- say("Não é permitido montar usando Smoking")
                    -- say("")
                    -- return

                -- elseif pc.get_armor() == 11903 or pc.get_armor() == 11904 then
                    -- say("")
                    -- say_title("Olá "..pc.get_name())
                    -- say("")
                    -- say("Não é permitido montar usando Vestido de Noiva")
                    -- say("")
                    -- return
                -- end
                if pc.is_polymorphed() then
                    syschat("Não é permitido o uso da montaria, enquanto estiver transformado! ")
                elseif false == pc.is_riding() then
                    if true == horse.is_summon() then
                        horse.unsummon()
                    end

                    ride.Ride(item.vnum, 0)
                else
                    pc.unmount()
                end
            end

            when login begin
                local vnum, remain_time = pc.get_special_ride_vnum()
                if 0 != vnum then
                    ride.Ride(vnum, remain_time)
                end
            end
        end
    end
     

     

     


  6. Ola pessoal estou com pequeno probleminha , eu não eu consegui montar em uma montaria in game equipa o selo mais não monta no animal !

    não sei se montada costume ta faltando algo.

     

    DPsxBIN.png


  7. Spoiler

    quest barras_ouro begin 
        state start begin 
            when 80005.use begin    
                pc.remove_item(80005, 1)chat (" Recebeu 1kk em Gold")    pc.give_gold (1000000)
            end    
            when 80006.use begin    
                pc.remove_item(80006, 1)chat (" Recebeu 50kk em Gold")    pc.give_gold (50000000)
            end    
            when 80007.use begin    
                pc.remove_item(80007, 1)chat (" Recebeu 100kk em Gold")    pc.give_gold (100000000)
            end    
        end
    end

     

    Não deu certo ! =/


  8. Ola pessoal quero pedir uma ajuda a vocês ! queria ver se tem como implementa uma função na Quest ,In game se eu ajuntar EX:200 anel de gold e for vender ele vendera os 200 anel por preço de 1 anel , oque eu quero dizer com isso se tem como colocar função na Quest aonde impede o jogador vender todos anel em um pack ! E dar um aviso porque não pode vender os anel. 

     

    Quest 

    Spoiler

    quest barras_ouro begin 
        state start begin 
            when 80005.use begin    
                item.remove()chat (" Recebeu 1kk em Gold")    pc.give_gold (1000000)
            end