RagnarokOnline2015

New member
Messages
46
Points
0
Age
34
Location
Latvia
Emulator
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

 
Last edited by a moderator:
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

 
Last edited by a moderator:
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

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

 
Last edited by a moderator:
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

 
@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

 
Last edited by a moderator:
@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.

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:

 
Back
Top