Jump to content

[Dev]Medo

Member
  • Posts

    25
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by [Dev]Medo

  1. On 11/5/2021 at 1:20 PM, martysama0134 said:

    There are far better solutions than using std::map or std::unordered_map (which still takes a lot of ram for no reason for each mob):

    (I included the most important parts)

    You also forgot the CubeItems, and we could probably fit the quickslot too.

      Reveal hidden contents

    u6xpuP5.png

    8l52tEd.png

    QuAep2f.png

    DyiEUfe.png

    ls2VRPX.png

    from running 1 channel - x3 cores on 2GB RAM and an additional 800MB swap -> running 4 channels -  x12 cores on 2GB RAM and an additional 1.1GB swap 

    this is huge

  2. 45 minutes ago, metin2-factory said:

    in input_main.cpp look for:

    if (pkItem->GetCell() >= INVENTORY_MAX_NUM && IS_SET(pkItem->GetFlag(), ITEM_FLAG_IRREMOVABLE))
        {
            ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<â°í> â°í·Î ¿Å±æ ¼ö ¾ø´Â ¾ÆÀÌÅÛ ÀÔ´Ï´Ù."));
            return;
        }

     

    Add below:

    if (pkItem->IsEquipped())
        {
            ch->ChatPacket(CHAT_TYPE_INFO, "You must first unequip this item.");
            return;
        }

    i really appreciate your help 

    thank you very much 

    but do you know how to prevent feeding pet equipped items ?

×
×
  • 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.