I want to take out the empty slots of the inventory by a certain player, please help with the query. Thanks!
Image:
Image:
Quote:
This is total slots, I want to take all empty slots.
Thanks very much!Quote:
Declare @[Only registered and activated users can see links. Click Here To Register...]Slot int = (select InventorySize from _Char where CharID = @[Only registered and activated users can see links. Click Here To Register...]D)
Declare @[Only registered and activated users can see links. Click Here To Register...]lot int = (
Select Count(*) from _Inventory where CharID = @[Only registered and activated users can see links. Click Here To Register...]D and ItemID > 0 and Slot between 13 and @[Only registered and activated users can see links. Click Here To Register...]Slot)
This query is for checking how many slot which have item in. Change itemid = 0 to get total empty slot currently in character InvQuote:
Declare @[Only registered and activated users can see links. Click Here To Register...]Slot int = (select InventorySize from _Char where CharID = @[Only registered and activated users can see links. Click Here To Register...]D)
Declare @[Only registered and activated users can see links. Click Here To Register...]lot int = (
Select Count(*) from _Inventory where CharID = @[Only registered and activated users can see links. Click Here To Register...]D and ItemID > 0 and Slot between 13 and @[Only registered and activated users can see links. Click Here To Register...]Slot)
SELECT *Quote:
Yes, I have made some changes to make it suitable for me, the purpose is that I want to know the location.