Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server
You last visited: Today at 18:27

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

Advertisement



Need a Query to Delete specific item from specific char inventory ?!!

Discussion on Need a Query to Delete specific item from specific char inventory ?!! within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Exclamation Need a Query to Delete specific item from specific char inventory ?!!

I tried to make it but i found the item linked in several tables

_Items
_Inventory

And i am afraid there's more tables!

I will really appreciate if you share with me a query to do the job

Thanks in advance.
devdash is offline  
Old 02/10/2020, 10:14   #2
 
elite*gold: 0
Join Date: Dec 2009
Posts: 386
Received Thanks: 88
You Can delete them from smc
mudik is offline  
Thanks
1 User
Old 02/10/2020, 10:19   #3
 
elite*gold: 53
Join Date: Sep 2014
Posts: 308
Received Thanks: 88
Items are not completely deleted from the DB, when you set an item free, the ID will remain but it'll be available to use again.
You can use this query:

Update _ItemPool set InUse = 0 where ItemID = (Select ItemID from _Inventory where Slot = 13 and CharID = (Select CharID from _Char where CharName16 = 'CharName'))
Update _Inventory Set ItemID = 0 where Slot = 13 and CharID = (Select CharID from _Char where CharName16 = 'CharName')
Mr.Awesome1337 is offline  
Thanks
1 User
Old 02/10/2020, 11:06   #4

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Quote:
Originally Posted by mudik View Post
You Can delete them from smc
Right, but i need a query

Quote:
Originally Posted by Mr.Awesome1337 View Post
Items are not completely deleted from the DB, when you set an item free, the ID will remain but it'll be available to use again.
You can use this query:

Update _ItemPool set InUse = 0 where ItemID = (Select ItemID from _Inventory where Slot = 13 and CharID = (Select CharID from _Char where CharName16 = 'CharName'))
Update _Inventory Set ItemID = 0 where Slot = 13 and CharID = (Select CharID from _Char where CharName16 = 'CharName')
with that query, i am disabling the item in slot 13

i need a query that delete the item from a specific char inventory with two options

-- CharName
-- ItemCode

execute = item deleted from that specific char inventory
devdash is offline  
Old 02/10/2020, 11:22   #5
 
elite*gold: 53
Join Date: Sep 2014
Posts: 308
Received Thanks: 88
--Use this then

UPDATE _ItemPool set InUse = 0 where ItemID in (Select ItemID from _Inventory where CharID =
(SELECT CharID FROM dbo._Char WHERE CharName16 = 'CharName')) AND ItemID IN (SELECT ID64 FROM dbo._Items WHERE RefItemID =
(SELECT ID FROM dbo._RefObjCommon WHERE CodeName128 = 'CodeName'))
Update _Inventory SET ItemID = 0 where (CharID =
(SELECT CharID FROM dbo._Char WHERE CharName16 = 'CharName')) AND ItemID IN (SELECT ID64 FROM dbo._Items WHERE RefItemID =
(SELECT ID FROM dbo._RefObjCommon WHERE CodeName128 = 'CodeName'))
Mr.Awesome1337 is offline  
Thanks
1 User
Old 02/10/2020, 11:57   #6
Chat Killer In Duty


 
PortalDark's Avatar
 
elite*gold: 5
Join Date: May 2008
Posts: 16,390
Received Thanks: 6,507
Arrow SRO PServer Advertising -> SRO Private Server

#moved
PortalDark is offline  
Old 02/10/2020, 15:01   #7
Trade Restricted

 
elite*gold: LOCKED
Join Date: Feb 2020
Posts: 586
Received Thanks: 174
This query will remove it from all server tables (all players)
Quote:
USE SRO_VT_SHARD EXEC _SEEK_N_DESTROY_ITEM [ITEM CODE NAME]
and you can check the procedure and copy it and little work to make it delete to specific character
JoleChow* is offline  
Thanks
2 Users
Old 02/10/2020, 17:22   #8

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Quote:
Originally Posted by JoleChow* View Post
This query will remove it from all server tables (all players)


