Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Database/World Building

Archive::Database/World Building Archive area for General Discussion's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 07-21-2002, 12:16 AM
Kaiyodo
Hill Giant
 
Join Date: Jan 2002
Location: Midlands,UK
Posts: 149
Default

Ok, I have some answers.

It looks like you can set the item number to pretty much anything you like between 1001 and 65535. There's a quirk in my editor that shows items numbers above 32767 as negative numbers though (the edit boxes are set to 'signed'), however the items should still work with the number you typed in.

There's also a bug in the #search command which is probably why your items aren't showing up. The last item in the database isn't searched, but you can still summon it by number. If you add a dummy item after all your custom items then the search will work.

The actual bug is that the #search command searches 'while less than database.GetMaxItems()'. That function call return value is the return value from the SQL command 'SELECT MAX(id) FROM items' which will return the maximum item id rather than the number of items in the database, and therefore be off by one (as the list is 0 based).

K.
Reply With Quote
 


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 01:28 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