Jump to content
  • 0

Reset skill PVP


DemOnJR

Question

  • VIP

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 post

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 post
  • 0
  • VIP
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 post
  • 0
  • VIP

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 post
Guest
This topic is now closed to further replies.


  • Activity

    1. 0

      Compile Server

    2. 0

      QC error message for special characters next to apostrophes

    3. 135

      Render Target Remastered

    4. 0

      Mount not attacking

    5. 2

      Rodnia2 | PVM | International | 3k+ players | Multiple-Languages | 2nd server opening: 13.02.2021

    6. 218

      WorldEditor ReMIX

    7. 54

      Quiver System

    8. 72

      Party Flag

  • Recently Browsing

    No registered users viewing this page.

Shoutbox

Shoutbox

Chatroom Rules

 

Join our Discord

A request for help = Shoutbox Ban

Be respectful & Respect the rules

 

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