Jump to content

Bug wolfman attbonus and resist


Go to solution Solved by SoNiice,

Recommended Posts

  • Premium
["ATTBONUS_WOLFMAN"] = 93,
["RESIST_WOLF"] = 92,
["RESIST_CLAW"] = 94,
 
The lycan stone does not work , it have value 93  ( it put on weapons but the dmg is same ) .
The resist wolf example : belt +9 with applyvalue 92 ( it put on me , but the dmg is again the same ) .
 
I think the problem is from game or item attr ? can you explain me  how to check if in game are the same values?
Link to comment
Share on other sites

  • Solution

Take a look at your "battle.cpp" in the game source at the function "CalcAttBonus".

else if (pkVictim->IsPC())
	{
		iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_HUMAN)) / 100;

		switch (pkVictim->GetJob())
		{
			case JOB_WARRIOR:
				iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_WARRIOR)) / 100;
				break;

			case JOB_ASSASSIN:
				iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_ASSASSIN)) / 100;
				break;

			case JOB_SURA:
				iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_SURA)) / 100;
				break;

			case JOB_SHAMAN:
				iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_SHAMAN)) / 100;
				break;
		}
	}

Add your "JOB_LYCAN" or however it's named there.

 

//edit: Don't forget to do the same at the RESIST area.

Edited by SoNiice
  • Love 1
Link to comment
Share on other sites

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.