Jump to content
×
×
  • Create New...
  • 0

Reset skill PVP


DemOnJR

Question

Hi, i'm using this system blackdragonx61/Metin2-Skill-CoolTime-Update (github.com) to reset the skills when an player dies, how can i use this to reset the skill for the killer (pvp event/fight) ?

 

I found something in

pvp.cpp -> pkPVP->Win(dwKillerPID);

 

but i don't know how to create the function :-?

Edited by DemOnJR

🙂

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

char_battle.cpp search:

 

if (GetDesc() != NULL)

{

...

}

 

add:

 

if (pkKiller && pkKiller->IsPC())
    {
        if(IsPC())
        {
            if (isDuel || isAgreedPVP)
            {
                pkKiller->ResetSkillCoolTimes();
            }

}

 

No tested.

Link to comment
Share on other sites

  • 0
14 minutes ago, Dievs said:

char_battle.cpp search:

 

if (GetDesc() != NULL)

{

...

}

 

add:

 

if (pkKiller && pkKiller->IsPC())
    {
        if(IsPC())
        {
            if (isDuel || isAgreedPVP)
            {
                pkKiller->ResetSkillCoolTimes();
            }

}

 

No tested.

tested not working

🙂

Link to comment
Share on other sites

  • 0

Solved form binary

PythonNetworkStreamPhaseGame.cpp
Search:

switch (kPVPPacket.bMode)
    {
        case PVP_MODE_AGREE:

Add:
#if defined(SKILL_COOLTIME_UPDATE)
            CPythonPlayer::Instance().ResetSkillCoolTimes();
#endif

 

When pvp start the time on skill will be 0.

Edited by DemOnJR
  • Love 1

🙂

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.