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

02/10/2020 09:39 devdash#1
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 mudik#2
You Can delete them from smc
02/10/2020 10:19 Mr.Awesome1337#3
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 devdash#4
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
02/10/2020 11:22 Mr.Awesome1337#5
--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 PortalDark#6
#moved
02/10/2020 15:01 JoleChow*#7
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 devdash#8
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
02/11/2020 02:03 JoleChow*#9
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
02/11/2020 06:00 devdash#10
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
02/11/2020 12:54 Mr.Awesome1337#11
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.
02/12/2020 00:24 JoleChow*#12
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 :/
02/12/2020 01:40 devdash#13
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.
02/12/2020 03:09 JoleChow*#14
:lul:
02/12/2020 05:07 devdash#15
Quote:
Originally Posted by JoleChow* View Post
:lul:
[Only registered and activated users can see links. Click Here To Register...]

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?! :)