RagnarokOnline2015 4 Posted March 31, 2019 (edited) 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! Edited March 31, 2019 by RagnarokOnline2015 Quote Share this post Link to post Share on other sites
0 banhelba2019 20 Posted March 31, 2019 (edited) Thats a pretty good question 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 March 31, 2019 by Orca 1 RagnarokOnline2015 reacted to this Quote Share this post Link to post Share on other sites
0 RagnarokOnline2015 4 Posted March 31, 2019 1 hour ago, Orca said: Thats a pretty good question 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 Quote Share this post Link to post Share on other sites
0 banhelba2019 20 Posted March 31, 2019 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 1 RagnarokOnline2015 reacted to this Quote Share this post Link to post Share on other sites
0 RagnarokOnline2015 4 Posted March 31, 2019 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. Quote Share this post Link to post Share on other sites
0 banhelba2019 20 Posted March 31, 2019 @4144 Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted March 31, 2019 (edited) @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 April 1, 2019 by AnnieRuru 2 banhelba2019 and RagnarokOnline2015 reacted to this Quote Share this post Link to post Share on other sites
0 4144 364 Posted March 31, 2019 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 1 RagnarokOnline2015 reacted to this Quote Share this post Link to post Share on other sites
0 banhelba2019 20 Posted March 31, 2019 (edited) 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 March 31, 2019 by Orca Quote Share this post Link to post Share on other sites
0 RagnarokOnline2015 4 Posted April 1, 2019 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! Quote Share this post Link to post Share on other sites
0 4144 364 Posted April 1, 2019 I created this pr https://github.com/HerculesWS/Hercules/pull/2419 for allow change some limits 3 RagnarokOnline2015, banhelba2019 and fiction reacted to this Quote Share this post Link to post Share on other sites
0 RagnarokOnline2015 4 Posted April 3, 2019 On 01.04.2019 at 9:33 PM, 4144 said: I created this pr https://github.com/HerculesWS/Hercules/pull/2419 for allow change some limits Ohhhhhh Thank you very very much)))))))))))) Quote Share this post Link to post Share on other sites
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!
Share this post
Link to post
Share on other sites