Register for your free account! | Forgot your password?

You last visited: Today at 16:03

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Inventory slot check?

Discussion on Inventory slot check? within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
tvdynamo's Avatar
 
elite*gold: 0
Join Date: Aug 2017
Posts: 61
Received Thanks: 2
Inventory slot check?

I want to take out the empty slots of the inventory by a certain player, please help with the query. Thanks!

Image:
tvdynamo is offline  
Old 10/03/2019, 17:35   #2


 
ZαKuRα's Avatar
 
elite*gold: 23
Join Date: Feb 2011
Posts: 641
Received Thanks: 477
I don't know if I'm wrong but this will only work for you with a new char
while in those slots have items and closes you will have problems

SRO_VT_SHARD>dbo._Char>InventorySize
ZαKuRα is offline  
Old 10/03/2019, 19:48   #3
 
tvdynamo's Avatar
 
elite*gold: 0
Join Date: Aug 2017
Posts: 61
Received Thanks: 2
Quote:
Originally Posted by ZαKuRα View Post
I don't know if I'm wrong but this will only work for you with a new char
while in those slots have items and closes you will have problems

SRO_VT_SHARD>dbo._Char>InventorySize
This is total slots, I want to take all empty slots.
tvdynamo is offline  
Old 10/04/2019, 16:59   #4
 
elite*gold: 0
Join Date: Apr 2016
Posts: 289
Received Thanks: 67
Quote:
Originally Posted by tvdynamo View Post
This is total slots, I want to take all empty slots.

Declare @Slot int = (select InventorySize from _Char where CharID = @D)
Declare @lot int = (
Select Count(*) from _Inventory where CharID = @D and ItemID > 0 and Slot between 13 and @Slot)
hoangphan7 is offline  
Thanks
1 User
Old 10/04/2019, 22:02   #5
 
tvdynamo's Avatar
 
elite*gold: 0
Join Date: Aug 2017
Posts: 61
Received Thanks: 2
Quote:
Originally Posted by hoangphan7 View Post
Declare @Slot int = (select InventorySize from _Char where CharID = @D)
Declare @lot int = (
Select Count(*) from _Inventory where CharID = @D and ItemID > 0 and Slot between 13 and @Slot)
Thanks very much!
tvdynamo is offline  
Old 10/05/2019, 09:05   #6
 
elite*gold: 0
Join Date: Oct 2012
Posts: 145
Received Thanks: 31
Quote:
Originally Posted by hoangphan7 View Post
Declare @Slot int = (select InventorySize from _Char where CharID = @D)
Declare @lot int = (
Select Count(*) from _Inventory where CharID = @D and ItemID > 0 and Slot between 13 and @Slot)
This query is for checking how many slot which have item in. Change itemid = 0 to get total empty slot currently in character Inv
chipno0p is offline  
Old 10/05/2019, 12:57   #7
 
tvdynamo's Avatar
 
elite*gold: 0
Join Date: Aug 2017
Posts: 61
Received Thanks: 2
Quote:
Originally Posted by chipno0p View Post
This query is for checking how many slot which have item in. Change itemid = 0 to get total empty slot currently in character Inv
Yes, I have made some changes to make it suitable for me, the purpose is that I want to know the location.
tvdynamo is offline  
Old 10/05/2019, 20:23   #8
 
elite*gold: 0
Join Date: Apr 2016
Posts: 289
Received Thanks: 67
Quote:
Originally Posted by chipno0p View Post
This query is for checking how many slot which have item in. Change itemid = 0 to get total empty slot currently in character Inv
Use your brain. OK!
hoangphan7 is offline  
Old 10/06/2019, 23:19   #9
 
JellyBitz's Avatar
 
elite*gold: 0
Join Date: Sep 2018
Posts: 419
Received Thanks: 941
Quote:
Originally Posted by tvdynamo View Post
Yes, I have made some changes to make it suitable for me, the purpose is that I want to know the location.
SELECT *
FROM _Inventory
WHERE CharID = @D AND ItemID = 0 and Slot BETWEEN 13 AND 255

I don't know tables but it should be what you looking for.
JellyBitz is offline  
Reply


Similar Threads Similar Threads
[Selling] Sell CS.GO Inventory | Verkaufe mein CS.GO Inventory "CHEAP"
10/10/2015 - Counter-Strike Trading - 3 Replies
Sold Verkauft Best regards Souza
Verkaufe Inventory/Sell Inventory
09/16/2015 - Counter-Strike Trading - 3 Replies
Verkaufen mein Inventar, wenn ihr Interesse an was habt pn´t mich. Steam Community :: Mr.NoAIm :: Item Inventory Akzeptiere Paypal und PSC. ihr gebt First oder MM den wir zusammen aussuchen. LG Erek :)
Help me pls. Pet Trade Inventory Size only One slot :'(
03/15/2015 - SRO Private Server - 12 Replies
:handsdown::handsdown::handsdown: http://i.upanh.com/vtqbbo
INventory Slot
09/30/2007 - Kal Online - 4 Replies
i breuchte hilfe um den zu finden ich bin anfänger ich habe keine ahnung von allen nur paar tipps wären nett danke :)
Bank & inventory full of 8 slot bags for free
09/06/2007 - General Gaming Discussion - 3 Replies
1. erstellt einen neuen charakter 2. erledigt das erste quest von dem typ an den docks 3. geht nach Qeynos 4. erledigt das quest für den 8 slot bag, hierbei ist es wichtig das euer inventory voll ist - der bag sollte beim complete in eurem overflow slot landen, von dort aus könnt ihr ihn in eure shared bank platzieren



All times are GMT +1. The time now is 16:03.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.