View Single Post
  #1  
Old 02-27-2016, 10:28 AM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 152,231
Abronsyth is on a distinguished road
Default 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
__________________
My Mods Site (1.3.4, 2020 Mods)

Last edited by Abronsyth; 02-27-2016 at 10:31 AM.
Reply With Quote