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.

To Town

You will need to obtain the character ID for the character you want to return to their designated town. 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_ToTown

Parameters:

  • @CharID INT - Target character ID

Let us first test whether the command works by using the following code, which will send a specific character to their designated town using the character ID.

USE [vPlus]
GO
DECLARE @CharID INT = (SELECT CharID FROM _OnlinePlayers WHERE CharName16 = 'character_name')
EXEC _Char_ToTown @CharID;

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

EXEC _Char_ToTown @CharID;

Last updated: 6 December, 2023

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