You will need to obtain the character ID for the character whose climate you want to change. 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_ClimateChange
Parameters:
@CharID INT- Target character ID@Type TINYINT- Climate type@Enable TINYINT- Enable/disable climate
Let us first test whether the command works by using the following code, which will enable the Cerberus climate for a specific character.
USE [vPlus] GO DECLARE @CharID INT = (SELECT CharID FROM _OnlinePlayers WHERE CharName16 = 'character_name') EXEC _Char_ClimateChange @CharID, 25, 1;
For real usage, use @CharID directly from your calling procedure.
EXEC _Char_ClimateChange @CharID, 25, 1;