You will need to obtain the World ID and Region ID for the target area. To do that, move your character to the desired area, then use the following query to retrieve the required values.
SELECT SpawnWorldID, SpawnRegionID FROM _OnlinePlayers WHERE CharName16 = 'character_name'
Stored Procedure: _Command_RegionCharactersToTown
Parameters:
@WorldID SMALLINT- Target world ID@RegionID SMALLINT- Target region ID
Let us first test whether the command works by using the following code, which will send all characters in a specific region (for example, outside Jangan South Gate) to their designated town.
USE [vPlus] GO EXEC _Command_RegionCharactersToTown 1, 24744;