Jump to content

Target Damage System


Recommended Posts

M2 Download Center

This is the hidden content, please
( Internal )

Hey.


i wanted to give you something, so i simply wrote the code for it:
 

Target Sys:

Spoiler

 

Server:


char_battle.cpp:
search for:


void CHARACTER::SendDamagePacket(LPCHARACTER pAttacker, int Damage, BYTE DamageFlag)

after:


damageInfo.header = HEADER_GC_DAMAGE_INFO;
damageInfo.dwVID = (DWORD)GetVID();
damageInfo.flag = DamageFlag;
damageInfo.damage = Damage;           

add:


PacketAround(&damageInfo, sizeof(TPacketGCDamageInfo));
return;


client:


PythonNetworkStreamPhaseGame.cpp:
search for:


bool CPythonNetworkStream::RecvDamageInfoPacket()

 replace:


bool bTarget = (pInstTarget==m_pInstTarget);

with:


bool bTarget = true;

Enjoy!

 

 

  • Metin2 Dev 44
  • kekw 2
  • Cry 1
  • Smile Tear 1
  • Confused 1
  • Good 9
  • Love 2
  • Love 37
Link to comment
Share on other sites

  • 2 weeks later...
  • 6 years later...


  • Similar Content

  • Activity

    1. 35

      Upgraded Reference (TMP4 Base) By Ulthar

    2. 0

      Client Debug Build error

    3. 35

      Upgraded Reference (TMP4 Base) By Ulthar

    4. 0

      Make guild

    5. 0

      Official Environment Effect Options [REVERSED]

    6. 0

      Eldria2 ~ PvP\PvM UltraFun ~ International ~ MAX LVL 200 ~ New Systems |26.03.2023|

    7. 1182

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    8. 0

      [In Development] DDoS Protection to Websites

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.