Jump to content
Phishing - Beware of identity theft... ×
  • 0

Bug wolfman attbonus and resist


Speachless

Question

  • 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

7 answers to this question

Recommended Posts

  • 0

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

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


×
×
  • 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.