|
You last visited: Today at 18:27
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.
02/10/2020, 09:39
|
#1
|
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
|
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.
|
|
|
02/10/2020, 10:14
|
#2
|
elite*gold: 0
Join Date: Dec 2009
Posts: 386
Received Thanks: 88
|
You Can delete them from smc
|
|
|
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')
|
|
|
02/10/2020, 11:06
|
#4
|
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
|
Quote:
Originally Posted by mudik
You Can delete them from smc
|
Right, but i need a query
Quote:
Originally Posted by Mr.Awesome1337
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
|
|
|
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'))
|
|
|
02/10/2020, 11:57
|
#6
|
Chat Killer In Duty
elite*gold: 5
Join Date: May 2008
Posts: 16,390
Received Thanks: 6,507
|
SRO PServer Advertising -> SRO Private Server
#moved
|
|
|
02/10/2020, 15:01
|
#7
|
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
|
|
|
02/10/2020, 17:22
|
#8
|
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
|
Quote:
Originally Posted by JoleChow*
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
|
|
|
02/11/2020, 02:03
|
#9
|
elite*gold: LOCKED
Join Date: Feb 2020
Posts: 586
Received Thanks: 174
|
Quote:
Originally Posted by alydandy
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
|
|
|
02/11/2020, 06:00
|
#10
|
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
|
Quote:
Originally Posted by JoleChow*
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*
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
|
|
|
02/11/2020, 12:54
|
#11
|
elite*gold: 53
Join Date: Sep 2014
Posts: 308
Received Thanks: 88
|
Quote:
Originally Posted by alydandy
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.
|
|
|
02/12/2020, 00:24
|
#12
|
elite*gold: LOCKED
Join Date: Feb 2020
Posts: 586
Received Thanks: 174
|
Quote:
Originally Posted by Mr.Awesome1337
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 :/
|
|
|
02/12/2020, 01:40
|
#13
|
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
|
Quote:
Originally Posted by JoleChow*
He don't deserve the effort to help him :/
|
Don't click me
Haters will hate potatoes will potate
Quote:
Originally Posted by Mr.Awesome1337
I already gave it to you upthere, it deletes the item from a specific player's inventory.
|
Gotcha, thanks man
#Request Topic Close please.
|
|
|
02/12/2020, 03:09
|
#14
|
elite*gold: LOCKED
Join Date: Feb 2020
Posts: 586
Received Thanks: 174
|
|
|
|
02/12/2020, 05:07
|
#15
|
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
|
Quote:
Originally Posted by JoleChow*
|
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?!
|
|
|
 |
|
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.
|
|