Cookies


Vsroplus only uses the cookies it needs to keep you signed in and remember your language. No ads, no tracking.

Got it

Need to learn more? Privacy policy

Our guides are in English for now.

Add Silk (Character)

You will need to obtain the character ID for the character that should receive the silks. You can use the following query to get the character ID from the database.

SELECT CharID FROM _OnlinePlayers WHERE CharName16 = 'character_name'

Stored Procedure: _Char_AddSilkLive

Parameters:

  • @CharID INT - Target character ID
  • @SilkType TINYINT - Type of silk you want to add

1 = Premium Silks (silk_own)
2 = Gift Silks (silk_gift)
3 = Point Silks (silk_point)

  • @SilkAmount INT - Amount of silk you want to add
  • @SendNotification BIT - If the value is NULL, the player will not receive a notification after the silk is added. Otherwise, the player will receive a notification.
  • @Executor VARCHAR(64) - User who added the silks

Let us first test whether the command works by using the following code, which will add 1000 Premium Silks to a specific character using the character ID.

USE [vPlus]
GO
DECLARE @CharID INT = (SELECT CharID FROM _OnlinePlayers WHERE CharName16 = 'character_name')
EXEC _Char_AddSilkLive @CharID, 1, 1000, '[GM]';

For real usage, use @CharID directly from your calling procedure.

EXEC _Char_AddSilkLive @CharID, 1, 1000, '[GM]';

Last updated: 6 December, 2023

An error has occurred. This application may no longer respond until reloaded. Reload 🗙