Jump to content
Forgot your email address? ×
×
×
  • Create New...

Fixed Bug Warrior Skill


Recommended Posts

 

Spoiler

220249qDAKjis.gif.0a0cba3450e627601450ba

 

but have 1 error, i fix and work for me

go to char.cpp

search: case APPLY_MAX_HP:

and replace with this

 

		case APPLY_MAX_HP:
		case APPLY_MAX_HP_PCT:
			{
				if(GetMaxHP() == 0) break;
				PointChange(aApplyInfo[bApplyType].bPointType, iVal);
			}
			break;

		case APPLY_MAX_SP:
		case APPLY_MAX_SP_PCT:
			{
				if(GetMaxSP() == 0) break;
				PointChange(aApplyInfo[bApplyType].bPointType, iVal);
			}
			break;

 

http://prntscr.com/74g0lc

next search: case POINT_MAX_HP: and case POINT_MAX_SP:  (line3309)

replace with this

 

		case POINT_MAX_HP:
			{
				SetPoint(type, GetPoint(type) + amount);
				int curMaxHP = GetMaxHP();
				int hp = GetRealPoint(POINT_MAX_HP);
				int add_hp = MIN(3500, hp * GetPoint(POINT_MAX_HP_PCT) / 100);
				add_hp += GetPoint(POINT_MAX_HP);
				add_hp += GetPoint(POINT_PARTY_TANKER_BONUS);
				SetMaxHP(hp + add_hp);
				float fRatio = (float)GetMaxHP() / (float)curMaxHP;
				PointChange(POINT_HP, GetHP() * fRatio - GetHP());
				val = GetMaxHP();
			}
			break;

		case POINT_MAX_SP:
			{
				SetPoint(type, GetPoint(type) + amount);
				int curMaxSP = GetMaxSP();
				int sp = GetRealPoint(POINT_MAX_SP);
				int add_sp = MIN(800, sp * GetPoint(POINT_MAX_SP_PCT) / 100);
				add_sp += GetPoint(POINT_MAX_SP);
				add_sp += GetPoint(POINT_PARTY_SKILL_MASTER_BONUS);
				SetMaxSP(sp + add_sp);
				float fRatio = (float)GetMaxSP() / (float)curMaxSP;
				PointChange(POINT_SP, GetSP() * fRatio - GetSP());
				val = GetMaxSP();
			}
			break;

 

http://prntscr.com/74g260

thats all.

  • Metin2 Dev 2
  • Love 8
Link to comment
  • 1 month later...

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

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


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.