NPC Scaling?
So my NPC is scaling weirdly, 31 health in the database, 8171 in the game, it spawns at 0% health and just stands there, slowly regenerating.
http://i.imgur.com/QMqOGVu.png http://i.imgur.com/GxCdz1q.png http://i.imgur.com/pxvT2OD.png Does anyone else experience this? Is it due to a setting in npc_types, or should I look for an outside source? EDIT: I just noticed that all mobs spawn with an extra 8140 health, even with #spawn Test_Mob 1 1 3 100000 it spawns with 108140. |
Look at this, sorry for double posting, when I put their health at -8109 it sets their maximum to 31.
http://i.imgur.com/oGTDsA0.png http://i.imgur.com/GsqGqpl.png http://i.imgur.com/vX6G9cW.png |
They wearing any gear?
|
No sir, the two screenshots I posted with their stats show 0 items.
|
What client are you using?
|
I'm running Underfoot/House of Thule, I don't believe it's client-related as #npcstats shows the NPC with an extra 8,140 health.
|
Roger that, just wanna make sure that I can mimic your conditions :)
|
I followed some of Uleat's advice and added debug messages in the code, this is the code I used.
Code:
SetEmoteID(d->emoteid); Code:
[01.10. - 07:03:41] Mob: Zaoco_Liaoc000 |
Ok...
Clients, bots and mercs use their own virtual CalcBonuses() methods and do not call Mob::CalcBonuses. This basically leaves NPC's. (Even though they have their own virtual, they still call the parent class method..twice, on entry and exit.) You should be able verify this on any pet, player or otherwise. EDIT: At what point are you applying your scalar modifiers? |
Okay, so it's not only scaling health. Also, my other database works just fine, no extra stats or health, it's rather weird...
Here's a picture of extra health and stats, the query for this NPC is below. http://img89.imageshack.us/img89/418/y2ps.png Code:
INSERT INTO npc_types VALUES Code:
[01.11. - 06:06:13] Mob: Grogg_Hoack000 Code:
0 0 Kreljnok's Sword of Eternal Power 20 70 0 20 15 0 0 30 25 20 0 4 1 8 1 0 1 0 1 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 500 500 0 1 4278190080 0 0 0 0 30 46 0 0 29 0 0 25 5 0 0 0 320 0 0 0 0 0 0 0 0 -1 30 1 0 0 370 2 1521 IT10749 0 0 0 0 0 6 0 1 0 0 0 0 -1 0 0 1 0 30 0 65535 0 0 0 70 1 6 2 -1 0 24576 6264 0 0 0 0 0 0 20 0 1 0 0 0 0 300 6 0 0 0 0 0 2012-12-27 10:35:28 Epic 2.0 0 0 0 0 1 0 0 0 -1 0 0 0 0 6280 2 0 0 0 0 0 0 0 -1 0 0 0 0 2012-06-20 19:37:58 13THFLOOR 0 1 0 0 0 0 0 0 0 0 -1 0 0 00000000000000000000 0 0 0 0 0 0 -1 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2004-12-07 09:35:20 0 70 0 0 0 -1 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 142 0 1 0 1036831949 1075838976 0 -1 0 -256 255 0 0 -2147483648 63 0 0 0 1 |
So, the loot ID 0 was pushing the extra hp..that's weird.
I would have never thought to go there. |
I wouldn't have either until I saw the NULL being replaced with a weapon, then I saw item id 0, then I removed it and everything was fine.
|
All times are GMT -4. The time now is 02:14 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.