Jump to content
  • 0

Message with the remaining hp and mp post duel


RedStar
Go to solution Solved by Kafa,

Question

4 answers to this question

Recommended Posts

  • 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
Link to post
  • 0
  • 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 post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



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