Register for your free account! | Forgot your password?

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

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

Advertisement



problem with Change Name Scroll

Discussion on problem with Change Name Scroll within the SRO Private Server forum part of the Silkroad Online category.

Closed Thread
 
Old   #1

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Exclamation problem with Change Name Scroll

hi Elitepvpers guys
i have Change Name Scroll in my server and its working perfectly but its block the old name ,i want to make the old name free to use after using the scroll instead of blocking it , i noticed that some servers have it already , so i wonder if someone can share with me ,what should i edit to make it work like that...

thanks in advance.
devdash is offline  
Old 04/17/2018, 14:35   #2
 
NorseGodTyr's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 2,223
Received Thanks: 1,482
Go to SRO_VT_SHARD
to Procedure _RenameCharNameByID
and Edit / Replace

Insert is add new line
Update is edit old line

Quote:
Original

insert _CharNameList values(@NewName, @charid)

to

UPDATE _CharNameList set CharName16 = @NewName where CharID = @CharID

or try this

UPDATE _CharNameList values(@NewName, @charid)

NorseGodTyr is offline  
Thanks
1 User
Old 04/17/2018, 15:46   #3

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Quote:
Originally Posted by mialuisa View Post
Go to SRO_VT_SHARD
to Procedure _RenameCharNameByID
and Edit / Replace

Insert is add new line
Update is edit old line
thanks for your answer dude, iam going to try now and i will be back with results

Quote:
Originally Posted by mialuisa View Post
Go to SRO_VT_SHARD
to Procedure _RenameCharNameByID
and Edit / Replace

Insert is add new line
Update is edit old line
UPDATE _CharNameList set CharName16 = @ where CharID = @D
this one can be excuted but when i change the name the char crash before its appear, and i back to rename it again,
and the second one
UPDATE _CharNameList values @, @d)
, can't be excuted this error keeps pop up
Msg 156, Level 15, State 1, Procedure _RenameCharNameByID, Line 29
Incorrect syntax near the keyword 'values'.
devdash is offline  
Old 04/18/2018, 08:37   #4
 
NorseGodTyr's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 2,223
Received Thanks: 1,482
Quote:
Originally Posted by alydandy View Post
thanks for your answer dude, iam going to try now and i will be back with results



UPDATE _CharNameList set CharName16 = @ where CharID = @D
this one can be excuted but when i change the name the char crash before its appear, and i back to rename it again,
and the second one
UPDATE _CharNameList values @, @d)
, can't be excuted this error keeps pop up
Msg 156, Level 15, State 1, Procedure _RenameCharNameByID, Line 29
Incorrect syntax near the keyword 'values'.
wait i will check on my test server and search a result

