Jump to content

Question

Hello, friends. I've been breaking my head for two days and can't find a solution. I can not change the maximum attack. Help me, please.

I am tired change variable type unsigned  short from unsigned int. But it did not help.

Now is 65552 but need more

 

Thank you!

screenHercules000.jpg

Edited by RagnarokOnline2015

Share this post


Link to post
Share on other sites

11 answers to this question

Recommended Posts

  • 0

Thats a pretty good question

 

asddddd.jpg

 

I can get my attack into the 100ks pretty easily...

 

You might appreciate this post i made on rathena by Lllaaazzz (me)

https://rathena.org/board/topic/118087-where-can-i-edit-stat-bonuses/#comment-357024

 

 

 

 

Edited by Orca

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, Orca said:

Thats a pretty good question

 

asddddd.jpg

 

I can get my attack into the 100ks pretty easily...

 

You might appreciate this post i made on rathena by Lllaaazzz (me)

https://rathena.org/board/topic/118087-where-can-i-edit-stat-bonuses/#comment-357024

 

 

 

 

Do not get it, could you throw a piece of code where exactly is it?  Please

Share this post


Link to post
Share on other sites
  • 0
10 minutes ago, RagnarokOnline2015 said:

Do not get it, could you throw a piece of code where exactly is it?  Please

Well i dont remember raising my max atk ..... I just changed the attk formula so that STR gives more ATK 

status.c

void status_calc_misc(struct block_list *bl, struct status_data *st, int level)
{
	nullpo_retv(bl);
	nullpo_retv(st);
	//Non players get the value set, players need to stack with previous bonuses.
	if ( bl->type != BL_PC )
		st->batk = 
		st->hit = st->flee =
		st->def2 = st->mdef2 =
		st->cri = st->flee2 = 0;
	if ( bl->type == BL_PC )
        st->batk = st->str * 1250;

I added the 

    if ( bl->type == BL_PC )
        st->batk = st->str * 1250;

at the bottom

Share this post


Link to post
Share on other sites
  • 0
Just now, Orca said:

Well i dont remember raising my max atk ..... I just changed the attk formula so that STR gives more ATK 

 

5

I need raising my max atk. If you will remember how you changed your max Atk tell me please) It would help me a lot.

Share this post


Link to post
Share on other sites
  • 0

@RagnarokOnline2015 must be using RENEWAL

in renewal, its base atk + weapon atk
simply equip any weapon will do, like I'm using priest, equip a club

"@refine 0 10", the refine will increase the value along with bonus bAtk or bonus bAtk2

in renewal, equip fire-brand will increase the value there


@Orca must be using pre-renewal

yes, equip a fire-brand doesn't increase that value,

to increase bAtk2, the only way is through refine "@refine 0 10" on your fire-brand, or using bonus bAtk2

 

and I repeat again, THIS IS OFFICIAL <-- tested same thing happen in rathena as well(EDIT)
this atk/matk stuffs has even confuse some developers

 

EDIT: seems like I misunderstood the question,
you want to increase the 65535, not to add to the bAtk2 bonus ...

Edited by AnnieRuru

Share this post


Link to post
Share on other sites
  • 0

atk and some other attributes stored in unsigned short fields.

this mean max value is 65535.

Also some packets allow only short/unsigned shorts. I can try create pr with increasing this fields, but not sure is it will broke some old pre-re code

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, AnnieRuru said:

@RagnarokOnline2015 must be using RENEWAL

in renewal, its base atk + weapon atk
simply equip any weapon will do, like I'm using priest, equip a club

"@refine 0 10", the refine will increase the value along with bonus bAtk or bonus bAtk2

in renewal, equip fire-brand will increase the value there


@Orca must be using pre-renewal

yes, equip a fire-brand doesn't increase that value,

to increase bAtk2, the only way is through refine "@refine 0 10" on your fire-brand, or using bonus bAtk2

 

and I repeat again, THIS IS OFFICIAL <-- tested same thing happen in rathena as well(EDIT)
this atk/matk stuffs has even confuse some developers

Yeah I could only hit certain numbers using the firebrand as opposed to str atk

 

Unless its the same thing but separated... doesnt matter ill never push atk up that high anyways

 

 

Edited by Orca

Share this post


Link to post
Share on other sites
  • 0
7 hours ago, AnnieRuru said:

@RagnarokOnline2015 must be using RENEWAL

Thank you! The solution was to give less attack.

 

 

 

 

 

11

Thanks for the tip. I switched to RENEWAL and The solution was to give less attack. And then the players will not reach the maximum value.

6 hours ago, 4144 said:

atk and some other attributes stored in unsigned short fields.

this mean max value is 65535.

Also some packets allow only short/unsigned shorts. I can try create pr with increasing this fields, but not sure is it will broke some old pre-re code

Thanks for the response! I think it is not necessary. I will reconsider my idea.

 

Thank you all for the help was very nice!

:blush::blush:

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.