Jump to content

Message with the remaining hp and mp post duel


Go to solution Solved by Kafa,

Recommended Posts

hi.

You can do like this> 

file> pvp.cpp, function>dead

https://metin2.download/picture/AQxlWK5f2LRoBBd5m8bhhoVH5q227cN0/.png

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
  • Solution

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());
			}

 

  • Love 3
  • Honorable Member
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 by Mali61
  • Metin2 Dev 1

 

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.