Go Back   EQEmulator Home > EQEmulator Forums > General > General::General Discussion

General::General Discussion General discussion about EverQuest(tm), EQEMu, and related topics.
Do not post support topics here.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-23-2008, 02:41 AM
Forlap_Thorninfoot
Sarnak
 
Join Date: Sep 2008
Location: San Jose, Cali, USA
Posts: 36
Default Items through DB

Ok, so i'm working with george to get his item editor working, but until then i'm using navicat and have a question to ask here.

When i mod items directly in the DB, when it comes to stats funny things happen. For instance, if i put "7500" dmg i get something around 120. if i put 200 dmg, i end up with something near 70 or 80. If i put in more than +50 to any stat, i dont get that number i get something else and something less. Same for resistances.

Anyone know why this is happening?


PS. it seems EQ wont realise someone has more than about 32khp... need a GM heal to get it, and when you zone it drops back down to ~32k. Just FYI.
Reply With Quote
  #2  
Old 09-23-2008, 03:03 AM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

The main reason is due to data types, most commonly signed vs unsigned integers. Because you can have negative stats on items, some stats are going to be limited to a maximum of +127, and that's because they're an 8-bit signed integer. However, other stats like HP, Mana, & Endurance, are usually 16-bit signed integers, so they will have a maximum of 32767. Damage in particular, though is an 8-bit unsigned integer, so it will have a maximum value of 255 (and it works fine setting it to 255 on my server, running 1129 of the Emu).

Most of the data types on the server side (which match up pretty much with what the client uses) can be seen here in the source. This table also makes it a little easier to see what the numbers limits would be based on the data type you're using.

The biggest thing to keep in mind, though, is that with Augments, you can get around a lot of those limitations (and is primarily why they were introduced into EverQuest in the first place). For example, you can have a 255 damage weapon with 5 255 damage augments. They will all stack to give you a grand total of 1530 damage. In case you're curious, you can easily hit for between 10 & 30 THOUSAND damage each swing (non-crit). I think it ate through the Sleeper's 1 million HP in less than a minute, maybe 2 at the most.

Hope this helps.
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:18 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3