Jump to content

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 116
  • kekw 2
  • Cry 1
  • Smile Tear 1
  • Confused 1
  • Good 30
  • muscle 1
  • Love 10
  • Love 83
Link to comment
https://metin2.dev/topic/11596-target-damage-system/
Share on other sites

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

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.