Check quantity of an item
I'm working on building very simple quests and I'm wondering if anyone knows how to ask the database to check if the quantity of a specific item a user has is, say 10 or more?
Edit: And then also remove the specified quantity of that item from the users inventory?
So say it's a quest and they need to turn in 10 rocks, first it verifies that they have 10 or more rocks, and then it removes 10 rocks from their inventory if they indeed have 10 or more.
Thank you,
-Abron
Last edited by Abronsyth; 02-27-2016 at 10:31 AM.
|