Check amount of item

Ashran

Golden Oldie
Golden Oldie
Dec 11, 2007
611
9
125
Palma, Mallorca
Hi,

suppose that I want to make a npc that checks how many copies of an item you have in bag and it tells it to you (it's an example). There's another way to make it that isn't making it recursive? (Check 1, check 2, check ...)

Thanks!
 

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
depending on number of these items involved you could write script to check the number of items is = 1 if not add 1 to check figure, so on and so forth.

OR

If we talking large numbers could create script to add 10 to check number until its less than check number or equal to it, if less than start deducting 1 till equals item number
 
Upvote 0