[Release] Alex scripts

04/29/2017 15:15 JujiPoli#1
Hello Shaiya,

Today I am releasing my custom scripts (sql)

All the scripts I'm releasing here are my ideas and written by me

What you need for the script to work correctly:

1- [Only registered and activated users can see links. Click Here To Register...] (won't work if you don't have it)


2- Go in PS_ChatLog -> Programmability -> Stored Procedures -> usp_Insert_Chat_Log_E click on modify

After this:

IF( LEN(@dd) = 1 )
BEGIN
SET @dd = '0' + @dd
END

Put this:

Quote:
PHP Code:
DECLARE @Charname varchar(max), @CharIDNotice varchar(max), @return_value int

SET 
@Charname = (SELECT Charname FROM PS_GameData.dbo.Chars WHERE CharID = @CharID)

SET @CharIDNotice = @CharID

SET 
@return_value ='0' 
3- [Only registered and activated users can see links. Click Here To Register...] ([OPTIONAL] Needed for the notice to player)



1 - First script is a bad word filter,
How does it work? Every time a player says a bad word like "bitch"
it will give a warning to the player.
Once the player has received 3 warnings they will be kicked.

2 - Second script is a Transfer DP
How does it work? PM a player and say the amount to transfer (! Alex !transfer 1000)

3 - Third script is a Auto Notice spawner
How does it work? It will spawn a random notice selected via a table each 1 hour

4 - Fourth script is my custom ChatLog with the scripts ^


------------------- BAD WORD FILTER -------------------


------------------- DP Transfer -------------------


------------------- Auto Notice -------------------


------------------- Custom Chat Log -------------------

04/29/2017 16:20 Trayne01#2
You could also create a Shaiya Server Extended plugin, wich avoid to edit SQL procedures, wich is not that easy to manage if you want to split your code.

(I might uplaod it as a plugin soon)

Thanks for sharing!
04/29/2017 18:09 momocruz#3
Thanks amigo !!!
04/29/2017 22:05 Eric-Dutra16#4
Alex scripts? "battle only arena ep5.4" I made this script for you, for free. Why did not you tell me it was to share it in epvp?
04/29/2017 22:10 JujiPoli#5
I released it for a custom pvp script (sql)
I asked you it 1 year ago cause i don't know work on cheat engine, if you don't want me to release it, i will just remove it lol.
04/30/2017 05:43 ShaiyaDead#6
battle arena as what the title says the players can already battle in arena lmao you should ask the author first before releasing those credits are not enough without asking for their authorization
04/30/2017 10:26 momocruz#7
Quote:
Originally Posted by ShaiyaDead View Post
battle arena as what the title says the players can already battle in arena lmao you should ask the author first before releasing those credits are not enough without asking for their authorization


Too Late Albert many people have download the script right NOW .
04/30/2017 20:08 JujiPoli#8
Instead of come skype/epvp message and try to find a deal (remove the script or just release before it was a free one) you need to post and get thanks for it? It amazing how the community of Shaiya in epvp is destroyed by those ridiculous people

Post a message just for thanks -> new Shaiya community 2017

Have fun, I won't share anything anymore, bored of hypocritical people.
05/08/2017 05:00 sanguto#9

If not ask too much. As it would be to announce at a certain time, type the message to appear at 21h server time
05/08/2017 13:54 JujiPoli#10
[Only registered and activated users can see links. Click Here To Register...]
05/08/2017 21:11 sanguto#11
thank you so much :)
09/08/2017 09:05 IlusionXtreme#12
[auto notice]
I have a problem.
already tried to position the code in the insertion area plus the problem continues
Could someone give me an example where to position without errors

Msg 137, Level 15, State 2, Procedure usp_Insert_Chat_Log_E, Line 77
Must declare the scalar variable "@return_value"
09/09/2017 01:29 Velocity.#13
Quote:
Originally Posted by IlusionXtreme View Post
[auto notice]
I have a problem.
already tried to position the code in the insertion area plus the problem continues
Could someone give me an example where to position without errors

Msg 137, Level 15, State 2, Procedure usp_Insert_Chat_Log_E, Line 77
Must declare the scalar variable "@return_value"
it literally tells you the issue lmao
11/22/2017 08:55 Wa7dani#14
Quote:
Originally Posted by doteroargentino View Post
Wow, a welcoming massage surely will make people relax a lot more while playing!!



Code:
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,,>
-- =============================================
CREATE 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 [MENTION=2805776]UserU[/MENTION]ID int = (SELECT UserUID FROM PS_GameData.dbo.Chars where CharID = @Char)
	DECLARE [MENTION=1340890]faction[/MENTION] bit = (SELECT Country FROM PS_GameData.dbo.UserMaxGrow WHERE UserUID = [MENTION=2805776]UserU[/MENTION]ID)
	DECLARE @Datet varchar(32) = CONVERT(varchar(32),GETDATE())
	DECLARE @DFaction varchar(32)
	if  [MENTION=1340890]faction[/MENTION] = 1)
		SET @DFaction = 'Union of Fury'
	else
		SET @DFaction = 'Alliance of Light'


	DECLARE [MENTION=733771]welcome[/MENTION]msg nchar(200) = N'/nt ' + 'Welcome to ' + @CharName + ' (Faction: ' + @DFaction + ')' + ' who joined Assassin on the ' + @Datet


			DECLARE [MENTION=3807069]ReTuRn_[/MENTION]value int

			EXEC [MENTION=3807069]ReTuRn_[/MENTION]value = PS_GameDefs.[dbo].[Command]
				 [MENTION=1485710]service[/MENTION]Name = N'ps_game',
					@cmmd = [MENTION=733771]welcome[/MENTION]msg



END



and dont cry please :)
01/25/2019 12:02 [GM]-RazoR-*#15
Quote:
Originally Posted by JujiPoli View Post
Hello Shaiya,

Today I am releasing my custom scripts (sql)

All the scripts I'm releasing here are my ideas and written by me

What you need for the script to work correctly:

1- [Only registered and activated users can see links. Click Here To Register...] (won't work if you don't have it)


2- Go in PS_ChatLog -> Programmability -> Stored Procedures -> usp_Insert_Chat_Log_E click on modify

After this:

IF( LEN(@dd) = 1 )
BEGIN
SET @dd = '0' + @dd
END

Put this:



3- [Only registered and activated users can see links. Click Here To Register...] ([OPTIONAL] Needed for the notice to player)



1 - First script is a bad word filter,
How does it work? Every time a player says a bad word like "bitch"
it will give a warning to the player.
Once the player has received 3 warnings they will be kicked.

2 - Second script is a Transfer DP
How does it work? PM a player and say the amount to transfer (! Alex !transfer 1000)

3 - Third script is a Auto Notice spawner
How does it work? It will spawn a random notice selected via a table each 1 hour

4 - Fourth script is my custom ChatLog with the scripts ^


------------------- BAD WORD FILTER -------------------


------------------- DP Transfer -------------------


------------------- Auto Notice -------------------


------------------- Custom Chat Log -------------------

hi

I tested this beautiful scenario. Personal notices don't work. Does anyone have an idea for that?

N'/nt and N'/ntplayer I tried these two commands, but it doesn't work.

for N'/ntplayer SExtended.dll I injected it into ps_game.exe but it still didn't work.


Sorry about the bad english.