Jump to content
×
×
  • Create New...
  • 0

Message with the remaining hp and mp post duel


RedStar

Question

4 answers to this question

Recommended Posts

  • 1

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Activity

    1. 36

      Destroy Item System

    2. 1

      Brillances

    3. 0

      Fusion.org is Looking for Staff Members

    4. 1

      Brillances

    5. 3

      ELONIA2 | PVM-MEDIUM | 11 LANGUAGES | INTERNATIONAL | A NEW STORY

    6. 4

      Spider Queen not spawining in spider dungeon v1

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.