Jump to content

Target Damage System


Recommended Posts

  • Bronze

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 68
  • kekw 2
  • Cry 1
  • Smile Tear 1
  • Confused 1
  • Good 17
  • Love 4
  • Love 47
Link to comment
Share on other sites

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

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.