Search the Commands

Home  All  a  b  c  d  e  f  g  h  i  j  k  l  m  n  o  p  q  r  s  t  u  v  w  x  y  z 

Details for command countitem:
 
* countitem <item id>;
* countitem "item name";
 
This function will return the number of items for the specified item ID that the
invoking character has in the inventory.

mes "[Item Checker]";
mes "Hmmm, it seems you have "+countitem(502)+" apples";
close;

Like 'getitem', this function will also accept an 'english name' from the
database as an argument.

If you want to state the number at the end of a sentence, you can do it by
adding up strings:

mes "[Item Checker]";
mes "Hmmm, the total number of apples you are holding is "+countitem("APPLE");
close;

Valid XHTML 1.0 Strict Valid CSS!