so done
Add this
Quote:
USE [SRO_VT_SHARD]
GO
/****** Object: StoredProcedure [dbo].[_RenameCharNameByID] Script Date: 18.04.2018 09:36:35 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

-----------------------------------------------------------------------------------------------------

ALTER procedure [dbo].[_RenameCharNameByID]
@CharID int,
@NewName varchar(64)
as
if (not exists (select charid from _char where charid = @charid))
return -1
set xact_abort on
begin transaction
if (exists (select charid from _charnamelist with (updlock) where charname16 = @NewName))
begin
rollback transaction
return -3
end
declare @old_name varchar(64)
select @old_name = charname16 from _char where charid = @charid
update _char set charname16 = @NewName where charid = @charid
if (@@error <> 0 or @@rowcount = 0)
begin
rollback transaction
return -4
end
Delete _CharNameList where CharID = @charid
insert _CharNameList values(@NewName, @charid)
UPDATE _Char set NickName16 = @NewName where CharID = @CharID
UPDATE _CharNickNameList set NickName16 = @NewName where CharID = @CharID
UPDATE _Char set CharName16 = @NewName where CharID = @CharID
update _Friend set friendcharname = @NewName where friendcharid = @charid
update _GuildMember set charname = @NewName where charid = @charid
update _Memo set fromcharname = @NewName where fromcharname = @old_name
update _TrainingCampMember set charname = @NewName where charid = @charid
declare @cos_id int
declare cos_cursor cursor fast_forward for
select id
from _charcos
where ownercharid = @CharID
open cos_cursor
fetch next from cos_cursor into @cos_id
while( @@fetch_status = 0 )
begin
update _Items set CreaterName = @NewName
where ID64 in
(select ItemID from _InvCOS where COSID = @cos_id and ItemID > 0)
and CreaterName = @old_Name
if (@@error <> 0 )
begin
close cos_cursor
deallocate cos_cursor
rollback transaction
return -5
end
fetch next from cos_cursor into @cos_id
end
close cos_cursor
deallocate cos_cursor
declare pc_inv_cursor cursor fast_forward for
select it.Data
from _Inventory as inv join _Items as it on inv.ItemID = it.ID64
where
(inv.CharID = @CharID and inv.Slot >= 13 and inv.ItemID > 0) and
(it.Data <> 0) and
(exists (select top 1 ID from _RefObjCommon where ID = it.RefItemID and TypeID1 = 3 and TypeID2 = 2))
open pc_inv_cursor
fetch next from pc_inv_cursor into @cos_id
while( @@fetch_status = 0 )
begin
update _Items set CreaterName = @NewName
where ID64 in
(select ItemID from _InvCOS where COSID = @cos_id and ItemID > 0)
and CreaterName = @old_Name
if (@@error <> 0 )
begin
close pc_inv_cursor
deallocate pc_inv_cursor
rollback transaction
return -6
end
fetch next from pc_inv_cursor into @cos_id
end
close pc_inv_cursor
deallocate pc_inv_cursor
if (CHARINDEX('@', @old_name, 0) > 0)
begin
select * from _Char
where CharID = ''
end
commit transaction
return 1
i have tested more time work fine
this make Job Name and Char name as same name
and overwrite/delete all Old Names
NorseGodTyr is offline  
Thanks
1 User
Old 04/18/2018, 13:52   #5

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Quote:
Originally Posted by mialuisa View Post
wait i will check on my test server and search a result

so done
Add this


i have tested more time work fine
this make Job Name and Char name as same name
and overwrite/delete all Old Names
i will try it now, and i will be back with results
devdash is offline  
Old 04/18/2018, 14:02   #6

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Quote:
Originally Posted by mialuisa View Post
wait i will check on my test server and search a result

so done
Add this


i have tested more time work fine
this make Job Name and Char name as same name
and overwrite/delete all Old Names
after i select the char, the loading screen showup and before the character showup i get crash
this is the dump file
Attached Files
File Type: rar 0N[2018-04-18 14-00-04]_79_22 BLACK-DIAMOND_qweqwe.rar (14.7 KB, 35 views)
devdash is offline  
Old 04/18/2018, 14:11   #7

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
perfect its working now, i have a question now, how can i add this scroll as a second scroll
wish means i want to have both scrolls on my server
how can i do that? what should i change ? to make both not effecting each other

solved, thanks mialuisa really dude <3
best wishes in your life

close please
devdash is offline  
Old 04/18/2018, 14:39   #8
 
#HB's Avatar
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,110
Received Thanks: 907
It's easy to do it, but it looks like you're a beginner..
Just make another procedure..
#HB is offline  
Old 04/18/2018, 15:38   #9

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Quote:
Originally Posted by #HB View Post
It's easy to do it, but it looks like you're a beginner..
Just make another procedure..
iam trying to do that but error keeps pop up





solved.
close please
devdash is offline  
Closed Thread


Similar Threads Similar Threads
Scroll of Augmentation, Change Awa Scroll
02/22/2018 - Flyff - 1 Replies
Hey, irgendein Trick/Glitch/Hack für die oben genannten Scrolls bekannt auf DE Flyff. Offi. Grüße
[Release]Scroll's Stat reset | Change Name Char
12/05/2016 - SRO PServer Guides & Releases - 22 Replies
heya i'll release scrolls stat reset & Change name Char lets start like everytime. Stat Reset Download & Scan Click Here Click Here Change name scroll & Download & Scan
Scroll of Name Change ? :D
05/13/2012 - Flyff - 10 Replies
hii , hab ne frage ob man wenn man Scoll of Name Change auch Großbuchstaben benutzen kann z.B LaPPenYa Danke im vorraus <3 MfG Euer Boss
Name already in use after Name Change Stone/Scroll
08/22/2011 - Shaiya Private Server - 3 Replies
I got a problem . I got my server running , but when i use Name Change , after i exit and login again , it asks me for the name , it says name already in use ( but it changes the name ) and then you must exit and login again for it to work , but it should normally change the name without relog .



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


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