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