Pet Focus
I remember reading a while back about the broken focus items (and have dealt with them myself on my server). I haven't visited for a bit though and was wondering if anyone has found a fix or a work around for them?
Maybe create/code new focus items all together? Any help is appreciated (and I hope this is the right forum). |
Anyone who has some experience with spell editing may be able to help.
There are 3 spell effect ID's for Pet Focus items. There may supposed to be more, but right now this is what I see. **The only exception is the very first focus items, Torch/Stein/Broom/Shovel, have a fourth spell effect ID, but I haven't figured out what it does yet.**
I have tried different minimum, maximum, and special values for all effect types and can't get any difference. All focus items give the same +1 level, the same +hp, the same damage, etc. Anyone know if there may be an effect type (or several) missing? |
I believe pet focuses are barely in. I think the server sees any focus item and just ups the pet by 1 level.
Basically, noone has bothered to write the code to handle pet focuses. |
The 135 is a Resist based limit. Magic (1) = Air, Fire (2) = Fire, Cold (3) = Water, Disease (5) = Earth, Poison (4) = Necro pet.
Any pet focus without the resist limit should work for all types of pets. zone/pets.cpp, line 192 and following, this is where the boost from the focus happens, and, as MNWatchDog noted, it always does the same thing if you have any kind of focus. The power boost is parsed and reported there, though, if I'm reading the focus check function right, so you could adjust the boost to your liking. To be really live-like, the NPC database would need to have a unique entry for every possible combination of pet and focus. Come SOF pets, there is also the need to have the pets spawn with gear. Somewhere along the lines, it also was introduced that any focus will summon mage pets with a full set of mage summoned armor already equipped. |
Figures. Thanks for the info though. Too bad this wasn't ever coded fully.
|
Bumping this thread in hopes of a pet focus item update. Instead of just incrementing pet level by 1, would it be feasible to allow the initial level of focus to increment by 1, and subsequent focus effects increase pet level by 2, 3, 4, 5, etc.?
|
Quote:
|
since this isnt nearly close to how live works, it doesnt have any chance of being submitted for server code(I imagine) however for custom servers its a very easy change...
original code... pets.cpp... line 251 Code:
if (this->IsClient() && CastToClient()->GetFocusEffect(focusPetPower, spell_id) > 0) Code:
if (this->IsClient() && CastToClient()->GetFocusEffect(focusPetPower, spell_id) == 5) Code:
if (this->IsClient() && CastToClient()->GetFocusEffect(focusPetPower, spell_id) == 10) Playing with the source is alot easier than it seems, easier than waiting 16 months for somebody to do it for you lol. |
I don't program and while I would love to learn, I just don't have the time.
Thanks for the post, if anyone has the time to add the variables to adjust it automatically that'd be cool :D |
All times are GMT -4. The time now is 11:00 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.