Premium DemOnJR 564 Posted November 25, 2020 Premium Share Posted November 25, 2020 (edited) 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 November 25, 2020 by DemOnJR Link to comment Share on other sites More sharing options...
Dievs 30 Posted November 25, 2020 Share Posted November 25, 2020 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 More sharing options...
Premium DemOnJR 564 Posted November 25, 2020 Author Premium Share Posted November 25, 2020 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 More sharing options...
Premium DemOnJR 564 Posted November 25, 2020 Author Premium Share Posted November 25, 2020 (edited) 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 November 25, 2020 by DemOnJR 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now