Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
  • 0

Average addon hit


iks

Question

Hey guys. I wanted to change average bonus hit in items with addon_type = 1.

In item_addon.cpp i found:

int iSkillBonus = MINMAX(-30, (int) (gauss_random(0, 5) + 0.5f), 30);

Which probably say about -30, 30 range about skill damage bonus.

So now - I tried to change rigidly normal hit bonus.

int iSkillBonus = MINMAX(-30, (int) (gauss_random(0, 5) + 0.5f), 30);
int iNormalHitBonus = MINMAX(-20, (int) (gauss_random(0, 5) + 0.5f), 80);

Sometimes when I try to change attributes, i lost my average bonuses. Have you got any solutions?

For example I wanted to do:

-30, 30 range for skill bonus,

-20, 80 range for normal hit bonus.

 

Best regards.

 

@edit 23.08.2014 19:50

I guess problem solved. It was because of drawn "0". When you drawn 0 then your attributes change to another.

Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

Hey guys. I wanted to change average bonus hit in items with addon_type = 1.

In item_addon.cpp i found:

int iSkillBonus = MINMAX(-30, (int) (gauss_random(0, 5) + 0.5f), 30);

Which probably say about -30, 30 range about skill damage bonus.

So now - I tried to change rigidly normal hit bonus.

int iSkillBonus = MINMAX(-30, (int) (gauss_random(0, 5) + 0.5f), 30);
int iNormalHitBonus = MINMAX(-20, (int) (gauss_random(0, 5) + 0.5f), 80);

Sometimes when I try to change attributes, i lost my average bonuses. Have you got any solutions?

For example I wanted to do:

-30, 30 range for skill bonus,

-20, 80 range for normal hit bonus.

 

Best regards.

 

@edit 23.08.2014 19:50

I guess problem solved. It was because of drawn "0". When you drawn 0 then your attributes change to another.

Can you explain drawn "0" ?
Or anybody give an example setting.what is the logic ? Pls explain
.

Edited by dreammaker
No answer back
Link to comment
Share on other sites

!-->

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 1

      Costume shining/costume effect system

    2. 992

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    3. 3

      Biologist Manager (C++ & LUA)

    4. 3

      Visual studio 2022 compiling issue

    5. 63

      Metin2 | Mount System Renewal

    6. 58

      Metin2 2004 Beta Client

    7. 0

      🔥Paradise2 PVP SERVER GLOBAL!! EN-ES-PT 🕐📢Apertura 11 de diciembre 21 horas de España!

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.