By completing this guide, you should be able to trigger Survival Arena - Solo event participation and build your own custom systems.
Stored Procedure: _EventSAFFA_Participation
Parameters:
@CharID INT - Character ID
@CharName16 VARCHAR(64) - Character name
Let's send a text notification to the character using _Char_SendTextNotification to ensure that the trigger works fine for us.
USE [vPlus]
GO
/****** Object: StoredProcedure [dbo].[_EventSAFFA_Participation] Script Date: 7/18/2024 12:21:37 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
ALTER PROCEDURE [dbo].[_EventSAFFA_Participation]
@CharID INT,
@CharName16 VARCHAR(64)
AS
BEGIN
SET NOCOUNT ON;
/*
This procedure is executed when a player participates
in the event and enters successfully.
*/
--------- Your code starts here --------
EXEC _Char_SendTextNotification @CharID, 'You have participated in Survival Arena - Solo', 1, 0, 0;
END