Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server
You last visited: Today at 13:53

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

Advertisement



[release]_ManageShardCharName Error fix in Global Manager!

Discussion on [release]_ManageShardCharName Error fix in Global Manager! within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2010
Posts: 346
Received Thanks: 416
Exclamation [release]_ManageShardCharName Error fix in Global Manager!

Code:
USE [SRO_VT_ACCOUNT]
GO
/****** Object:  Table [dbo].[SR_CharAppoint]    Script Date: 10/29/2011 10:50:30 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[SR_CharAppoint](
	[UserJID] [int] NOT NULL,
	[ShardID] [int] NOT NULL,
	[CharID] [varchar](64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]

GO
SET ANSI_PADDING OFF
Just add this new table and change the _ManageShardCharNames procedure:
Code:
set ANSI_NULLS OFF
set QUOTED_IDENTIFIER OFF
GO
ALTER procedure [dbo].[_ManageShardCharName]
	@job		tinyint,
	@UserJID   	int,
	@ShardID   	smallint,
	@CharName 	varchar(64),
	@OldName 	varchar(64)
as
	-- add new char name
	if (@job = 0)
	begin
		if (not exists(select * from SR_ShardCharNames where UserJID = @UserJID and ShardID = @ShardID and CharName = @CharName))
		begin
			insert SR_ShardCharNames values(@UserJID, @ShardID, @CharName)
		end
	end
	-- remove char name
	else if (@job = 1)
	begin
		delete SR_ShardCharNames where UserJID = @UserJID and ShardID = @ShardID and CharName = @CharName
		delete SR_CharAppoint where UserJID = @UserJID and ShardID = @ShardID and CharID = @CharName
	end
	-- rename previous one
	else if (@job = 2)
	begin
		update SR_ShardCharNames set CharName = @CharName where UserJID = @UserJID and ShardID = @ShardID and CharName = @OldName
		update SR_CharAppoint set CharID = @CharName where UserJID = @UserJID and ShardID = @ShardID and CharID = @OldName
	end
that's all.
Miki Maus is offline  
Thanks
6 Users
Old 10/28/2011, 23:01   #2
 
elite*gold: 0
Join Date: Apr 2010
Posts: 1,988
Received Thanks: 1,783
And what does it exactly fix? o.0
Never got such error in globalmanager (or i didn't see, lol), thanks though.
18andLife is offline  
Old 10/28/2011, 23:17   #3
 
elite*gold: 0
Join Date: Aug 2010
Posts: 346
Received Thanks: 416
Quote:
Originally Posted by 18andLife View Post
And what does it exactly fix? o.0
Never got such error in globalmanager (or i didn't see, lol), thanks though.
The error. I had seen this error several times on my server, so needed to fix it - and shared to others in case someone happens to have it to.
Miki Maus is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
[Help] Really Need Help Global manager Error...
02/26/2013 - SRO Private Server - 3 Replies
i need Know whats Wrong with me i change Windows 2 time and this Problem Stay there http://i46.servimg.com/u/f46/11/56/06/03/untitl13 .png http://i46.servimg.com/u/f46/11/56/06/03/untitl14 .png
Global manager problem
10/13/2011 - SRO Private Server - 0 Replies
can anyone tell me whats wrong with it ? what i have to change in files? maybe turn with compatability? IIS, odbc and database should work fine, done all without any problems.
Global Manager other error Abdelfattah Help !
10/02/2011 - SRO Private Server - 2 Replies
http://s1141.photobucket.com/albums/n594/xtech99/? action=view&current=GlobalManagerError.gif http://s1141.photobucket.com/albums/n594/xtech99/ ?action=view&current=GlobalManagerError.gif GlobalManagerError.gif picture by xtech99 - Photobucket
Global Manager error help
09/30/2011 - SRO Private Server - 5 Replies
http://img714.imageshack.us/img714/2083/unledoj.gi f Help Please ... Btw in the iis there was no db i tryed many ways i didn't know what to go :'(



All times are GMT +1. The time now is 13:54.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.