View Full Version : New "Pet Focus"
Irreverent
01-17-2011, 09:53 AM
How does this work?
All of my pets/npcs are very much detuned to be solo and inline with each other. But the new pet focus makes the pet be +1 level and is a beast. Typically a 48 pet hits for around 48, but the focused pet is level 49 and hits for 200!
How does the scaling work or how do we change the code with a rule or something?
Irreverent
01-17-2011, 10:00 AM
rolled back to 1823 because of this and the discipline issues.
lerxst2112
01-17-2011, 10:40 AM
Focused pets were 1 level higher, had 20% additional HP and AC, and 10% extra damage.
If I am reading the new code correctly, it adds 1 level + (focus power / 25), and the power as a percentage increase to HP, AC, and damage.
If you had a focus power of 20 it should be the same as before, except there would be 10% additional damage.
What sort of power is on the focus you're using?
Caryatis
01-17-2011, 10:51 AM
The correct formula is max/min hit * (1+pet_power/2), this has been added to the svn.
bad_captain
01-17-2011, 05:08 PM
That formula seems to hold up for focii power < 40. I believe things change above that, but I would have to do a little more research as to the exact #s.. While up to pet focus up to 40 is good for now, anyone who does custom content up to SoD or later might want a little closer values.
An example, Lvl 82 Necro spell, Lvl 80 pet, max hit 186 unfocused.
186 * (1+ .40 /2) = 223 (Power = 40)
186 * (1+ .65 /2) = 246 (Power = 65)
Using data posted at http://www.necrotalk.com/showthread.php?t=2840&page=9, (and others I have gathered elsewhere) a closer formula for at least maxhit would be:
max/min hit * (1+2(pet_power-.15)/5)
186 * (1+ 2 * (.40 - .15) /5) = 206 (Power = 40) (Observed = 205)
186 * (1+ 2 * (.65 - .15) /5) = 225 (Power = 65) (Observed = 225)
Note: Pet stats are difficult to predict based on the fact that there are no true formulas that govern them.. There are separate pet entries for every pet for every pet focus (as observed that pet power increases don't follow linearly as you would think they should, as well as one level of Magician pet focused with one specific focus had a regen 10 times higher than any other and was most likely a typo, although I can't remember the specifics but could look it up if needed) Necro, Magician, and Beastlord pets do not follow the exact same formulas as well, which makes things even more difficult.
I submitted a fix a year ago for pet focii (not committed due to concerns with changes I made to allow pet focus effects to be retained after zoning and being suspended, as well as enabling pets to equip the face and back slots), and have further refined the formulas, but it is pretty difficult in if I fit Mage pets exactly, Necro pets are off. I've tried to come up with formulas that worked for all of them reasonably closely. In the next week or so I will post what I have to see if they can be of use.
I also have code for the equipment that comes pre-equipped when summoned based on pet_power (such as magician pets coming with full armor/jewelry, and the Mod2 cloak for all pets).
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.