Beiträge von aem5299


    Thank you. repo updated

    Hi guys,

    Metin2 programming was kinda of a fun hobby for me. I've been working on this source files for about 10 months, but I have now more projects and academic work ahead of me, so I kinda won't have the time anymore to play with it. I was going to delete it today, but thought of sharing it first, it could help someone out there.

    It's not a great source code, but every problem I have encountered, I solved it. Here is a list of the things I've done (which I remember, there could be more):-


    Server Side:

    • All upgrading scrolls are activated and working probably
    • Devil Tower Blacksmith give 20% boost (and I believe that he give a fee discount also)
    • Some pets can pickup items (CPetActor::isPickUpPet in PetSystem.cpp)
    • Skills manuals now do give a success boost of 20%
    • 7/8 skills now can be trained by books even before they reach m1, like the official version
    • Guild banks have been activated (only depositing)
    • Guild lands and other guild NPCs will now be bought by the yang in the guild's bank
    • New quest function the change guild's gold (change_gold)
    • Guild blacksmiths now have levels (will be explained later in the topic)
    • Rituals Stone, Anti-Resistances and new monsters bonuses have been added eg. Strong Against Desert Monsters
    • Transmutation system is working probably, even with weapons costumes
    • Most events drops now is managed by the source, you won't need to make a quest for the drop. as soon as you activated the game flag, the associated item will start dropping (managed in void ITEM_MANAGER::CreateQuestDropItem in item_manager.cpp)
    • Events that has special NPCs eg. Christmas and Ramadan event, the NPCs will summoned automatically in their respected location (managed in questmanager.cpp in void CQuestManager::SetEventFlag)
    • mapindex GM command will return the map index
    • GM restrict system is in place, they can't trade, friend, duel with normal players. IMPLEMENTOR Level is not affected by that restriction.
    • Almost everything I've added is controllable by a macro

    Client Side:

    • A lot of function has been added:-
      • GetMasterPID returns the Guild leader PID, used later to prevent a visual bug where a member with withdraw authority can kick the leader (the leader won't be kicked actually, but it will look like s/he was kicked)
      • itemBindable checks if the item is bind-able
      • GetMonsterRaceFlag returns the monster's race. (doesn't work probably if the monster have more than one flag)
      • CItemData::GetLevelLimit returns the level limit of an item, 0 if there was not any level limit.
      • And much more you find them out yourself...
    • The solution has been upgraded to VS2017, hadn't much time to test it, but seems to be working well, a old not upgraded version will be attached as well

    Root:

    • Fixed a lot of bugs with (uiinventory.py and uitooltip.py)
      • Visual bug with the Change attributes item, if you placed it on a item that doesn't have any bonuses, it will be green.
      • Same bug with Blessing Marble, now it will only be green if the item has 4 bonuses
      • if the item has 4 of more bonuses, add attribute will have a red effect
      • Bind and unbind working perfectly with right effects
    • Deleted some of the unnecessary files
    • Tried to move all localized text to locale_game, not sure if there's more.


    Now let me explain the upgradable guild NPCs, at the moment it's only the blacksmith. So there are 3 levels, as levels go up, the upgrade fees increase, and the succeeding rate go up as well. at Level 3, the blacksmith return 10% of the upgrade cost to the guild bank, of course only when the player is not a member of the blacksmith's guild. They are upgraded by a quest (which will be attached as well). if anyone need more explanation, I'm happy to explain it more.


    Other thing that I've changed dramatically is the New pet system. So the public version of the pet system, the time of the pet doesn't change unless the pet is summoned, and that doesn't make any sense. I've changed that so the timer will change even if the pet is not summoned. I've also changed the system that most of the data will be saved on the item, and less data will be queried form the DB each time the player summon the pet, it's not perfect, but it's better version, atleast for me. the number of skills will appear once you open the egg on the item, just like official. the timer of transportation box will not begin now until the pet is placed in it. and more information about the pet now appear on the transportation box.

    I was trying to communicate the pet's information using packets instead of commands, put didn't have the time to finish it. you will find the basis of it there, so you always can complete my job.


    I think I have mentioned everything, If I remember any more information, I will update the topic.


    Please note that the EterPack is changed, you can access them from Bitte melden Sie sich an, um diesen Link zu sehen.


    The Client is in Arabic language, so I don't think anyone will use it, but I'm gonna upload it anyway. I'll upload the root, locale and uiscript separately if anyone needed them.


    Downloads

    Server Source


    Client Source


    Client


    Virus Scans:



    Cheers,

    Abood

    Hi,
    I'm using this function to get monsters type


    it works perfectly when the monster only have one type eg. ANIMAL, DEVIL, ATT_ELEC etc
    but whenev er the mob have more than one type (eg, ANIMAL, ATT_ELEC) it always returns 0
    What am I missing ?

    Hey,
    every time a male shaman is hit, he will move backwards
    here is a gif
    Bitte melden Sie sich an, um diesen Link zu sehen.


    this bug doesn't affect female shamans, only males

    Hey guys,
    I'm discovered a very strange problem with my weapon costumes,
    If I travel/logout/change character while equipping them, the core crashes, If I just wear them without doing any of the previous, nothing happens
    I've tried to know the source of the problem but with no luck
    the best I could do is that the core crashes when it try to do:
    M2_DELETE(ch);
    in CHARACTER_MANAGER::DestroyCharacter (char_maanger.cpp)


    as I understand, this command deletes the pointer to the character , I don't understand why would wearing a weapon costume may affect that!

    Hey guys,
    so after I installed the transmutation system, the slot effect don't work for one of them


    Bitte melden Sie sich an, um diesen Link zu sehen.


    this is my code in uiinventory.py
    so whatever part i make last, the effect work for it
    for example, if I make the sash part first and then the transmutation, the sash only will work, and vice versa


    do any one know how to fix them?

    Hi there,
    Recently the official server had introduced a new upgrading scroll called rituals stone, it can work only with item with a minimum level of 80, has a better chance of success, and the failed items don't lose a level.
    So I have created it's c++ part, and I would like to share it with you:
    Bitte melden Sie sich an, um diesen Link zu sehen.


    you can find the icon and item_desc and so on here:
    Bitte melden Sie sich an, um diesen Link zu sehen.
    it's in Arabic, you can translate to your own language
    If you found any bugs please comment below

    for some reason the same thing happen to me, if I put a value into the socket at the query, it will be all good, but if i leave it as a zero, the won't get the value which is stored at item_proto value0, and i have no idea why

    Hey guys,
    I'm having an issue with the sash positions, it doesn't happen all the time, only sometimes
    so the sash will appear normally to me
    Bitte melden Sie sich an, um dieses Bild zu sehen.


    but for other players, will appear a bit up like that


    Bitte melden Sie sich an, um dieses Bild zu sehen.


    if I mount and unmount or unequiped an re-equiped it will appear normally.


    does any one know where is issue is coming from?

    I've done both steps, and no change
    I noticed as well the syserr of the channel is filled with

    Code
    1. SYSERR: Mar 12 04:08:55.576390 :: GetQuestStateIndex: QUEST wrong quest state file arena_manager.wooooork
    2. SYSERR: Mar 12 04:08:55.576627 :: GetQuestStateIndex: QUEST wrong quest state file arena_manager.wooooork
    3. SYSERR: Mar 12 04:08:56.614015 :: GetQuestStateIndex: QUEST wrong quest state file arena_manager.wooooork
    4. SYSERR: Mar 12 04:08:56.614070 :: GetQuestStateIndex: QUEST wrong quest state file arena_manager.wooooork
    5. SYSERR: Mar 12 04:08:57.459779 :: GetQuestStateIndex: QUEST wrong quest state file arena_manager.wooooork
    6. SYSERR: Mar 12 04:08:57.459887 :: GetQuestStateIndex: QUEST wrong quest state file arena_manager.wooooork
    7. SYSERR: Mar 12 04:08:57.898291 :: GetQuestStateIndex: QUEST wrong quest state file arena_manager.wooooork

    for some reason it search the state in arena_manager quest, where this quest is clearly named testkill

    Hi guys,


    this is very simple quest, but for some reason, the state is never changed, which means that no mater how many times i use the item 50307, it says "Test"
    can anyone please explain to me what the fuck is wrong ?

    Hi guys,
    I have a problem with the pvp arena, when I challenge a character ( both not GMs) the npc teleport them to the arena, but immediately after that, they both get teleported automatically to their city. and then the duel starts there, but with GM character, I don't get teleported outside the map, but the duel never starts (which I think is some kind of protection), so why do the regular characters get teleported? I have cleared the object folder to amke sure that there isn't any another quest affecting it, and the same happened. this is my arena manager quest.


    Edit: the map index is 112, and it's added in the game99 config

    Hi guys,
    I have couple of npcs and pets that looks like that
    Bitte melden Sie sich an, um dieses Bild zu sehen.
    Bitte melden Sie sich an, um dieses Bild zu sehen.
    can any one tell me what exactly causes the npc to look like that? cause I check everything and is looks fine

    Hi Guys,
    Sometimes when I close the game using the shutdown shell, it jams on shutting-down the database. Here is a ss of what I mean:
    Bitte melden Sie sich an, um dieses Bild zu sehen.
    and it stay like that forever. it doesn't happen every time, it rarely happen, but I can't catch a connection with this issue and anything I do.
    this is my shutdown shell
    Bitte melden Sie sich an, um diesen Link zu sehen.
    and this is the dp shutdown shell
    Bitte melden Sie sich an, um diesen Link zu sehen.