Jump to content

Systeman

Inactive Member
  • Posts

    30
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by Systeman

  1. Test this

    bool Pick_IsPracticeSuccess(CItem& pick)
        {
            if(pick.GetValue(1) >= 1)
            {
                return (number(1,pick.GetValue(1))==1);
            }
            else
            {
                sys_err("Error Mining.cpp in Pick_IsPracticeSuccess");
                return 0;
            }
        }

  2.  

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