By completing this guide, you should be able to trigger Madness Solo event participation and build your own custom systems.
Stored Procedure: _EventMadness_Participation
Parameters:
@CharID INT - Character ID
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].[_EventMadness_Participation] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Author,,Name>
-- ALTER date: <ALTER Date,,>
-- Description: <Description,,>
-- =============================================
ALTER PROCEDURE [dbo].[_EventMadness_Participation]
@CharID INT
AS
BEGIN
SET NOCOUNT ON;
/*
This procedure is executed when a player participates
in the Madness Solo event and enters successfully.
It is executed only once.
*/
--------- Your code starts here --------
EXEC _Char_SendTextNotification @CharID, 'You have participated in the Madness Solo event', 1, 0, 0;
END