Jump to content

Message with the remaining hp and mp post duel


Go to solution Solved by Kafa,

Recommended Posts

  • 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
Link to comment
Share on other sites

  • 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

 

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



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