Jump to content

Recommended Posts

Posted

Hello, to display the atk in % (bonus bAtkRate,n;) on the pre-renewal stats, please open pc.hpp and do the following.

Look for the line
     #define pc_leftside_atk(sd) ((sd)->battle_status.batk + (sd)->battle_status.rhw.atk + (sd)->battle_status.lhw.atk)

replace with 

#define pc_leftside_atk(sd) (((sd)->battle_status.batk + (sd)->battle_status.rhw.atk + (sd)->battle_status.lhw.atk) * (100 + (sd)->bonus.atk_rate) / 100)

I hope this helps a few people 🙂

  • MVP 1
  • 2 weeks later...
Posted
On 2024/10/11 at PM4点26分, Olivier13300 said:

您好,要在续订前统计数据中显示攻击百分比 (bonus bAtkRate,n;),请打开 pc.hpp 并执行以下操作。

查找行
     #define pc_leftside_atk(sd) ((sd)->battle_status.batk + (sd)->battle_status.rhw.atk + (sd)->battle_status.lhw.atk)

替换为 

#定义 pc_leftside_atk(sd) (((sd)->battle_status.batk + (sd)->battle_status.rhw.atk + (sd)->battle_status.lhw.atk) * (100 + (sd)->bonus.atk_rate) / 100)

我希望这对一些人有帮助🙂

Hello, I was testing the items here on the server and I noticed that some items that increase attack are not working, an example is the Robo Eye, it gives 2% attack and 2% magic attack, but the attack bonus is not increasing damage of the character, they told me that bAtkRate only works on RE and my server is PRE-RE, is there any way to make bAtkRate work on PRE-RE?

Posted

Keep in mind that most items don't actually increase AtkRate even though the item description says so. What they actually do is increase damage against all races by x%. This is true for all items in pre-renewal.

 

Blue Pajamas Hat in re should work though with the code proposed above.

  • Upvote 1
  • Like 1
Posted
On 10/23/2024 at 3:49 PM, pengyeji said:

Hello, I was testing the items here on the server and I noticed that some items that increase attack are not working, an example is the Robo Eye, it gives 2% attack and 2% magic attack, but the attack bonus is not increasing damage of the character, they told me that bAtkRate only works on RE and my server is PRE-RE, is there any way to make bAtkRate work on PRE-RE?

You just have to go in pc.hpp and to seek the line which I indicated above and to modify it, that should function, Attention the emulators of a year with the other one that it is possible that that does not function, because the sources are to modify. This code works with emulators 2024, I have not tried on older.

Posted
3 hours ago, Olivier13300 said:

你只需要进入 pc.hpp 并寻找我上面指出的行并修改它,它应该起作用,注意一年的模拟器与另一个模拟器,它可能不起作用,因为来源是要修改的。这段代码适用于模拟器 2024,我还没有在旧版本上尝试过。

I tried but couldn't

Posted

got the chance to finally try it out and it works like a charm. here are the pictures:

DB entry. Card of choice was Turtle General since he already has +20% ATK in his description. changed the bAllClass to bAtkRate.

image.png.0abd8cc8911b87e21f4c5d714b2ec7fb.png
next the two pictures taken before compiling the server with his code:

before code and compile = no turtle general card:image.png.cc081bea0836bc7eec8af1f461f67dfa.png   and with turtle general card: image.png.b0d93ae2133790f7392c5fcdd436bf64.png ( dont know why the picture is blurry)




and here is after compiling with his code:

I increased my STR to make the atk value hit close to 10000 so I can test if it actually shows 20% increase and it certainly does!


after code and compile = no turtle general:  image.png.64efbcaa288eda6394335ad23b01c5c2.png and with turtle general card: image.png.e8d2b0564252325b07b375f3ffd017d0.png can see that the code works and shows 20% atk increase!

thanks for sharing your code, I was always bugged as to why atk bonus % wont show any changes but now it actually does! especially nice since I want to work with random stats on gear and atk% never showed up

Posted
6 hours ago, b1rbert said:

got the chance to finally try it out and it works like a charm. here are the pictures:

DB entry. Card of choice was Turtle General since he already has +20% ATK in his description. changed the bAllClass to bAtkRate.

image.png.0abd8cc8911b87e21f4c5d714b2ec7fb.png
next the two pictures taken before compiling the server with his code:

before code and compile = no turtle general card:image.png.cc081bea0836bc7eec8af1f461f67dfa.png   and with turtle general card: image.png.b0d93ae2133790f7392c5fcdd436bf64.png ( dont know why the picture is blurry)




and here is after compiling with his code:

I increased my STR to make the atk value hit close to 10000 so I can test if it actually shows 20% increase and it certainly does!


after code and compile = no turtle general:  image.png.64efbcaa288eda6394335ad23b01c5c2.png and with turtle general card: image.png.e8d2b0564252325b07b375f3ffd017d0.png can see that the code works and shows 20% atk increase!

thanks for sharing your code, I was always bugged as to why atk bonus % wont show any changes but now it actually does! especially nice since I want to work with random stats on gear and atk% never showed up

I'm glad it's working for you too.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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