Jump to content

Recommended Posts

Hi, i added auto hunt dracarys and i saw that this sistem is for only attacking mobs, i changed isEnemy to IsStone to attack stones buut i saw that this sistem take GetTargetVID and when a metin is destroyed he don;t go to another metin for some time, but when the character attack the stone and i will click on another mob around me he goes to new metin stone.

so what should i change  here for not taking GetTargetVID but the next metin

 

    const DWORD targetPlayerVID = rkPlayer.GetTargetVID();

    D3DXVECTOR3 v3Movement, c_v3Dst;
    TPixelPosition targetPos;

    std::vector<std::pair<CInstanceBase*, float>> m_vecVictimList;
    
    for (TCharacterInstanceMap::iterator itor = m_kAliveInstMap.begin(); itor != m_kAliveInstMap.end(); ++itor)
    {
        CInstanceBase* pkVictim = itor->second;
        if (pkVictim == pkInstMain || pkVictim->IsDead() || pkVictim->GetVirtualID() == targetPlayerVID || !pkVictim->IsStone())
            continue;

 

 

Link to comment
https://metin2.dev/topic/32938-auto-hunt-dracarys/
Share on other sites

  • 1 year 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.