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.

Receive Success

Stored Procedure: _OnQuestReceiveSuccess

Parameters:

  • @CharID INT - Character ID
  • @CharName16 VARCHAR(64) - Character name
  • @QuestID INT - Quest ID

Let us trigger the successful receiving of the Jangan [Herb Delivery] quest and send a text notification using _Char_SendTextNotification to make sure that the trigger works correctly.

USE [vPlus]
GO
/****** Object:  StoredProcedure [dbo].[_OnQuestReceiveSuccess]    Script Date: 1/16/2024 3:02:27 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

-- =============================================
-- Author:      <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
ALTER PROCEDURE [dbo].[_OnQuestReceiveSuccess]
    @CharID INT,
    @CharName16 VARCHAR(64),
    @QuestID INT
AS
BEGIN
    SET NOCOUNT ON;

    /*
        This procedure is executed only when the character receives a new quest.
    */

    --------- Your code starts here --------
    -- Checking the quest ID
    IF (@QuestID = 50)
        EXEC _Char_SendTextNotification @CharID, 'You have received the quest successfully.', 1, 0, 0
END

Last updated: 16 January, 2024

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