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.

Unique Spawn

By completing this guide, you should be able to trigger unique spawns to function and build your own custom systems.

Stored Procedure: _Logger_UniqueSpawn
Parameters:

@RefUniqueID INT - Unique ID
@RefUniqueCodeName128 VARCHAR(129) - Unique CodeName128

Let's send a global text notification using _Command_Global_SendTextNotification to ensure that the trigger works fine for us.

USE [vPlus]
GO

/****** Object: StoredProcedure [dbo].[_Logger_UniqueSpawn] Script Date: 1/18/2024 9:34:11 AM ******/

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

-- =============================================
-- Author:      <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================

ALTER PROCEDURE [dbo].[_Logger_UniqueSpawn]
    @RefUniqueID INT,
    @RefUniqueCodeName128 VARCHAR(129)
AS
BEGIN
    SET NOCOUNT ON;

    /*
        This procedure is executed whenever a unique monster spawns.
    */

    --------- Your code starts here --------

    IF (@RefUniqueCodeName128 = 'MOB_CH_TIGERWOMAN')
    BEGIN
        EXEC _Command_Global_SendTextNotification 'Tiger Girl has appeared in Tiger Mountain!', 1, 1, 1, 18546321;
    END
END

Last updated: 18 January, 2024

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