Jump to content

Recommended Posts

 

Hi,

i wroted some function to block mober put hack.

 

Search

case UNIQUE_ITEM_CAPE_OF_COURAGE:

in file char_item.cpp

and comment this line

item->SetCount(item->GetCount()-1);

result

case UNIQUE_ITEM_CAPE_OF_COURAGE:
                                //¶ó¸¶´Ü ş¸»óżë żë±âŔÇ ¸ÁĹä
                            case 70057:
                            case REWARD_BOX_UNIQUE_ITEM_CAPE_OF_COURAGE:
                                AggregateMonster();
                                //item->SetCount(item->GetCount()-1);
                                break;

Next search function CHARACTER::AggregateMonster() in file char_battle.cpp

and replace with this

Spoiler

 

void CHARACTER::AggregateMonster()
{
    LPSECTREE pSec = GetSectree();
    if (pSec)
    {
        // Joseph Lochy (www.lochy.cz)
        // Lochy edit
        // Ochrana pred hackem na plaste
        LPITEM item1 = ITEM_MANAGER::instance().Find(UNIQUE_ITEM_CAPE_OF_COURAGE);
        LPITEM item2 = ITEM_MANAGER::instance().Find(70057);
        LPITEM item3 = ITEM_MANAGER::instance().Find(REWARD_BOX_UNIQUE_ITEM_CAPE_OF_COURAGE);
        
        if (item1 != NULL)
        {
            item1->SetCount(item1->GetCount() - 1);
            FuncAggregateMonster f(this);
            pSec->ForEachAround(f);
        }

        if (item2 != NULL)
        {
            item2->SetCount(item2->GetCount() - 1);
            FuncAggregateMonster f(this);
            pSec->ForEachAround(f);
        }

        if (item3 != NULL)
        {
            item3->SetCount(item3->GetCount() - 1);
            FuncAggregateMonster f(this);
            pSec->ForEachAround(f);
        }
    }
}

 

 

 

Please test it. I don't tested.

Sorry, for my bad English.

  • Love 1
Link to comment
https://metin2.dev/topic/9809-anti-mobber-hack/
Share on other sites

  • Active+ Member

You can use mobber hack without item. Mobber hack work mechanism;

1) Collect vid list in your area

2) Check type from vid (Pc, Mob, Pet ...)

3) Check vid living status

4) Separate ones according to the above and create new vid list

5) Send attack packet in new list members

 

So, you need check mob-player distance and attack state

Link to comment
https://metin2.dev/topic/9809-anti-mobber-hack/#findComment-58610
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 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.