Jump to content
  • 0

Question

6 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 0
Posted

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

 

  • 0
Posted
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

  • 0
Posted
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

  • 0
Posted
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);

 

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