Jump to content
  • 0

reduce flee rate


Notorius

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.02
  • Content Count:  106
  • Reputation:   1
  • Joined:  09/24/19
  • Last Seen:  

how to reduce flee rate in pre renewal based on AGI

Edited by Notorius
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  806
  • Reputation:   233
  • Joined:  01/30/13
  • Last Seen:  

I would assume in status.cpp:

void status_calc_misc(struct block_list *bl, struct status_data *status, int level)

	// Flee
	stat = status->flee;
	stat += level + status->agi;
	status->flee = cap_value(stat, 1, SHRT_MAX);

Change formula to whatever you want. 50% AGI would be:

	// Flee
	stat = status->flee;
	stat += level + status->agi/2;
	status->flee = cap_value(stat, 1, SHRT_MAX);

Luk does not increase flee in pre-renewal anyway. Perfect flee you find as Flee2.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.02
  • Content Count:  106
  • Reputation:   1
  • Joined:  09/24/19
  • Last Seen:  

My intention is to lower the flee rate by 50%

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

you meant these ? conf/battle/battle.conf#L64-L78

// Type of penalty that is applied to FLEE when more than agi_penalty_count monsters are targetting player
// 0 = no penalty is applied
// 1 = agi_penalty_num is reduced from FLEE as a %
// 2 = agi_penalty_num is reduced from FLEE as an exact amount
agi_penalty_type: 1

// When agi penalty is enabled, to whom it should apply to? (Note 3)
// By default, only players get the penalty.
agi_penalty_target: 1

// Amount of enemies required to be targetting player before FLEE begins to be penalized
agi_penalty_count: 3

// Amount of FLEE penalized per each attacking monster more than agi_penalty_count
agi_penalty_num: 10

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.02
  • Content Count:  106
  • Reputation:   1
  • Joined:  09/24/19
  • Last Seen:  

16 hours ago, Emistry said:

you meant these ? conf/battle/battle.conf#L64-L78

// Type of penalty that is applied to FLEE when more than agi_penalty_count monsters are targetting player
// 0 = no penalty is applied
// 1 = agi_penalty_num is reduced from FLEE as a %
// 2 = agi_penalty_num is reduced from FLEE as an exact amount
agi_penalty_type: 1

// When agi penalty is enabled, to whom it should apply to? (Note 3)
// By default, only players get the penalty.
agi_penalty_target: 1

// Amount of enemies required to be targetting player before FLEE begins to be penalized
agi_penalty_count: 3

// Amount of FLEE penalized per each attacking monster more than agi_penalty_count
agi_penalty_num: 10

 

Hi, forgive me if I'm not precise when describing what I need. I'm using a translator.:( But yes, what I want is to reduce the users' flee rate, I don't know how to do it, I don't know how to do so that the agi and luk don't increase so much the flee rate in battleconf how can i reduce the rate that increases agi and luk by 30%?

https://prnt.sc/9irm64dgDOC_

fleee_1.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.02
  • Content Count:  106
  • Reputation:   1
  • Joined:  09/24/19
  • Last Seen:  

13 hours ago, Playtester said:

I would assume in status.cpp:

void status_calc_misc(struct block_list *bl, struct status_data *status, int level)

	// Flee
	stat = status->flee;
	stat += level + status->agi;
	status->flee = cap_value(stat, 1, SHRT_MAX);

Change formula to whatever you want. 50% AGI would be:

	// Flee
	stat = status->flee;
	stat += level + status->agi/2;
	status->flee = cap_value(stat, 1, SHRT_MAX);

Luk does not increase flee in pre-renewal anyway. Perfect flee you find as Flee2.

Hello, thank you very much, it worked perfectly. I have one more question, how do I reduce the bonus of the flee and the hit that is added from the base level? Let me explain my server is a max blvl 500 server and just for that reason it already gives me 500 hit and 500 flee how do I change this in half?

https://prnt.sc/jNOo350bVXFD

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.02
  • Content Count:  106
  • Reputation:   1
  • Joined:  09/24/19
  • Last Seen:  

21 hours ago, Notorius said:

Hello, thank you very much, it worked perfectly. I have one more question, how do I reduce the bonus of the flee and the hit that is added from the base level? Let me explain my server is a max blvl 500 server and just for that reason it already gives me 500 hit and 500 flee how do I change this in half?

https://prnt.sc/jNOo350bVXFD

resolved as follows lower it by 50%. sorry I'm still learning

 

 

	// Flee
	stat = status->flee;
	stat += level/2 + status->agi/2;
	status->flee = cap_value(stat, 1, SHRT_MAX);

 

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