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.

Attack Restriction

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;

Last updated: 10 December, 2023

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