Hey guys im trying to set auto unlock ultimate mode like when you select your faction and create a char ultimate mode is already unlocked and dont needa create a hard mode toon then relog for ultimate mode. just when you chose faction i want it to be unlocked. i searched and didnt find anything.. so yeah
A trigger on the dbo.Users_Master table will do the job - Copy and paste the query below in a new query window and execute it.
Code:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: Euphoria Dev Team
-- =============================================
CREATE TRIGGER UnlockUM
ON PS_UserData.dbo.Users_Master
AFTER INSERT
AS
BEGIN
SET NOCOUNT ON;
DECALRE @UserUID INT = (SELECT UserUID FROM inserted)
INSERT INTO [PS_GameData].[dbo].[UserMaxGrow]
([ServerID],[UserUID],[Country],[MaxGrow],[Del])
VALUES(1,@UserUID,2,3,0)
END
GO
A trigger on the dbo.Users_Master table will do the job - Copy and paste the query below in a new query window and execute it.
Code:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: Euphoria Dev Team
-- =============================================
CREATE TRIGGER UnlockUM
ON PS_UserData.dbo.Users_Master
AFTER INSERT
AS
BEGIN
SET NOCOUNT ON;
INSERT INTO [PS_GameData].[dbo].[UserMaxGrow]
([ServerID],[UserUID],[Country],[MaxGrow],[Del])
VALUES(1,(SELECT UserUID FROM inserted),2,3,0)
END
GO
Thanks ^_^ I'll try it
Error :
Msg 1046, Level 15, State 1, Procedure UnlockUM, Line 14
Subqueries are not allowed in this context. Only scalar expressions are allowed.
USE PS_UserData
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: Euphoria Dev Team
-- =============================================
CREATE TRIGGER UnlockUM
ON Users_Master
AFTER INSERT
AS
BEGIN
SET NOCOUNT ON;
INSERT INTO PS_GameData.dbo.UserMaxGrow VALUES(1,(SELECT UserUID FROM inserted),2,3,0)
END
GO
USE PS_UserData
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: Euphoria Dev Team
-- =============================================
CREATE TRIGGER UnlockUM
ON Users_Master
AFTER INSERT
AS
BEGIN
SET NOCOUNT ON;
INSERT INTO PS_GameData.dbo.UserMaxGrow VALUES(1,(SELECT UserUID FROM inserted),2,3,0)
END
GO
yeah im sure i did it right, its still not working. this is stupid.. >_<
I'm afraid this isn't our problem. We always test what we release, and we never post something that doesn't work.
i know, i didnt say it was. i just dont get why its not working. i really want UM when you chose faction :/
Fixed, Thanks To Nubness
Code:
-- ================================================
-- Template generated from Template Explorer using:
-- Create Trigger (New Menu).SQL
--
-- Use the Specify Values for Template Parameters
-- command (Ctrl-Shift-M) to fill in the parameter
-- values below.
--
-- See additional Create Trigger templates for more
-- examples of different Trigger statements.
--
-- This block of comments will not be included in
-- the definition of the function.
-- ================================================
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE TRIGGER Unlock_UM
ON PS_UserData.dbo.Users_Master
AFTER INSERT
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
DECLARE @Sql NVARCHAR(1000)
SET @Sql = N'INSERT INTO PS_GameData.dbo.UserMaxGrow VALUES(1,' + (SELECT UserUID FROM inserted) + ',2,3,0)'
EXEC sp_executesql @Sql
-- Insert statements for trigger here
END
GO
-- ================================================
-- Template generated from Template Explorer using:
-- Create Trigger (New Menu).SQL
--
-- Use the Specify Values for Template Parameters
-- command (Ctrl-Shift-M) to fill in the parameter
-- values below.
--
-- See additional Create Trigger templates for more
-- examples of different Trigger statements.
--
-- This block of comments will not be included in
-- the definition of the function.
-- ================================================
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE TRIGGER Unlock_UM
ON PS_UserData.dbo.Users_Master
AFTER INSERT
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
DECLARE @Sql NVARCHAR(1000)
SET @Sql = N'INSERT INTO PS_GameData.dbo.UserMaxGrow VALUES(1,' + (SELECT UserUID FROM inserted) + ',2,3,0)'
Could you please read the whole thread before asking questions that have been answered ? I've seen you asking stupid questions on too many threads now.
Could you please read the whole thread before asking questions that have been answered ? I've seen you asking stupid questions on too many threads now.
I just asked if this does its job, saw that it was different from other post -.-''
well, I won't say "stupid" ones, when one really ignores a fact, it's not stupid to ask.
but, there (and indeed, in several posts) it is 100% meaningless.
Edit, to Alex:
"need to have ultimate mod unlocked?" is meaningless, since there is no subject.
"I just asked if this does its job" is meaningless, since only you know what "this" and "its" are.
well, I won't say "stupid" ones, when one really ignores a fact, it's not stupid to ask.
but, there (and indeed, in several posts) it is 100% meaningless.
Edit, to Alex:
"need to have ultimate mod unlocked?" is meaningless, since there is no subject.
"I just asked if this does its job" is meaningless, since only you know what "this" and "its" are.
because I'm Italian and I try to translate it to better, translate some words hurt
A trigger on the dbo.Users_Master table will do the job - Copy and paste the query below in a new query window and execute it.
Code:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: Euphoria Dev Team
-- =============================================
CREATE TRIGGER UnlockUM
ON PS_UserData.dbo.Users_Master
AFTER INSERT
AS
BEGIN
SET NOCOUNT ON;
DECALRE @UserUID INT = (SELECT UserUID FROM inserted)
INSERT INTO [PS_GameData].[dbo].[UserMaxGrow]
([ServerID],[UserUID],[Country],[MaxGrow],[Del])
VALUES(1,@UserUID,2,3,0)
END
GO
the problem is so simple in that query look where it is DECALRE should be DECLARE its a human error only
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: Euphoria Dev Team
-- =============================================
CREATE TRIGGER UnlockUM
ON PS_UserData.dbo.Users_Master [COLOR="rgb(139, 0, 0)"]<-- trigger is working in the current database and should be attach to database correspondant PS_GameData.dbo.Users_Master BUT working when there is already the user in country, If new user arrive cant created new toon because of
Quote:
2014-11-30 20:39:50 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Violation of PRIMARY KEY constraint 'PK_UserMaxGrow'. Cannot insert duplicate key in object 'dbo.UserMaxGrow'. The duplicate key value is (1, 1006)., SQL STATE: 23000, NATIVE ERROR: 2627 (0xA43)
Ultimate mode 12/22/2012 - Shaiya Private Server - 9 Replies Hello everyone, I can not find a topic in which it was written as open ultimate mode without creating hard mode character. Please tell me the link.
Automatically allow ultimate mode 12/16/2012 - Shaiya Private Server - 8 Replies Hello, Im wondering where the location to set ultimate mode unlocked automatically, when you create an account, rather than needing to make HM then relogging. If its in the psgame or DB somewhere I just need to be pointed in the right direction, Although im pretty sure ive looked everywhere in the DB...
Thanks :)
Change easy mode to ultimate mode in database 12/08/2012 - Shaiya Private Server - 3 Replies Hello.
Any1 knows where can i change the easy mode to ultimate mode in database of any Character?
Greetings.
Restaurant City Ultimate Trick - Money + Cash + Unlock All Dishes + Experience 01/02/2011 - Facebook - 2 Replies Restaurant City Ultimate Trick - Money + Cash + Unlock All Dishes + Experience
Restaurant City Ultimate Trick - Money + Cash + Unlock All Dishes + Experience: Download
Open Fiddler.
In AutoResponder,
Enable automatic respond & Permit Passthrough must be checked.
Click Add.
Paste this below the Rule Editor:
EXACT: CLICK ME!!!
gunz The Ultimate God Mode 11/30/2010 - GunZ - 47 Replies ok here goes this hack is very good for ppl who want to pretend they r god. with the ultimate god mode (u must wear certin items for the ultimate god mode).
Highlights of the hack:
-Renerd x2, Walcom S5 x2, and the Nico r2 ALL HAVE 1,800,000 BULLETS (no blanks) with the normal magizenes.they all also give you +25,000 HP and AP.
-all medpacks and repair kits have 100/100 kits.
-the Canox FG1 and FG2 both have 100/100 granades.