Jump to content

Recommended Posts

  • Premium

Fix Dungeon count monsters:

Dungeon.cpp

struct FCountMonster
{
    int n;
    FCountMonster() : n(0) {};
    void operator()(LPENTITY ent)
    {
        if (ent->IsType(ENTITY_CHARACTER))
        {
            LPCHARACTER ch = (LPCHARACTER) ent;
             if (ch->IsMonster() || ch->IsStone())//FIX
                n++;
        }
    }
};

(Function was keeping also NPC, it could make you ugly problems).

 

 

Fix Dungeon memory usage:

namespace
{
    struct FNotice
    {
        FNotice(const char * psz) : m_psz(psz)
        {
        }

        void operator() (LPENTITY ent)
        {
            if (ent->IsType(ENTITY_CHARACTER))
            {
                LPCHARACTER ch = (LPCHARACTER) ent;
                if (ch->IsPC()) //FIX
                    ch->ChatPacket(CHAT_TYPE_NOTICE, "%s", m_psz);
            }
        }

        const char * m_psz;
    };
}

 

Just 2 errors.
I hope that it'll be useful

Edited by WeedHex
  • Metin2 Dev 1
  • Love 28
Link to comment
https://metin2.dev/topic/18857-fix-korean-errors-part1/
Share on other sites

  • 9 months later...
  • 2 months later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.