Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Question Max Item ID

Joined
Aug 5, 2015
Messages
12
I was wondering if there is a way to obtain the Maximum ID for an ItemDefinition..
[Too little info, IMO]

I have a Bot that is running through
Code:
ItemDefinition.get(start, count, filter)
and I was hoping that there was some way that I could obtain the "count" value, rather than using
Code:
Integer.MAX_VALUE
as I believe that this may be causing an issue (seeing as the bot doesn't seem to be making it past this point) however, if there is not a way to get the max id number, could someone please tell me what this number is..?

**So lost ATM**
 
Joined
Dec 10, 2014
Messages
3,332
Go into the development kit, put it into database mode (reads from the cache), then scroll down to the bottom of the items.
 
Joined
Aug 5, 2015
Messages
12
Go into the development kit, put it into database mode (reads from the cache), then scroll down to the bottom of the items.
Thanks, I figured this out later on, the day I posted it - I was kinda hoping that there was a programmatic way to do it though, that's why I left the thread up..
 
Joined
Dec 10, 2014
Messages
3,332
Thanks, I figured this out later on, the day I posted it - I was kinda hoping that there was a programmatic way to do it though, that's why I left the thread up..
The only way I could think of is make it stop iterating when it finds 100 or so bad results in a row
 
Top