Jump to content

Recommended Posts

hi,

 

I wanted know ! Someone would have the code to implement the new bonus: Resistance to half - humans ?

 

 https://metin2.download/picture/U8uH1656Kf6LIwF74ERCWUbV2H4fk4f2/.png

 

Waiting for your reply

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/18640-resistance-hh/
Share on other sites

  • Premium
il y a 9 minutes, Dobrescu Sebastian a dit :

Am I too tired, or .. what ? Isn't HH old since metin2 was created ?

The new one is resistance the old one is bonus I guess.

 

il y a 10 minutes, Natox a dit :

Some serious answers please ...

Still it's really easy to do. Tierrilopes answered

Link to comment
https://metin2.dev/topic/18640-resistance-hh/#findComment-101716
Share on other sites

	if (pkAttacker->IsPC() == true)
	{
		iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_HUMAN)) / 100;
		switch (pkAttacker->GetJob())
		{
			case JOB_WARRIOR:
				iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_WARRIOR)) / 100;
				break;

			case JOB_ASSASSIN:
				iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_ASSASSIN)) / 100;
				break;

			case JOB_SURA:
				iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_SURA)) / 100;
				break;

			case JOB_SHAMAN:
				iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_SHAMAN)) / 100;
				break;
#ifdef ENABLE_WOLFMAN_CHARACTER
			case JOB_WOLFMAN: // TODO: 수인족 저항 처리
				iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_WOLFMAN)) / 100;
				break;
#endif
		}
	}

iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_HUMAN)) / 100; 

 

GL

  • Love 2
Link to comment
https://metin2.dev/topic/18640-resistance-hh/#findComment-101736
Share on other sites

I have this problem :/

https://metin2.download/picture/W9Pvbo2O2j8qI05mCZMfITr7yX3jCQ6T/.png

 

https://metin2.download/picture/VQBCkilDd3R0oMO3vn58O9X9bYUP86q4/.png

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/18640-resistance-hh/#findComment-101744
Share on other sites

10 hours ago, Natox said:

ServerSource / Common / length.h

find : POINT_MAX_NUM

You will find a  number beside it 

try changing it to 255 .

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/18640-resistance-hh/#findComment-101766
Share on other sites

  • Management
On 5/18/2018 at 11:16 PM, ManiacRobert said:

	if (pkAttacker->IsPC() == true)
	{
		iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_HUMAN)) / 100;
		switch (pkAttacker->GetJob())
		{
			case JOB_WARRIOR:
				iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_WARRIOR)) / 100;
				break;

			case JOB_ASSASSIN:
				iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_ASSASSIN)) / 100;
				break;

			case JOB_SURA:
				iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_SURA)) / 100;
				break;

			case JOB_SHAMAN:
				iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_SHAMAN)) / 100;
				break;
#ifdef ENABLE_WOLFMAN_CHARACTER
			case JOB_WOLFMAN: // TODO: 수인족 저항 처리
				iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_WOLFMAN)) / 100;
				break;
#endif
		}
	}

iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_HUMAN)) / 100; 

 

GL

Thanks, worked like a charm!

raw

raw

Link to comment
https://metin2.dev/topic/18640-resistance-hh/#findComment-101811
Share on other sites

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.