Jump to content
  • 0

Hit and Flee in Pre-Renewal


Question

Posted

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~

2 answers to this question

Recommended Posts

  • 1
Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...