Jump to content
  • 0

Hit and Flee in Pre-Renewal


Rynbef

Question


  • Group:  Forum Moderator
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  796
  • Reputation:   101
  • Joined:  05/23/12
  • Last Seen:  

Hello everyone,

currently Im programming a PHP Based Database Overview for monsters like rms. I need to know how rAthena Calculate the Hit and Flee values for Monsters.

I've found a much different answers: Ex.: (175 + Dex + Level + Floor(Luk / 3)) or (150 + Dex + Level)

 

Rynbef~

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  64
  • Reputation:   40
  • Joined:  03/26/12
  • Last Seen:  

For Hit calculation, if you are on Renewal (150 + Dex + Level) is the right formula as it says here on the code:

		// Hit
		stat = status->hit;
		stat += level + status->dex + (bl->type == BL_PC ? status->luk / 3 + 175 : 150); //base level + ( every 1 dex = +1 hit ) + (every 3 luk = +1 hit) + 175 for BL_PC(Player) types otherwise base level + dex + 150

(175 + Dex + Level + Floor(Luk / 3)) Formula only applies to BL_PC types aka Players

If you are on Pre-Renewal it's just (Level + Dex):

		// Hit
		stat = status->hit;
		stat += level + status->dex;

For Flee on Renewal is (Level + Agi + 100):

		// Flee
		stat = status->flee;
		stat += level + status->agi + (bl->type == BL_MER ? 0 : bl->type == BL_PC ? status->luk / 5 : 0) + 100; //base level + ( every 1 agi = +1 flee ) + (every 5 luk = +1 flee) + 100 of BL_PC(Player) otherwise base level + agi + 100

and on Pre-Renewal is (Level + Agi):

		// Flee
		stat = status->flee;
		stat += level + status->agi;

 

  • Upvote 2
  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  796
  • Reputation:   101
  • Joined:  05/23/12
  • Last Seen:  

Thank u very much!

 

Rynbef~

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...