You will need to obtain the character ID for the character whose item you want to remove. You can use the following query to get the character ID from the database.
SELECT CharID FROM _OnlinePlayers WHERE CharName16 = 'character_name'
You will also need to obtain the item ID that you want to remove. You can use the following query to get the item ID from the database.
SELECT ID FROM SRO_VT_SHARD.._RefObjCommon WHERE CodeName128 = 'ITEM_ETC_ARENA_COIN'
Stored Procedure: _Char_RemoveChestItemByID
Parameters:
@CharID INT- Target character ID@RefItemID INT- Target item ID
Let us first test whether the command works by using the following code, which will remove any Arena Coins currently in the character chest.
USE [vPlus] GO DECLARE @CharID INT = (SELECT CharID FROM _OnlinePlayers WHERE CharName16 = 'character_name') EXEC _Char_RemoveChestItemByID @CharID, 25834;
For real usage, use @CharID directly from your calling procedure.
EXEC _Char_RemoveChestItemByID @CharID, 25834;