By completing this guide, you should be able to trigger Alchemy event winner and build your own custom systems.
Stored Procedure: _EventALCHEMY_AddWinner
Parameters:
@CharID INT - Winner character ID
Let's send a text notification to the winner character using _Char_SendTextNotification to ensure that the trigger works fine for us.
USE [vPlus]
GO
/****** Object: StoredProcedure [dbo].[_EventALCHEMY_AddWinner] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Author,,Name>
-- ALTER date: <ALTER Date,,>
-- Description: <Description,,>
-- =============================================
ALTER PROCEDURE [dbo].[_EventALCHEMY_AddWinner]
@CharID INT
AS
BEGIN
SET NOCOUNT ON;
/*
This procedure is executed when a player wins
the Alchemy event.
*/
--------- Your code starts here --------
EXEC _Char_SendTextNotification @CharID, 'You have won the Alchemy event!', 1, 0, 0;
END