[FIX] Automatic farming system

  • Konuyu açan Konuyu açan M29
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 0
  • Gösterim Gösterim 173

M29

MT Üye
MT Üye
Mesaj
260
Çözümler
6
Beğeni
159
Puan
724
Ticaret Puanı
0
Hello
There is a very annoying error in the automatic farming system for METIN. To cancel the selection on metins, you must go to each metin to stop the selection on it. This is annoying.
So here is the solution

Linkleri görebilmek için giriş yap veya kayıt ol.


Open PythonPlayerInput.cpp
Search

C++:
Genişlet Daralt Kopyala
void CPythonPlayer::__OnPressGround(CInstanceBase& rkInstMain, const TPixelPosition& c_rkPPosPickedGround)
make it like this
C++:
Genişlet Daralt Kopyala
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;
    }
}


Good luck
 
Geri
Üst