Jenalya wrote:
Also, isn't there a limit of the numbers server-sided?
Items are stored in a DB table (more commonly known in CS as a map), instead of an array, so there is no practical limit to the range.
Remember that the current server uses signed 32-bit integers and has a lower limit of 500 (but starting at 1000 would probably make things simpler).
---
I do recommend that you put dyed items (including the white/undyed version) separate from non-dyeable items (this could be still in the same thousand range, or add 10 thousand), to minimize headaches when converting to non-hard-coded colors. It might be better to have the IDs grouped by color rather than by base item.
Perhaps there should be consideration for the fact that, theoretically, there are 16 equipment slots (even in the current server/protocol can't use them all)
The downside to separating out the IDs, is that sets of armor have unrelated IDs. Unless you reserve subranges for that. (There is practically no cost to having gaps, after all)
---
I'm not too fond of weapons, ammo, shields, being the same category.
---
'p' is nowhere near 't' ...
Former programmer for the TMWA server.