Jump to content

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;

 

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

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;

 

https://metin2.download/picture/5AO4aitX8wviTK15G11o25s0gkKr2zsQ/.png

thats all.

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 2
  • Love 8
Link to comment
Share on other sites

  • 1 month 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.