You will need to obtain the World ID and Region ID for the area where you want to apply the restriction. To do that, move your character to the desired location, then use the following query to retrieve the required values.
SELECT SpawnWorldID, SpawnRegionID FROM _OnlinePlayers WHERE CharName16 = 'character_name'
Stored Procedure: _Command_MovementRestriction
Parameters:
@WorldID SMALLINT- Target world ID@RegionID SMALLINT- Target region ID@Allow BIT- Allow or restrict movement@ToggleAfter INT- Timer in milliseconds
Used to toggle the movement restriction state (allow/disallow) after a specified time.
Let us first test whether the command works by using the following code, which will restrict movement in the Jangan town area for 2 minutes.
USE [vPlus] GO EXEC _Command_MovementRestriction 1, 25000, 0, 120000;