Good night people,
I need a solution to a problem, when my character is going to deport him until the reading is not how many spears it still has on hand.

I need a action to see how many he has spear in hand, in my case if it is below 50 spears he will buy more in the NPC until compltar 50 and return to hunt.

I thank all at once.