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_AttackRestriction
Parameters:
@WorldID SMALLINT- Target world ID@RegionID SMALLINT- Target region ID@Allow BIT- Allow or restrict attacks@ToggleAfter INT- Timer in milliseconds
Used to toggle the attack restriction state (allow/disallow) after a specified time.
Let us first test whether the command works by using the following code, which will restrict attacks outside Jangan South Gate for 2 minutes.
USE [vPlus] GO EXEC _Command_AttackRestriction 1, 24744, 0, 120000;