The function command_peekinv is good a reference for things related to this.
EDIT:
Also you have a condition for the upper limit of item id, probably not needed.
__________________
Drajor regards you indifferently -- what would you like your tombstone to say?
|