View Single Post
  #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