Metin2 Systems [C++] Auto metin queue ground ground fix

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
Now maybe some of you don't see it as a problem, maybe others do, I hope it helps you

Replace in PythonPlayerInput.cpp function
Code:
 ::__OnPressGround
Code:
void CPythonPlayer::__OnPressGround(CInstanceBase& rkInstMain, const TPixelPosition& c_rkPPosPickedGround)
{
    __ClearReservedAction();
    __ClearAutoAttackTargetActorID();

#ifdef ENABLE_METIN_QUEUE
    for (DWORD dwVirtualID : m_vecQuqueAutoAttack)
    {
        CInstanceBase* pkInstTarget = NEW_FindActorPtr(dwVirtualID);
        if (pkInstTarget)
        {
            pkInstTarget->SetAutoFarmAffect(false);
        }
    }
    m_vecQuqueAutoAttack.clear();
#endif

    if (NEW_CancelFishing())
        return;

    if (!__IsMovableGroundDistance(rkInstMain, c_rkPPosPickedGround))
        return;

    if (!rkInstMain.NEW_MoveToDestPixelPositionDirection(c_rkPPosPickedGround))
    {
        __ReserveClickGround(c_rkPPosPickedGround);
        return;
    }
}
 

Funky Robot

New member
Funkymmo Bot
Joined
Jan 14, 2025
Messages
510
Reaction score
3
Points
1
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
Now maybe some of you don't see it as a problem, maybe others do, I hope it helps you

Replace in PythonPlayerInput.cpp function
Code:
 ::__OnPressGround
Code:
void CPythonPlayer::__OnPressGround(CInstanceBase& rkInstMain, const TPixelPosition& c_rkPPosPickedGround)
{
    __ClearReservedAction();
    __ClearAutoAttackTargetActorID();

#ifdef ENABLE_METIN_QUEUE
    for (DWORD dwVirtualID : m_vecQuqueAutoAttack)
    {
        CInstanceBase* pkInstTarget = NEW_FindActorPtr(dwVirtualID);
        if (pkInstTarget)
        {
            pkInstTarget->SetAutoFarmAffect(false);
        }
    }
    m_vecQuqueAutoAttack.clear();
#endif

    if (NEW_CancelFishing())
        return;

    if (!__IsMovableGroundDistance(rkInstMain, c_rkPPosPickedGround))
        return;

    if (!rkInstMain.NEW_MoveToDestPixelPositionDirection(c_rkPPosPickedGround))
    {
        __ReserveClickGround(c_rkPPosPickedGround);
        return;
    }
}

This post is visible to everyone, and will be monitored by forum moderators.

Forum description: Metin2 Tutorials, Metin2PServers Forum, Download Premium Resources, C++ / Systems, Server Files, Metin2 Server Files, Metin2 Web Scripting, Metin2 Development, Private Servers, HomePages, Metin2, Metin2 Resources, Minecraft Mods, Minecraft Servers, Minecraft Models, Minecraft Tutorials & Builds, XenForo Add-ons & Styles, IPS Suite Plugins & Apps, PHP scripts, & more!
 

Premium Resources

521Threads
781Messages
191Members
LikeeeLatest member
Back
Top