View Single Post
  #66  
Old 08-29-2025, 01:31 PM
DeathsSilkyMist DeathsSilkyMist is offline
Planar Protector

DeathsSilkyMist's Avatar

Join Date: Jan 2014
Posts: 8,271
Default

Quote:
Originally Posted by Botten [You must be logged in to view images. Log in or Register.]
I have an old friend where I use to work who is a CS major and really good at code.

Would you have a link to the code for all of these formulas?

I would love to have them look over it and determine the aggro and the whole bow damage think in another thread.
If your friend hasn't played Everquest before, it may be a bit difficult for him to navigate the EQEMU code, as it has code for features that go past Velious. He will need to know that he must disregard code for AA's, Bane Damage, etc. The links I will post below go to the EQEMU github repo. Your friend should be familiar with how to use github.

From my understanding of hate generation, the weapon damage is acquired here:

https://github.com/EQEmu/Server/blob...tack.cpp#L1648

And the damage bonus for your main hand (if applicable) is acquired here:

https://github.com/EQEmu/Server/blob...tack.cpp#L1689

Both are basically just added together and applied to the hate value, which gets added to the hate list here:

https://github.com/EQEmu/Server/blob...tack.cpp#L1736

The formulas are built into the functions, and again they often have code that isn't used in P99. You can link your friend to my damage calculator as well, which condenses a lot of the EQEMU code into simpler formulas specific to P99, but I haven't added hate generation or bow formulas yet. Your friend would need to look through the EQEMU code to find the bow stuff.

https://drive.google.com/file/d/114b...ew?usp=sharing
Last edited by DeathsSilkyMist; 08-29-2025 at 01:35 PM..
Reply With Quote