|
You last visited: Today at 06:35
Advertisement
[RELEASE] Name Change Fix by Shaiya Dev Group
Discussion on [RELEASE] Name Change Fix by Shaiya Dev Group within the Shaiya PServer Development forum part of the Shaiya Private Server category.
03/30/2010, 00:17
|
#1
|
elite*gold: 0
Join Date: Oct 2009
Posts: 449
Received Thanks: 644
|
[RELEASE] Name Change Fix by Shaiya Dev Group
Here's a fix for Name Change Scroll. Again it's the nasty collation that was causing the trouble.
Code:
USE [PS_GameData]
GO
ALTER TABLE Chars ALTER COLUMN [UserID] [varchar](12) COLLATE Chinese_PRC_Stroke_CI_AS NOT NULL
ALTER TABLE Chars ALTER COLUMN [OldCharName] [varchar](30) COLLATE Chinese_PRC_Stroke_CI_AS NULL
GO
DROP INDEX IX_Chars_CharName ON PS_GameData.dbo.Chars
GO
ALTER TABLE Chars ALTER COLUMN [CharName] [varchar](30) COLLATE Chinese_PRC_Stroke_CI_AS NOT NULL
GO
USE [PS_GameData]
GO
/****** Object: Index [IX_Chars_CharName] Script Date: 03/28/2010 10:17:12 ******/
CREATE NONCLUSTERED INDEX [IX_Chars_CharName] ON [dbo].[Chars]
(
[CharName] ASC
)WITH (PAD_INDEX = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF) ON [PRIMARY]
GO
set ANSI_NULLS ON
set QUOTED_IDENTIFIER OFF
GO
I also found one line in a procedure that was uncommented which probably was causing trouble.
Code:
ALTER Proc [dbo].[usp_Save_Char_Name_E]
@ServerID tinyint,
@CharID int,
@OldCharName nvarchar(30),
@NewCharName nvarchar(30)
AS
SET NOCOUNT ON
--SET XACT_ABORT ON
--DECLARE @NameCnt int
--DECLARE @Ret int
SET @OldCharName = LTRIM(RTRIM(@OldCharName))
SET @NewCharName = LTRIM(RTRIM(@NewCharName))
--SET @Ret = 0
IF EXISTS ( SELECT CharID FROM Chars WHERE CharName=@NewCharName AND Del=0)
BEGIN
RETURN -2
END
--BEGIN TRANSACTION
UPDATE Chars SET CharName=@NewCharName,RenameCnt=RenameCnt-1,OldCharName=@OldCharName WHERE CharID=@CharID AND Del=0
IF @@ERROR <> 0
BEGIN
GOTO ERROR_ROLLBACK
END
UPDATE Guilds SET MasterName=@NewCharName WHERE MasterCharID=@CharID
--IF @@ERROR <> 0
--BEGIN
-- GOTO ERROR_ROLLBACK
--END
UPDATE FriendChars SET FriendName=@NewCharName WHERE FriendID=@CharID
--IF @@ERROR <> 0
--BEGIN
-- GOTO ERROR_ROLLBACK
--END
UPDATE BanChars SET BanName=@NewCharName WHERE BanID=@CharID
--IF @@ERROR <> 0
--BEGIN
-- GOTO ERROR_ROLLBACK
--END
INSERT INTO CharRenameLog( ServerID, CharID, CharName) VALUES(@ServerID, @CharID, @NewCharName )
--UPDATE PS_USERDB01.PS_UserData.dbo.CreatedChars SET CharName=@NewCharName WHERE ServerID=@ServerID AND CharID=@CharID
--IF @@ERROR <> 0
--BEGIN
-- GOTO ERROR_ROLLBACK
--END
--COMMIT TRANSACTION
RETURN 1
ERROR_ROLLBACK:
--ROLLBACK TRANSACTION
RETURN -2
SET NOCOUNT OFF
BY ... SHAIYA DEVELOPMENT Group
|
|
|
08/21/2010, 16:55
|
#2
|
elite*gold: 261
Join Date: Sep 2009
Posts: 288
Received Thanks: 236
|
Thanks so much for this release
|
|
|
08/24/2010, 01:08
|
#3
|
elite*gold: 0
Join Date: May 2010
Posts: 97
Received Thanks: 14
|
I am trying to get this to work but I am not 100% sure where to insert this code. Anyone able to clarify that for me?
|
|
|
08/24/2010, 20:03
|
#4
|
elite*gold: 0
Join Date: Jan 2010
Posts: 35
Received Thanks: 1
|
you can insert this code into SQL Query Analyzer ^_^!
|
|
|
08/24/2010, 21:00
|
#5
|
elite*gold: 0
Join Date: Oct 2009
Posts: 449
Received Thanks: 644
|
Quote:
Originally Posted by Jaden151
I am trying to get this to work but I am not 100% sure where to insert this code. Anyone able to clarify that for me?
|
I don't provide any support for the fix. You must have mistaken this forum with Microsoft Technical help or something.
|
|
|
08/23/2011, 16:27
|
#6
|
elite*gold: 0
Join Date: Aug 2011
Posts: 19
Received Thanks: 0
|
I tried it and it hadn't worked ... Still name in use and still had to go to character screen . Pasted the code in a query and executed , also saved but nothing .
|
|
|
09/27/2011, 00:44
|
#7
|
elite*gold: 0
Join Date: Aug 2011
Posts: 53
Received Thanks: 23
|
I am having a slight issue with the Name Change still. It will tell me the name is in use, but after a full complete relog, the new name appears >.>
My only concern with this is if someone tries to name change, and the name is really in use then they have wasted a Name change scroll (If they payed for it)
|
|
|
10/23/2011, 02:53
|
#8
|
elite*gold: 0
Join Date: Oct 2011
Posts: 51
Received Thanks: 33
|
Thank you very much
|
|
|
10/23/2011, 03:03
|
#9
|
elite*gold: 150
Join Date: Apr 2010
Posts: 9,739
Received Thanks: 8,977
|
There is a "Thanks" button, by pressing it you are "saying" thanks, there is no need to press it and make a post saying it.
|
|
|
10/23/2011, 03:08
|
#10
|
elite*gold: 0
Join Date: Oct 2011
Posts: 51
Received Thanks: 33
|
Lol. Ok, I was only being polite :/
|
|
|
10/26/2014, 08:03
|
#11
|
elite*gold: 0
Join Date: May 2010
Posts: 82
Received Thanks: 6
|
hi all, i entered those query and was successful. but the problem still exists. using the rename scroll from im, relogs and enters the new name still gives name already in use.
restarted the database and game services. still the same.
client and database used was episode 4.5
looking for an answer and thanks in advance.
Mark.
|
|
|
|
Similar Threads
|
[RELEASE] Shaiya Font Change
01/22/2013 - Shaiya Hacks, Bots, Cheats & Exploits - 8 Replies
I'm releasing a new tool that allows you to change the Font to what ever you want.
To use:
1. run program
2. select the game.exe
3. select font
4. click change font
5. save game.exe
*NOTE: please make sure you DO NOT have the game running when changing the font.
|
[RELEASE]Change group EXP distribution
08/15/2010 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 15 Replies
Hi people, i'm new here. I created a "hack" or Bug for Metin2 (Offi and Pserver) this hack isn't very helpful but if you are in group in Black Orcs with a very lot of people and the leader put Distribution by lvl, then you can change it to uniform. (Sorry if you don't understand something, but i'm spanish and i'm using my brain to write this xD)
Ok, i stop writing and i say the buttons and dowload link:
CHANGE TO UNIFORM DISTRIBUTION: F7
CHANGE TO LVL DISTRIBUTION: F8
Download link
...
|
EP5 Armor Files (Shaiya Dev Group)
05/15/2010 - Shaiya - 21 Replies
Using the Extracter for EP4 i posted earlier in the section http://www.elitepvpers.com/forum/shaiya/516736-ep4- 5-data-extractor-shaiya-dev-team.html you would know that you can extract all the files.... Including the texture and model files.
If you have extracted the files then you will see a folder named "Character"
Inside this fiolder are 4 more folders "DeathEater" "Elf" "Human" And "Vile"
The textures i have uploaded are organized like these. just copy and paste the files to there...
|
[HELP]How to change the Server Group name?
08/23/2009 - Dekaron Private Server - 6 Replies
I was wondering where I can change the Server Group name like at the Screenshot below?:confused:
The first one is from the login
Imageshack - dekm
http://img269.imageshack.us/i/dekm.jpg/
The second one is located at the upper left corner of gameplay screen
Imageshack - dek2
http://img33.imageshack.us/i/dek2.jpg/
|
All times are GMT +2. The time now is 06:35.
|
|