Jump to content

Recommended Posts

  • Premium

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

plague.png.1f5de75b42146262dcd655a5a8078

Link to comment
Share on other sites

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

  • Premium
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

plague.png.1f5de75b42146262dcd655a5a8078

Link to comment
Share on other sites

  • Premium

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

plague.png.1f5de75b42146262dcd655a5a8078

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 3

      Crystal Metinstone

    2. 3

      Feeding game source to LLM

    3. 113

      Ulthar SF V2 (TMP4 Base)

    4. 3

      Feeding game source to LLM

    5. 0

      Target Information System

    6. 3

      Feeding game source to LLM

    7. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.