Jump to content
  • 0

Defense problem


Kulibaby

Question

I do not know if I am doing right or wrong, the problem is that no matter what defense you put on an NPC, the player will always take away the same. I explain? For example: if a player has 50 attack and I place an NPC 80 for defense, the player takes 40 or more of his life, if I put 255 defense for the NPC, the player still takes 40

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
13 hours ago, Kulibaby said:

I do not know if I am doing right or wrong, the problem is that no matter what defense you put on an NPC, the player will always take away the same. I explain? For example: if a player has 50 attack and I place an NPC 80 for defense, the player takes 40 or more of his life, if I put 255 defense for the NPC, the player still takes 40

 

Can you show your weapon setup and NPC? As out the box calculations look to work fine.

You can change how damage and defence is calculated by changing the formulas.json in server side folder > resources:

 

{
  "ExpFormula": {
    "Source": "BaseExp * Power(Gain, Level)"
  },
  "MagicDamage": "Random(((BaseDamage + (ScalingStat * ScaleFactor))) * CritMultiplier * .975, ((BaseDamage + (ScalingStat * ScaleFactor))) * CritMultiplier * 1.025) * (100 / (100 + V_MagicResist))",
  "PhysicalDamage": "Random(((BaseDamage + (ScalingStat * ScaleFactor))) * CritMultiplier * .975, ((BaseDamage + (ScalingStat * ScaleFactor))) * CritMultiplier * 1.025) * (100 / (100 + V_Defense))",
  "TrueDamage": "Random(((BaseDamage + (ScalingStat * ScaleFactor))) * CritMultiplier * .975, ((BaseDamage + (ScalingStat * ScaleFactor))) * CritMultiplier * 1.025)"
}

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
×
×
  • Create New...