Do not use the XP counter alone.. some users will have "Lots!" in their XP bar and that will get you stuck in another conundrum or whatever you wanna call it.. Use that in combination with other things..
To Count stacked items for anyone who was wondering..
Simba Code:
DTM := DTMFromString('mQwAAAHicY2ZgYMhlYmCoAuICIH4C5D8A4k9A3DJjJpBkgmIEYETCQAAAEhAF0w=='); //Just a random dtm..
writeln(ItemAmount('inv', 'dtm', DTM, [])); //Counts stacked Items.. Does not have to be a dtm..
FreeDTM(DTM);
CoinAmount('inv'); //<--- Returns the number of coins in the invent.
//Check out the Amount.Simba include.
So with that said.. just get a count of every item in the invent whether stacked or not.. it'll let your know successes vs fails.