Register for your free account! | Forgot your password?

You last visited: Today at 04:43

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

Advertisement



i need help

Discussion on i need help within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2011
Posts: 11
Received Thanks: 0
Exclamation i need help

i wanna change login system. if i open char no one can dc me untill i log off that char(same id/pw). my friend can join only after i log off that id. i wanna this anyone can do this for me?
falconnnn is offline  
Old 08/15/2014, 20:56   #2
 
elite*gold: 0
Join Date: Nov 2012
Posts: 49
Received Thanks: 97
PS_UserData > Programmability > Stored Procedures > usp_Try_GameLogin_Taiwan

You should have this line :
Code:
SELECT @UserUID=UserUID, @Status=Status,@UseQueue=UseQueue, @Leave=Leave FROM Users_Master WHERE UserID = @UserID
Just complete by adding below :

Code:
IF( @Leave = 1)
BEGIN
	SET @Status = -7
END
RealChew is offline  
Thanks
2 Users
Old 08/26/2014, 10:11   #3
 
elite*gold: 0
Join Date: Nov 2011
Posts: 11
Received Thanks: 0
am i delete anywhere and
SELECT @UserUID=UserUID, @Status=Status, @Leave=Leave FROM Users_Master WHERE UserID = @UserID

-- NotExist User OR Leave User
IF( @UserUID = 0 OR @Leave = 1 )
BEGIN
SET @Status = -3
END
ELSE
BEGIN
-- Check Password
--EXEC OMG_GameWeb.dbo.sp_OmgLoginSuccessCheck @UserID, @InPassword, @Check output
IF ( @@ERROR = 0 )
BEGIN
IF( @Check <> 1 )
BEGIN
SET @Status = -1
END
END
ELSE
BEGIN
SET @Status = -1
END

SELECT @UserUID=UserUID,@ChPw=Pw FROM Users_Master WHERE UserID = @UserID

IF ( @InPassword <> @ChPw)
BEGIN
RETURN -1;
END


which line i add this
falconnnn is offline  
Old 08/26/2014, 14:05   #4
 
elite*gold: 0
Join Date: Nov 2012
Posts: 49
Received Thanks: 97
Code:
-- NotExist User OR Leave User
IF( @UserUID = 0 OR @Leave = 1 )
BEGIN
SET @Status = -3
END
The verification is already done in your stored procedure.
"OR @Leave = 1"

It's the same thing as what i said.

Be sur you have a working Leave column in your Users_Master table (if the account is active, Leave = 1, or if nobody is connected to it, Leave = 0)
RealChew is offline  
Reply




All times are GMT +2. The time now is 04:45.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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