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.
Code:
INSERT INTO npc_types VALUES
(1025,'Zaoco_Liaoc','Powersource Progression',70,3,1,1,31,0,0,3,0,0,0,0,0,0,0,0,0,0,0,1,2,-1,'24^35,1',0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,28,28,1.25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,75,75,75,75,80,75,75,0,0,1,0,1,0,0,0,0,0,100,0,0,0,0,0,100,100);
I wrote more debugging code and here is the output. The Calculations inside MaxHP are called twice, so the information is before and after, they're getting extra health from items some how.
Code:
[01.11. - 06:06:13] Mob: Grogg_Hoack000
[01.11. - 06:06:13] [pre-calc hp] cur: 31, max: 31
[01.11. - 06:06:13] [Base Health]: 31
[01.11. - 06:06:13] [Before Calculations]: Max HP: 31, Item Bonuses: 0, Spell Bonuses: 0
[01.11. - 06:06:13] [After Calculations]: Max HP: 31, AA Bonuses (MaxHP): 0, Spell Bonuses (MaxHP): 0, Item Bonuses (MaxHP): 0
[01.11. - 06:06:13] [Base Health]: 31
[01.11. - 06:06:13] [Before Calculations]: Max HP: 8171, Item Bonuses: 8140, Spell Bonuses: 0
[01.11. - 06:06:13] [After Calculations]: Max HP: 8171, AA Bonuses (MaxHP): 0, Spell Bonuses (MaxHP): 0, Item Bonuses (MaxHP): 0
[01.11. - 06:06:13] [post-calc hp] cur: 31, max: 8171
I believe I discovered the issue, I have an item at id 0, so it's going on the NPCs and players in every empty slot they have.
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
I have fixed my issue, thanks for the help everyone.
|