set ANSI_NULLS ON
set QUOTED_IDENTIFIER OFF
GO
/****** Object: Stored Procedure dbo.usp_Try_GameLogin_Taiwan Script Date: 2008-6-7 18:34:05 ******/
/*================================================= =
@date 2007-12-04
@brief Login Proc( Taiwan )
================================================== */
ALTER Proc [dbo].[usp_Try_GameLogin_Taiwan]
@UserID varchar(18),
@InPassword varchar(32),
@SessionID bigint,
@UserIP varchar(15),
-- 罹晦梱雖 ?蹂? 檣濠, 釭該雖朝 頂睡 滲熱
@UserUID int = -1,
@LoginType smallint = 1,
@LoginTime datetime = NULL
AS
SET NOCOUNT ON
DECLARE
@Leave tinyint,
@Status smallint,
@CompanyIP varchar(15),
@TempIP varchar(15),
@Check int,
@LeaveDate datetime
/*================================================= =
-1 Invalid ID and Password
-2 Can't connect with the account since it's not selected as free challenger
-3 Account doesn't exist
-4 ID inprocess of termination follwing user's request.
-5 Your account is blocked now. You can't log into the game.
-6 Your account is blocked now. You can't log into the game.
-7 Account still restricted
================================================== */
SET @Status = -1
SET @LoginTime = GETDATE()
--------------------------------------------------
SET @CompanyIP = '61.107.81'
SET @UserIP = LTRIM( RTRIM(@UserIP) )
--------------------------------------------------
SET @Check = 0
--------------------------------------------------
SELECT @UserUID=[UserUID], @Status=[Status], @Leave=[Leave], @LeaveDate=LeaveDate
FROM Users_Master
WHERE UserID = @UserID AND Pw = @InPassword
-- NotExist User OR Leave User
IF( @UserUID = 0)
BEGIN
SET @Status = -3
END
ELSE IF (@Leave = 1) --This blocks a logged in account from being kicked
BEGIN
SET @Status = -5
END
ELSE IF (DATEDIFF(SECOND, @LeaveDate, GETDATE()) < 6)--This is the time delay
BEGIN
SET @Status = -7
END
-- BlockUser Check
IF( (@Status >= 2) AND (@Status <= 6) )
BEGIN
-- Get Block Limit Date AND Replace date text
DECLARE @BlockEndDate datetime
SELECT @BlockEndDate = BlockEndDate FROM Users_Block WHERE UserUID = @UserUID
IF ( @@ROWCOUNT <> 0 )
BEGIN
-- Block Release
IF ( @BlockEndDate <= @LoginTime )
BEGIN
SET @Status = 0
UPDATE Users_Master SET Status = @Status WHERE UserUID = @UserUID
END
END
END
-- Admin IP Check(2006-02-21)
/*
IF( @Status = 16 OR @Status = 32 OR @Status = 48 OR @Status = 64 OR @Status = 80 )
BEGIN
SET @TempIP = LEFT(@UserIP, 9)
IF( @TempIP <> @CompanyIP )
BEGIN
SET @Status = -999
END
END
*/
-- Select
SELECT @Status AS Status, @UserUID AS UserUID
-- Log Insert
IF( @Status = 0 OR @Status = 16 OR @Status = 32 OR @Status = 48 OR @Status = 64 OR @Status = 80 )
BEGIN
UPDATE Users_Master SET Leave = 0, JoinDate = GETDATE() WHERE UserUID = @UserUID
END
SET NOCOUNT OFF
If you will use the Dupe fix your items will be dispear....
This is the right line replace it with SnickQ line (at end after IF Statment
UPDATE Users_Master SET Leave =1 , JoinDate = GETDATE() WHERE UserUID = @UserUID
The Procedure Game log out R isn't well if you leave parameter doesn't go back to 0.
Add it to Try_GameLogOut_R
UPDATE Users_Master SET Leave = 0, LeaveDate = GETDATE() WHERE UserUID = @UserUID
Between IF Statment to
SET @Sql = N'
creating a new character 5517 08/06/2012 - CO2 Private Server - 6 Replies my sever was working well but recently when i make a new account and create any character named it login to the game but why i logged out and relogin all that go and i chose a character again
may the problem because what how to fix it
my accounts table after create the character many times
http://i.epvpimg.com/XANFg.png
[HELP] rSRO Character creating 04/05/2010 - Silkroad Online - 3 Replies Okay, hi all who reading.
The problem is CHARACTER name, just take a look at this ---king SS.
http://i214.photobucket.com/albums/cc237/xFlyer/t h_SRO2010-04-0600-09-45_84.jpg
Ye, yeeee... dungy sh!t..! The name is RUSSIAN, but it sayz "Invalid".
This could really sucks.
5165 character creating problem. 01/01/2010 - CO2 Private Server - 0 Replies Ok, so, recently i made my server online,its just for fun, nothing big or stuff like that,but, appearantly the other ppl got a problem. After they create an account on site, they log in, create the character, and you get dc after you create it, as we all know, but, when they relog to play, they are sent back to character creation,but when i make an account from cmd window, it works fine. so pls a little help , Thank you very much!
Creating character :/ 07/24/2009 - Flyff Private Server - 0 Replies Hi. When i want to create character on my server i press create and i get crash :/
plz help
Anykind of character creating 09/30/2007 - WoW Exploits, Hacks, Tools & Macros - 15 Replies I haven't test this but this should work at private servers, Since when you are creating account the information must be send into server, SO the registering page has the password and other information for the SQL database, If there just would be easy way to get the orginal file players could login into the SQL database and edit their character information
Some servers require special made exploit and into others you can get with simply using FTP to download the account creating page.
...