|
|
 |
 |
 |
 |
|
 |
 |
|
 |
 |
|
 |
|
Development::Bug Reports Post detailed bug reports and what you would like to see next in the emu here. |

08-10-2009, 10:35 PM
|
 |
Demi-God
|
|
Join Date: May 2007
Location: b
Posts: 1,449
|
|
Still the same issue, -111% HP on the NPC on range 1-5 with a level 4 NPC on the same mob. 100 hp, 97 stats, 88 resists. I think HP is the culprit once again, and not my outrageous scaling. I'm willing to bet it's recalculated for warriors and when specific buffs hit NPCs, but I am not sure. I'll post back when I do some more testing/debuggin'
|

08-10-2009, 10:41 PM
|
 |
Developer
|
|
Join Date: Aug 2006
Location: USA
Posts: 5,946
|
|
Quote:
Originally Posted by Secrets
Still the same issue, -111% HP on the NPC on range 1-5 with a level 4 NPC on the same mob. 100 hp, 97 stats, 88 resists. I think HP is the culprit once again, and not my outrageous scaling. I'm willing to bet it's recalculated for warriors and when specific buffs hit NPCs, but I am not sure. I'll post back when I do some more testing/debuggin'
|
It's possible that they may be getting calculated again, but I would think they would use the same setting that is being set for scaling. I haven't tested them with buffs or items, but all of my NPCs set to scale seem to do so very well so far.
|

08-10-2009, 10:45 PM
|
 |
Demi-God
|
|
Join Date: May 2007
Location: b
Posts: 1,449
|
|
Quote:
Originally Posted by trevius
It's possible that they may be getting calculated again, but I would think they would use the same setting that is being set for scaling. I haven't tested them with buffs or items, but all of my NPCs set to scale seem to do so very well so far.
|
I tried it locally and i'm going to try and debug this thing. It almost has to be related to items, as the same NPC spawns without items and it works perfectly normal. Or buffs, for that matter ;p
|

08-10-2009, 11:03 PM
|
 |
Demi-God
|
|
Join Date: May 2007
Location: b
Posts: 1,449
|
|
Yep, definately related to buffs and items equipped by NPCs. It adds to the NPC's base hp when an item gets added to a mob and the mob equips it. Thus, it adds 0 to base HP, recalculates base HP, and sends it to the mob. That's why the client sees -133% HP, it's getting WAY higher HP in a packet, but the mob actually has less serversided. When the client targets it, it shows the number, and when you showstats the NPC, the number is 100.
Now to fix this. :P
|

08-10-2009, 11:29 PM
|
 |
Demi-God
|
|
Join Date: May 2007
Location: b
Posts: 1,449
|
|
Fixed it, I think. We need to modify the NPC's base_hp as well as max_hp. Though, I think we probably are better off modifying both, as it is a mod ontop of the base and max HP.
When the calc check goes through for CalcMaxHP in mob.h, it works when base_hp is also there.
Items also get taken into effect this way, too.
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 11:15 AM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |