Jump to content

Cyxer

Inactive Member
  • Posts

    144
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Cyxer

  1. 1 minute ago, z35 said:

    char_skill.cpp

        if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY))
            ComputeSkill(dwVnum, this);
        else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && !GetParty())ComputeSkill(dwVnum, this);
        else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && GetParty())
        {
            FPartyPIDCollector f;
            GetParty()->ForEachOnMapMember(f, GetMapIndex());
            for (std::vector <DWORD>::iterator it = f.vecPIDs.begin(); it != f.vecPIDs.end(); it++)
            {
                LPCHARACTER ch = CHARACTER_MANAGER::instance().FindByPID(*it);
                ComputeSkill(dwVnum, ch);
            }
        }

    i check later :)

  2. M2 Download Center

    This is the hidden content, please
    ( Internal )

    In client:

    Open: UserInterface/Userinterface.cpp

    Search:

    ( lib, "python22.lib" )

    Replace:

    ( lib, "python27.lib" )

    Open: ScriptLib/PythonLauncher.cpp

    Search

    #include <Python-2.2/frameobject.h>

    Replace:

    #include <Python-2.7/frameobject.h>

    Open: ScriptLib/PythonLauncher.h

    Search:

    #include <Python-2.2/frameobject.h>

    Replace:

    #include <Python-2.7/frameobject.h>

    Open: ScriptLib/PythonMarshal.cpp

    Search:

    #include <Python-2.2/longintrepr.h>

    Replace:

    #include <Python-2.7/longintrepr.h>

    Open: ScriptLib/StdAfx.h

    Search all:

    #include <Python-2.2

    Replace all:

    #include <Python-2.7

    Download: 

    This is the hidden content, please

    Spoiler

    565331fa3d047_.PNG.843d72da4b5b1d313ac2c

    • Metin2 Dev 52
    • Eyes 1
    • Dislove 2
    • Sad 1
    • Think 1
    • Good 12
    • Love 3
    • Love 25
  3. i test this:

    else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && GetParty())
        {
            FPartyPIDCollector f;
            GetParty()->ForEachOnMapMember(f, GetMapIndex());
            for (std::vector <DWORD>::iterator it = f.vecPIDs.begin(); it != f.vecPIDs.end(); it++)
            {
                LPCHARACTER ch = CHARACTER_MANAGER::instance().FindByPID(*it);
                    ch->ComputeSkill(dwVnum, ch);
            }
        }

    and the problem not fix!

  4. 4 hours ago, JinHan said:

    check this https://metin2dev.org/board/index.php?/topic/5029-c-party-flag/&page=1 , if you already installed this, check this function  in char_skill.cpp 

    FPartyPIDCollector f;
    GetParty()->ForEachOnMapMember(f, GetMapIndex());
    for (std::vector <DWORD>::iterator it = f.vecPIDs.begin(); it != f.vecPIDs.end(); it++)
    {
    LPCHARACTER ch = CHARACTER_MANAGER::instance().FindByPID(*it);
    if (ch)
    ch->ComputeSkill(dwVnum, ch);
    }

     

    then ,delete if(ch), done.

    in char_skill.cpp

    i have this:

     

        else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && GetParty())
        {
            FPartyPIDCollector f;
            GetParty()->ForEachOnMapMember(f, GetMapIndex());
            for (std::vector <DWORD>::iterator it = f.vecPIDs.begin(); it != f.vecPIDs.end(); it++)
            {
                LPCHARACTER ch = CHARACTER_MANAGER::instance().FindByPID(*it);
                if (ch)
                    ch->ComputeSkill(dwVnum, ch);
            }
        }

     

    make to this;

    Spoiler

        else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && GetParty())
        {
            FPartyPIDCollector f;
            GetParty()->ForEachOnMapMember(f, GetMapIndex());
            for (std::vector <DWORD>::iterator it = f.vecPIDs.begin(); it != f.vecPIDs.end(); it++)
            {
                LPCHARACTER ch = CHARACTER_MANAGER::instance().FindByPID(*it);
                if
                    ch->ComputeSkill(dwVnum, ch);
            }
        }

     

     

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