When you zone there is a problem where the power field will take the value of max_hp and the hp field will take the value of max_power
Seems like the values are getting mixed up somewhere
character_details table max hp, power etc [Resolved]
-
bolly
- Retired
- Posts: 389
- Joined: Mon Sep 21, 2009 3:03 pm
- Location: Leeds, UK
character_details table max hp, power etc [Resolved]
Last edited by bolly on Sun Dec 06, 2009 9:00 am, edited 1 time in total.
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
Re: character_details table max hp, power etc
Yup, they were mixed up in the update statement and are now fixed. Good catch!
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Re: character_details table max hp, power etc
Weird, I thought we changed that months ago in the DB (the default values anyway). Was there something wrong in the code, too? Oops.
-
bolly
- Retired
- Posts: 389
- Joined: Mon Sep 21, 2009 3:03 pm
- Location: Leeds, UK
Re: character_details table max hp, power etc
fast as lightning, cheers!
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
Re: character_details table max hp, power etc
Yup, the values were switched in the query.John Adams wrote:Weird, I thought we changed that months ago in the DB (the default values anyway). Was there something wrong in the code, too? Oops.
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Re: character_details table max hp, power etc
Doh, well if I recall, the only thing I switched in character_details table update was that max_hp was 40 and max_power was 45 - but I think now I know why they were reversed. Not sure how I caught that, but I think it was when players died they revived with their values swapped. Never thought the code was at fault.
-
bolly
- Retired
- Posts: 389
- Joined: Mon Sep 21, 2009 3:03 pm
- Location: Leeds, UK
Re: character_details table max hp, power etc [Resolved]
Tested this mornings revision and it works great, thanks!
Who is online
Users browsing this forum: No registered users and 1 guest