Register for your free account! | Forgot your password?

You last visited: Today at 07:04

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Welcome Notice!

Discussion on Welcome Notice! within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
[PH]KEO(DEV)'s Avatar
 
elite*gold: 0
Join Date: Aug 2016
Posts: 84
Received Thanks: 15
Welcome Notice!

Hi epvp. anyone can help me about Welcome Notice .sql?
because this sql not work ..

anyone can help me if have problem on that .sql? thanks in advance..
[PH]KEO(DEV) is offline  
Old 02/20/2019, 04:11   #2
 
elite*gold: 0
Join Date: Jun 2014
Posts: 134
Received Thanks: 124
you need this ->>
perlisson is offline  
Old 02/20/2019, 04:18   #3
 
[PH]KEO(DEV)'s Avatar
 
elite*gold: 0
Join Date: Aug 2016
Posts: 84
Received Thanks: 15
Quote:
Originally Posted by perlisson View Post
you need this ->>
i already have that and Alex Scripts already work on me but i need sql for Auto Welcome Notice to new players
[PH]KEO(DEV) is offline  
Old 02/20/2019, 08:22   #4
 
[GM]-RazoR-*'s Avatar
 
elite*gold: 0
Join Date: Aug 2015
Posts: 241
Received Thanks: 476
What you need for the script to work correctly:

1- [RELEASE]Call PSMagent Commands via sql (won't work if you don't have it)





2-

Quote:
USE [PS_GameData]
GO
/****** Object: StoredProcedure [dbo].[Welcome_Message] Script Date: 7/22/2016 12:35:25 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
ALTER PROCEDURE [dbo].[Welcome_Message]
-- Add the parameters for the stored procedure here
@Char int
AS
BEGIN
WAITFOR DELAY '00:00:30';
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;

-- Insert statements for procedure here
DECLARE @CharName varchar(32) = (SELECT CharName FROM PS_GameData.dbo.Chars where CharID = @Char)
DECLARE @UserUID int = (SELECT UserUID FROM PS_GameData.dbo.Chars where CharID = @Char)
DECLARE @Faction bit = (SELECT Country FROM PS_GameData.dbo.UserMaxGrow WHERE UserUID = @UserUID)
DECLARE @Datet varchar(32) = CONVERT(varchar(32),GETDATE())
DECLARE @DFaction varchar(32)
if (@Faction = 1)
SET @DFaction = 'Union of Fury'
else
SET @DFaction = 'Alliance of Light'


DECLARE @welcomemsg nchar(200) = N'/nt ' + 'Welcome to ' + @CharName + ' (Faction: ' + @DFaction + ')' + ' who joined Legacy on the ' + @Datet


DECLARE @return_value int

EXEC @return_value = PS_GameDefs.[dbo].[Command]
@serviceName = N'ps_game',
@cmmd = @welcomemsg



END
3-

PS_GameLog > Programmability > Stored Procedures > dbo.usp_Insert_Action_Log_E

Quote:
IF ((SELECT IsNew FROM PS_UserData.dbo.Users_Master WHERE UserUID = @UserUID) != 0)
BEGIN
UPDATE PS_UserData.dbo.Users_Master SET IsNew = 0 WHERE UserUID = @UserUID
@Char = @CharID;
END
[GM]-RazoR-* is offline  
Thanks
4 Users
Old 02/20/2019, 10:40   #5
 
[PH]KEO(DEV)'s Avatar
 
elite*gold: 0
Join Date: Aug 2016
Posts: 84
Received Thanks: 15
Quote:
Originally Posted by [GM]-RazoR-* View Post
What you need for the script to work correctly:

1- [RELEASE]Call PSMagent Commands via sql (won't work if you don't have it)





2-



3-

PS_GameLog > Programmability > Stored Procedures > dbo.usp_Insert_Action_Log_E
thank you but i got error when i add on action log e
Msg 137, Level 15, State 2, Line 1
Must declare the scalar variable @".

maybe because no Char or @D on PS_UserData
[PH]KEO(DEV) is offline  
Old 02/20/2019, 13:40   #6
 
oldjayy's Avatar
 
elite*gold: 16
Join Date: Jun 2011
Posts: 63
Received Thanks: 159
Try this
Quote:
IF ((SELECT IsNew FROM PS_UserData.dbo.Users_Master WHERE UserUID = @UserUID) != 0)
BEGIN
UPDATE PS_UserData.dbo.Users_Master SET IsNew = 0 WHERE UserUID = @UserUID
@Char = @CharID;
END
oldjayy is offline  
Old 02/20/2019, 15:21   #7
 
[PH]KEO(DEV)'s Avatar
 
elite*gold: 0
Join Date: Aug 2016
Posts: 84
Received Thanks: 15
Quote:
Originally Posted by oldjayy View Post
Try this
I already remove that and its complete
But when i create new character no welcome notice to new player even i make new account too still no auto welcome notice.
[PH]KEO(DEV) is offline  
Old 02/20/2019, 15:52   #8
 
elite*gold: 260
Join Date: Sep 2011
Posts: 487
Received Thanks: 360
Then create new columin in chars or where you want. Name it "new one" (Or whatever) then add to CreateChar update columin "new one" to '1' and to Action todbo.usp_Insert_Action_Log_E in actionType 108 to update "new one' to '0' and then qrite script like When "new one" = 1 set welcome_message = 'your message'
SnickQ is offline  
Reply


Similar Threads Similar Threads
[HELP] WELCOME NOTICE
11/12/2012 - EO PServer Hosting - 5 Replies
Hi.. i dont know what type to search it, if someone can tell me faster that will be more better :) "Looks PYROFORCE lvl 7 has come to EUDEMONS. Lets welcome him" How to change that to my server name? dont tell me to search, i dont know what type to search =.= another one is how change welcome notice: Updated - i want change to my server name.
*Notice*Warning Password stealing site*Notice*
12/28/2009 - World of Warcraft - 0 Replies
Notice is as follows, do not enter this site, if you get a notice in your email like this for gawd sakes dont give anyone your password Subject:World of Warcraft Account Trade Dispute Notice When we carry out a routine check when the account, we have evidence to show that your account has been involved in the disputed transactions. So we have to inform you visit our website(worldofwarcraft*com]fill out some information to facilitate our investigation. If you can not tie in with our soon...



All times are GMT +1. The time now is 07:06.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.