and you can check the procedure and copy it and little work to make it delete to specific character
I will try to take this hint, and make the query with it, i hope i success
devdash is offline  
Old 02/11/2020, 02:03   #9
Trade Restricted

 
elite*gold: LOCKED
Join Date: Feb 2020
Posts: 586
Received Thanks: 174
Quote:
Originally Posted by alydandy View Post
I will try to take this hint, and make the query with it, i hope i success
keep me updated maybe i can help if doesn't work
Good luck
JoleChow* is offline  
Thanks
2 Users
Old 02/11/2020, 06:00   #10

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Quote:
Originally Posted by JoleChow* View Post
keep me updated maybe i can help if doesn't work
Good luck
I am trying still
i will try everything i knew, then i will feedback here

Quote:
Originally Posted by JoleChow* View Post
This query will remove it from all server tables (all players)


and you can check the procedure and copy it and little work to make it delete to specific character
Fail, i can not do it, always works for all the characters, i need it to work for a specific charname
devdash is offline  
Old 02/11/2020, 12:54   #11
 
elite*gold: 53
Join Date: Sep 2014
Posts: 308
Received Thanks: 88
Quote:
Originally Posted by alydandy View Post
I am trying still
i will try everything i knew, then i will feedback here



Fail, i can not do it, always works for all the characters, i need it to work for a specific charname
I already gave it to you upthere, it deletes the item from a specific player's inventory.
Mr.Awesome1337 is offline  
Thanks
1 User
Old 02/12/2020, 00:24   #12
Trade Restricted

 
elite*gold: LOCKED
Join Date: Feb 2020
Posts: 586
Received Thanks: 174
Quote:
Originally Posted by Mr.Awesome1337 View Post
I already gave it to you upthere, it deletes the item from a specific player's inventory.
He don't deserve the effort to help him :/
JoleChow* is offline  
Thanks
1 User
Old 02/12/2020, 01:40   #13

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Quote:
Originally Posted by JoleChow* View Post
He don't deserve the effort to help him :/
Don't click me


Quote:
Originally Posted by Mr.Awesome1337 View Post
I already gave it to you upthere, it deletes the item from a specific player's inventory.
Gotcha, thanks man

#Request Topic Close please.
devdash is offline  
Old 02/12/2020, 03:09   #14
Trade Restricted

 
elite*gold: LOCKED
Join Date: Feb 2020
Posts: 586
Received Thanks: 174
JoleChow* is offline  
Thanks
1 User
Old 02/12/2020, 05:07   #15

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Quote:
Originally Posted by JoleChow* View Post


Stop making fake discord accounts, because of 3 reasons

1. i knew the guy discord ID already
2. discord tells if it's a new account
3. it's shame and stupid to act someone else


Did i troll you hard there?!
devdash is offline  
Reply


Similar Threads Similar Threads
How to clean inventory in a specific char?
05/20/2016 - SRO Private Server - 4 Replies
i have a bug in a char in my server i can't login into it & also i cant see the items in CMC if anyone one could help me with that or give me a code to clean inventory in a specific char?
[Buying] WTB Specific Account - DK / Paladin Account - With specific things on it.
03/04/2016 - World of Warcraft Trading - 0 Replies
SKYPE : cristian.puf21 - SKYPE : mishap87 http://www.eu-accounts.com/resources/static/image s/logo.png Hello, I'm looking for a specific account which must have all of the listed things below: -Plate class: DK/Pala with warrior TIER 3 (BMAH Preffered) -CM 17 with at least one FOS best realm time in WOD
Help Query Code Char delete
11/17/2013 - SRO Private Server - 6 Replies
hi guys. my db have char delete bug.7500 account waiting delete. this codes only 1x account deleted. i dont want 7500 account manuel delete.Anyone help me query code?. DELETE FROM _InventoryForAvatar WHERE charid = '81935' DELETE FROM _Inventory WHERE charid = '81935' DELETE FROM _CharSkillMastery WHERE charid = '81935' DELETE FROM _CharSkill WHERE charid = '81935' DELETE FROM _CharTrijob WHERE charid = '81935'



All times are GMT +1. The time now is 18:27.


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.