Jump to content

Fix Hitting from the top of the horse


Recommended Posts

Hi guys
Anyone who used Marty's source and wants to make a very difficult server know about this bug
You can hit from the top of the horse even though the horse is level 1 Let's fix this bug and make it work perfectly like the official server

 

Fix instancebase.cpp:

// Fix Horse 2024
UINT CInstanceBase::SHORSE::GetLevel()
{
    if (m_pkActor)
    {
        DWORD dwMountVnum = m_pkActor->GetRace();
        
        if (dwMountVnum == 20101 || dwMountVnum == 20102 || dwMountVnum == 20103)
        {
            return MOUNT_TYPE_NONE;
        }

#ifdef ENABLE_NO_MOUNT_CHECK
        return MOUNT_TYPE_MILITARY;
#else
        return static_cast<UINT>(GetMountLevelByVnum(dwMountVnum, false));
#endif
    }
    return 0;
}

Hope it helps someone.. Goodbye

  • Metin2 Dev 1
Link to comment
https://metin2.dev/topic/32961-fix-hitting-from-the-top-of-the-horse/
Share on other sites

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