Jump to content

Lufbert

Premium
  • Posts

    76
  • Joined

  • Feedback

    0%

Posts posted by Lufbert

  1. That part for packet:

    DWORD vids[FAST_PICKUP_MAX_NUM];

    is not really good.

    You will end up sending 45 item vids even if there is only one item available to pickup (of course 44 of them will be 0).

     

    You should change your packet from static size to dynamic size and send only as much vids as needed.

    • Good 3
    • Love 1
  2. 14 minutes ago, AKUROS said:

    why?

    Because as it names said it's "smart". 

    When function execution ends pointer is automatically deallocated and ram is freed (of course only in this simple example with unique_ptr, normally that topic is more complicated for global variables, variables added to vectors etc.).

    • Love 2
  3. Im proud somebody finally start working on that annoying metin bug.

    I have tried to fixed it some time ago but without any effect.

    Unfortunately your fix seems not work for me too.

    btw. @_Sielu if you managed to fix can you just give us any hint? I respect that you do it for customer so i dont want ready solution just a little hint :)

  4. Yes. Use item.remove(1) and it's been working.

    Or replace a function to this:

    int item_remove(lua_State* L)
        {
            LPITEM item = CQuestManager::instance().GetCurrentItem();

            if(!item || CQuestManager::instance().GetCurrentCharacterPtr() != item->GetOwner())
            {
                lua_pushboolean(L, 0);
                return 0;
            }
            
            item->SetCount(-item->GetCount());
            lua_pushboolean(L, 1);
            
            return 1;
        }

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