RedStar 10 Posted December 21, 2020 Share Posted December 21, 2020 Hi, I would like to send a message to both players in the chat after the end of the duel, indicating the remaining hp and mp of the winner. Thanks to those who will help me. Link to comment Share on other sites More sharing options...
Catalin2o14 142 Posted December 21, 2020 Share Posted December 21, 2020 (edited) hi. You can do like this> file> pvp.cpp, function>dead https://metin2.download/picture/AQxlWK5f2LRoBBd5m8bhhoVH5q227cN0/.png Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Solution Kafa 153 Posted December 21, 2020 Solution Share Posted December 21, 2020 Open pvp.cpp Search for pkPVP->Win(dwKillerPID); paste under: LPCHARACTER pkVictim = CHARACTER_MANAGER::instance().FindByPID(dwKillerPID); if (pkVictim) { pkVictim->ChatPacket(CHAT_TYPE_INFO, "You have %d of %d TP left", pkVictim->GetHP(), pkVictim->GetMaxHP()); pkChr->ChatPacket(CHAT_TYPE_INFO, "opponent had %d of %d TP left", pkVictim->GetHP(), pkVictim->GetMaxHP()); } 3 Link to comment Share on other sites More sharing options...
Honorable Member Mali 41926 Posted December 21, 2020 Honorable Member Share Posted December 21, 2020 (edited) 12 minutes ago, Kafa said: Open pvp.cpp Search for pkPVP->Win(dwKillerPID); paste under: LPCHARACTER pkVictim = CHARACTER_MANAGER::instance().FindByPID(dwKillerPID); if (pkVictim) { pkVictim->ChatPacket(CHAT_TYPE_INFO, "You have %d of %d TP left", pkVictim->GetHP(), pkVictim->GetMaxHP()); pkChr->ChatPacket(CHAT_TYPE_INFO, "opponent had %d of %d TP left", pkVictim->GetHP(), pkVictim->GetMaxHP()); } I saw it wrong Edited December 21, 2020 by Mali61 1 Link to comment Share on other sites More sharing options...
RedStar 10 Posted December 21, 2020 Author Share Posted December 21, 2020 Thanks for the help guys, you are great. I mark the topic as resolved. @Catalin2o14 @Kafa 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