Jump to content

Kenta

Inactive Member
  • Posts

    21
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Kenta

  1. Hey,

    I have a problem I tried to install the offline shop on my server every things work fine until I start doing the src/game part I tried every things I could to fix it until i give up to ask your help. Because I don't understand why it's not working, everything work fine in the compilation until it start linking the game then 

    This happen :

     

    Spoiler

    linking ../game_r40250_32....
    OBJDIR/shop_manager.o: In function `CShopManager::Destroy()':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:66: multiple definition of `CShopManager::Destroy()'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:66: first defined here
    OBJDIR/shop_manager.o: In function `CompareShopItemName(SShopItemTable const&, SShopItemTable const&)':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:377: multiple definition of `CompareShopItemName(SShopItemTable const&, SShopItemTable const&)'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:377: first defined here
    OBJDIR/shop_manager.o: In function `CShopManager::StopShopping(CHARACTER*)':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:191: multiple definition of `CShopManager::StopShopping(CHARACTER*)'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:191: first defined here
    OBJDIR/shop_manager.o: In function `CShopManager::Sell(CHARACTER*, unsigned char, unsigned char)':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:258: multiple definition of `CShopManager::Sell(CHARACTER*, unsigned char, unsigned char)'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:258: first defined here
    OBJDIR/shop_manager.o: In function `CShopManager::Buy(CHARACTER*, unsigned char)':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:207: multiple definition of `CShopManager::Buy(CHARACTER*, unsigned char)'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:207: first defined here
    OBJDIR/shop_manager.o: In function `CShopManager::FindPCShop(unsigned int)':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:152: multiple definition of `CShopManager::FindPCShop(unsigned int)'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:152: first defined here
    OBJDIR/shop_manager.o: In function `CShopManager::DestroyPCShop(CHARACTER*)':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:175: multiple definition of `CShopManager::DestroyPCShop(CHARACTER*)'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:175: first defined here
    OBJDIR/shop_manager.o: In function `CShopManager::CreatePCShop(CHARACTER*, SShopItemTable*, unsigned char)':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:162: multiple definition of `CShopManager::CreatePCShop(CHARACTER*, SShopItemTable*, unsigned char)'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:162: first defined here
    OBJDIR/shop_manager.o: In function `CShopManager::GetByNPCVnum(unsigned int)':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:89: multiple definition of `CShopManager::GetByNPCVnum(unsigned int)'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:89: first defined here
    OBJDIR/shop_manager.o: In function `CShopManager::Get(unsigned int)':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:79: multiple definition of `CShopManager::Get(unsigned int)'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:79: first defined here
    OBJDIR/shop_manager.o: In function `CShopManager::StartShopping(CHARACTER*, CHARACTER*, int)':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:104: multiple definition of `CShopManager::StartShopping(CHARACTER*, CHARACTER*, int)'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:104: first defined here
    OBJDIR/shop_manager.o: In function `~CShopManager':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:33: multiple definition of `CShopManager::~CShopManager()'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:33: first defined here
    OBJDIR/shop_manager.o: In function `CShopManager':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:29: multiple definition of `CShopManager::CShopManager()'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:29: first defined here
    OBJDIR/shop_manager.o: In function `CShopManager':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:29: multiple definition of `CShopManager::CShopManager()'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:29: first defined here
    OBJDIR/shop_manager.o: In function `~CShopManager':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:33: multiple definition of `CShopManager::~CShopManager()'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:33: first defined here
    OBJDIR/shop_manager.o: In function `~CShopManager':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:33: multiple definition of `CShopManager::~CShopManager()'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:33: first defined here
    OBJDIR/shop_manager.o: In function `ConvertToShopItemTable(CGroupNode*, SShopTableEx&)':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:387: multiple definition of `ConvertToShopItemTable(CGroupNode*, SShopTableEx&)'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:387: first defined here
    OBJDIR/shop_manager.o: In function `CShopManager::ReadShopTableEx(char const*)':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:500: multiple definition of `CShopManager::ReadShopTableEx(char const*)'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:500: first defined here
    OBJDIR/shop_manager.o: In function `CShopManager::Initialize(SShopTable*, int)':
    /usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:38: multiple definition of `CShopManager::Initialize(SShopTable*, int)'
    OBJDIR/shop_manager.o:/usr/src/mainline/Srcs/Server/game/src/shop_manager.cpp:38: first defined here
    OBJDIR/shopEx.o: In function `CShopEx::Create(unsigned int, unsigned int)':
    /usr/src/mainline/Srcs/Server/game/src/shopEx.cpp:25: multiple definition of `CShopEx::Create(unsigned int, unsigned int)'
    OBJDIR/shopEx.o:/usr/src/mainline/Srcs/Server/game/src/shopEx.cpp:25: first defined here
    OBJDIR/shopEx.o: In function `CShopEx::Buy(CHARACTER*, unsigned char)':
    /usr/src/mainline/Srcs/Server/game/src/shopEx.cpp:116: multiple definition of `CShopEx::Buy(CHARACTER*, unsigned char)'
    OBJDIR/shopEx.o:/usr/src/mainline/Srcs/Server/game/src/shopEx.cpp:116: first defined here
    OBJDIR/shopEx.o: In function `CShopEx::AddGuest(CHARACTER*, unsigned int, bool)':
    /usr/src/mainline/Srcs/Server/game/src/shopEx.cpp:46: multiple definition of `CShopEx::AddGuest(CHARACTER*, unsigned int, bool)'
    OBJDIR/shopEx.o:/usr/src/mainline/Srcs/Server/game/src/shopEx.cpp:46: first defined here
    OBJDIR/shopEx.o: In function `CShopEx::AddShopTable(SShopTableEx&)':
    /usr/src/mainline/Srcs/Server/game/src/shopEx.cpp:32: multiple definition of `CShopEx::AddShopTable(SShopTableEx&)'
    OBJDIR/shopEx.o:/usr/src/mainline/Srcs/Server/game/src/shopEx.cpp:32: first defined here
    OBJDIR/item_manager_read_tables.o: In function `__gthread_trigger':
    /usr/include/c++/4.2/bits/gthr-default.h:165: multiple definition of `g_vec_pkCommonDropItem'
    OBJDIR/item_manager_read_tables.o:/usr/include/c++/4.2/bits/gthr-default.h:165: first defined here
    OBJDIR/item_manager_read_tables.o: In function `ITEM_MANAGER::ReadItemVnumMaskTable(char const*)':
    /usr/src/mainline/Srcs/Server/game/src/item_manager_read_tables.cpp:904: multiple definition of `ITEM_MANAGER::ReadItemVnumMaskTable(char const*)'
    OBJDIR/item_manager_read_tables.o:/usr/src/mainline/Srcs/Server/game/src/item_manager_read_tables.cpp:904: first defined here
    OBJDIR/item_manager_read_tables.o: In function `ITEM_MANAGER::ReadEtcDropItemFile(char const*)':
    /usr/src/mainline/Srcs/Server/game/src/item_manager_read_tables.cpp:430: multiple definition of `ITEM_MANAGER::ReadEtcDropItemFile(char const*)'
    OBJDIR/item_manager_read_tables.o:/usr/src/mainline/Srcs/Server/game/src/item_manager_read_tables.cpp:430: first defined here
    OBJDIR/item_manager_read_tables.o: In function `ITEM_MANAGER::ReadCommonDropItemFile(char const*)':
    /usr/src/mainline/Srcs/Server/game/src/item_manager_read_tables.cpp:25: multiple definition of `ITEM_MANAGER::ReadCommonDropItemFile(char const*)'
    OBJDIR/item_manager_read_tables.o:/usr/src/mainline/Srcs/Server/game/src/item_manager_read_tables.cpp:25: first defined here
    OBJDIR/item_manager_read_tables.o: In function `ITEM_MANAGER::ConvSpecialDropItemFile()':
    /usr/src/mainline/Srcs/Server/game/src/item_manager_read_tables.cpp:306: multiple definition of `ITEM_MANAGER::ConvSpecialDropItemFile()'
    OBJDIR/item_manager_read_tables.o:/usr/src/mainline/Srcs/Server/game/src/item_manager_read_tables.cpp:306: first defined here
    OBJDIR/item_manager_read_tables.o: In function `ITEM_MANAGER::ReadSpecialDropItemFile(char const*)':
    /usr/src/mainline/Srcs/Server/game/src/item_manager_read_tables.cpp:120: multiple definition of `ITEM_MANAGER::ReadSpecialDropItemFile(char const*)'
    OBJDIR/item_manager_read_tables.o:/usr/src/mainline/Srcs/Server/game/src/item_manager_read_tables.cpp:120: first defined here
    OBJDIR/item_manager_read_tables.o: In function `ITEM_MANAGER::ReadDropItemGroup(char const*)':
    /usr/src/mainline/Srcs/Server/game/src/item_manager_read_tables.cpp:800: multiple definition of `ITEM_MANAGER::ReadDropItemGroup(char const*)'
    OBJDIR/item_manager_read_tables.o:/usr/src/mainline/Srcs/Server/game/src/item_manager_read_tables.cpp:800: first defined here
    OBJDIR/item_manager_read_tables.o: In function `ITEM_MANAGER::ReadMonsterDropItemGroup(char const*)':
    /usr/src/mainline/Srcs/Server/game/src/item_manager_read_tables.cpp:483: multiple definition of `ITEM_MANAGER::ReadMonsterDropItemGroup(char const*)'
    OBJDIR/item_manager_read_tables.o:/usr/src/mainline/Srcs/Server/game/src/item_manager_read_tables.cpp:483: first defined here
    gmake: *** [../game_r40250_32] Error 1
     

    If someone could help me It would be nice...  

  2. I got a problem with the new pet system when I summon a new pet, the pet give me random half human bonus I don't understand why if someone could help me fix it to put this bonus to 0 so when the pet is summoned it give 0 half human bonus.

    I tried everything and after some research I found that the problem may come from those files, but I don't know where to search exactly ! Please some help would be great-full 

    This is the hidden content, please

    This is the hidden content, please

    • Metin2 Dev 13
    • Good 3
    • Love 1
    • Love 2
  3. I got a bug when I create a new character, 

    https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

    And this prevents me from creating a character it's really annoying and I don't know from where it comes.

    Got no error in the client sysser,

    That's the db, sysser

    syserr.txt

    If someone is able to help me xd, 

    syserr.txt

    Problem solved a column in mysql that i had to delete

  4. Thank you, it work ur awesome, but i just wanna benefit from this post because i have another problem with another  quest that I coded but the quest don't work i don't understand why, the goal of the quest is to win 1 points for every kill and lose 20% of ur points for every death, and to display the number of points IG in the inventory like this https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

    But the problem here is that when I do a kill i receive 1 points, but when I die i lose all my points and if I kill a player with like 20 points and I got 0 points the player is gonna lose all his points and I am gonna receive 18 points something like that i tried to solve it by my own but I'am a beginner in this language so i don't understand why it don't work 


    That's the quest 

     

    quest pvp begin
     state start begin
     
      when kill with npc.is_pc() begin
      pc.setqf("nbpoints", pc.getqf("nbpoints") + 1)
       local coins = pc.getqf("nbpoints")
      cmdchat("PointsPVP "..coins)
      syschat ("Vous recevez 1 points") 
      local old = pc.select(npc.get_vid())
      pts = pc.getf("pvp","nbpoints")
      pc.setf("pvp","nbpoints", math.floor(pts*0.8))
      local coins = pc.getf("pvp", "nbpoints")
            cmdchat("PointsPVP "..coins)
      diff = pts - pc.getf("pvp","nbpoints")
      if diff == 0 then syschat("Vous ne perdez aucun points")
      else
       syschat("Vous perdez "..diff.." points")

       end
      pc.select(old)

    end
     end
      end

    If someone could help me it would be amazing, 

  5. In this quest for every kill u make ur going to win between 23 and 33 points and every time u will die u will lose between 13 or 23 points and when the player get 2000 points or 4000 etc.. who will set ur rank exemple :

    Between 0 and 2k points ur rank will be set at -2K
    Between 2K and 4k points at 2K
    Between 4k and 6k points at 5K
    Between 6k and 8k at 9k 
    And finnaly between 8k end 10k at 15k,

    I hope u understand the goal of my quest sorry for bad english

  6. Oh okay I'am sorry that's the code : 


     

    quest trophees begin
        state start begin
        
            when kill with npc.is_pc() begin
            local check_my_ip = pc.get_ip()
            local check_enemy_ip = npc.get_ip()
            if check_my_ip == check_enemy_ip then
            nbpoints = pc.getqf("nbtrophees")
        else
            pc.setqf("nbtrophees", pc.getqf("nbtrophees") + math.random(23, 33))
            local old = pc.select(npc.get_vid())
            pc.setf("trophees","nbtrophees", math.random(13, 23))
            pc.select(old)
                if ("nbtrophees") =< 2000 then pc.change_alignment(-2000)
            else if ("nbtrophees") =< 4000 then pc.change_alignment(2000)
            if ("nbtrophees") =< 6000 then pc.change_alignment(5000)
            else if ("nbtrophees") =< 8000 then pc.change_alignment(9000)
            if ("nbtrophees") =< 10000 then pc.change_alignment(15000)
            else if ("nbtrophees") =< 15000 then pc.change_alignment(15000)

    select name, dwpid, lvalue from player.quest, player.player where player.id == quest.dwpid and szname ="trophees" and szstate="nbtrophees" order by lvalue desc;
    end
        end
            end
                end
                    end
                        end
                            end

  7. Hey guys,

    I have a problem with my server and I have no idea how to solve this

    https://metin2.download/picture/ie89ITu4U9DIJ034tir393ex7S4W4eRU/.gif

    ITEM_PROTO.TXT:

    Spoiler

    71172    C?RÇRü°©zrLNC±Ç    ITEM_COSTUME    COSTUME_MOUNT    1    ANTI_SELL | ANTI_STACK    QUEST_USE_MULTIPLE | LOG    WEAR_SHIELD    NONE    0    0    0    0    0    LIMIT_NONE    0    LIMIT_NONE    0    APPLY_NONE    0    APPLY_NONE    0    APPLY_NONE    0    28800    0    0    0    0    0    0    0    0

     

    ITEM_PROTO XML:

    Spoiler

        <ItemDef Vnum="71171" Name="백유니콘소환패" LocalizedName="Sceau de Licorne" Type="18" SubType="0" Weight="0" Size="1" AntiFlags="106880" Flags="9216" WearFlags="128" ImmuneFlags="0" Gold="0" ShopBuyPrice="0" LimitType0="0" LimitValue0="0" LimitType1="0" LimitValue1="0" ApplyType0="0" ApplyValue0="0" ApplyType1="0" ApplyValue1="0" ApplyType2="0" ApplyValue2="0" Value0="180" Value1="0" Value2="0" Value3="0" Value4="0" Value5="0" Socket0="0" Socket1="0" Socket2="0" RefinedVnum="0" RefineSet="0" AlterToMagicItemPercent="0" Specular="0" GainSocketPercent="0" AddonType="0"  />

     

    QUEST:

    Spoiler

    quest ride begin
        state start begin
            function Ride( vnum, remain_time )
                ride_info = {
            
                    --- Cheval noir & halloween ---
                    [71131] = { 20119,     60*60*24*365,    apply.ATTBONUS_MONSTER,    20,        1,      false,    false,    false},
                    [71161] = { 20219,     60*60*24*365,    apply.ATTBONUS_MONSTER,    20,        1,      false,    false,    false},
                    
                    --- Licorne bleu & rouge ---
            
                    [71172]= { 20226,    60*60*24*365,     apply.MAX_HP,                100,    0,    false,    true    },
                    [71171]= { 20227,       60*60*24*365,     apply.MAX_HP,                100,    0,    false,    true    },
                    
                    --- Léopard & Panthère ---
                    
                    [71177] = { 20232,    60*60*24*365,    apply.ATTBONUS_MONSTER,    20,        1,    false,    false,    false},
                    [71176] = { 20231,    60*60*24*365,    apply.ATTBONUS_MONSTER,    20,        1,    false,    false,    false},
                    
                    -- Panda blindé & Panda polaire --

                    [71166] = { 20222,    60*60*24*365,    apply.ATTBONUS_MONSTER,    20,        1,    false,    false,    false},
                    [71165] = { 20221,    60*60*24*365,    apply.ATTBONUS_MONSTER,    20,        1,    false,    false,    false},

                    -- Lion polaire & Lion --

                    [71128] = { 20118,    60*60*24*365,    apply.ATTBONUS_MONSTER,    20,        1,    false,    false,    false},
                    [71124] = { 20114,    60*60*24*365,    apply.ATTBONUS_MONSTER,    20,        1,    false,    false,    false},
                    }

                    


                if pc.level < ride_info[vnum][5] then
                    syschat("Votre level est trop bas pour pouvoir utiliser cette monture.")
                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

                    if true == ride_info[vnum][6] then
                        pc.remove_item(vnum, 1)
                    end    
                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

            when 71172.use or 71171.use or 71131.use or 71161.use or 71177.use or 71176.use or 71166.use or 71165.use or 71128.use or 71124.use begin
                if pc.is_polymorphed() then
                    syschat("You can´t ride if you´re polymorphed!")
                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 or
                52061.use or 52062.use or 52063.use or 52064.use or 52065.use or 52066.use or 52067.use or 52068.use or 52069.use or 52070.use or 52071.use or 52072.use or 52073.use or 52074.use or 52075.use or
                52076.use or 52077.use or 52078.use or 52079.use or 52080.use or 52081.use or 52082.use or 52083.use or 52084.use or 52085.use or 52086.use or 52087.use or 52088.use or 52089.use or 52090.use or 71164.use or
                52091.use or 52092.use or 52093.use or 52094.use or 52095.use or 52096.use or 52097.use or 52098.use or 52099.use or 52100.use or 52101.use or 52102.use or 52103.use or 52104.use or 52105.use begin
                if pc.is_polymorphed() then
                    syschat("Vous ne pouvez pas utiliser une monture lorsque vous êtes transformez !")
                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
        end
    end

     

    ( i take screen by BackPlayer )

    Thank you for help and good night :P

     

     

  8. Hey guys,

    I have a problem with my server and I have no idea how to solve this

    With my principal character i don't have problems but when i create a character, i have this bug with all quest :

    E6Gvt7e.png

    When player is level max, the bug is disappears

    Syserr:

    Analyze: login phase does not handle this packet! header 66


    I have edit my input_login.cpp, but it's not work.

    i have too remplace folder quest by my other file, is not work

    I can paid for résolve this ;)

    Thank for u for help

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.