Register for your free account! | Forgot your password?

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

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

Advertisement



Problem with check race char

Discussion on Problem with check race char within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
athena1410's Avatar
 
elite*gold: 0
Join Date: Jul 2017
Posts: 118
Received Thanks: 65
Problem with check race char

Hi epvp, i have a problem with check race char by UniqueID
i write store procdure to check race
ALTER PROCEDURE [dbo].[_GetRaceByUniqueID]
@ID bigint

AS
DECLARE @ INT
BEGIN
IF EXISTS( SELECT RefObjID
FROM SRO_VT_SHARD.._Char C
INNER JOIN _LogPlayers LP
ON C.CharName16 = LP.CharName16
COLLATE SQL_Latin1_General_CP1_CI_AS
WHERE UniqueID = @ID AND RefObjID < 1933)
BEGIN
SET @ = 1 //CH
END
ELSE
BEGIN
SET @ = 0 //EU
END
END
SELECT @

If char is CH it return 1 else return 0
it work onl DB but when i call it in program

uint TargetID = _pck.ReadUInt32(); //return values 3xxxxx
SqlDataReader reader = sqlCon.Return("[" + FilterMain.SUP_DB + "].[dbo].[_GetRaceByUniqueID]", new SqlParameter( @ID", TargetID));
reader.Read();
int isAsi = reader.GetInt32(0);

it not work at reader.Read(); . I don't know why it not work, please help me!
athena1410 is offline  
Old 09/23/2017, 03:41   #2
 
sigel123456789's Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 327
Received Thanks: 55
maybe that tut help u
sigel123456789 is offline  
Old 09/23/2017, 08:51   #3
 
athena1410's Avatar
 
elite*gold: 0
Join Date: Jul 2017
Posts: 118
Received Thanks: 65
Quote:
Originally Posted by sigel123456789 View Post
maybe that tut help u
no, i have problem with check char race in filter not DB.
athena1410 is offline  
Reply


Similar Threads Similar Threads
Race On Bundle Account (Race 07, Race On, STCC:The Game) - 10€
05/14/2011 - Steam Trading - 10 Replies
Verkaufe euch einen Steam Account, welcher das Race On Paket drauf hat! - Race 07 - Race On - STCC:The Game Ich verkaufe ihn für eine 10er PSC. ;) Der Account ist 100% Active! http://s7.directupload.net/images/110506/yq2e22ab .jpg
Race Sound ändern/frage zu race änderung
12/10/2008 - World of Warcraft - 3 Replies
Hi Community, heute hab ich es endlich geschafft meinen Blutelfen in einen Mneschen zu verwandeln und frage mich jetzt welche Dateien man benötigt um auch die Emote Sounds und so zu ändern bzw wo sich diese befinden. Im Common 2 MPQ hab ich schon ein paar sounds extrahieren können z.B. den Schrei beim Angriff. Aber wo befinden sich die anderen Soundfiles? Mein Mensch hat im Gesicht anstelle eines Bartes einfach eine Leere stelle, gibts da ne möglichkeit dies zu ändern bzw. wie macht man...
Question> About changing race armor to other race
08/13/2008 - RF Online - 5 Replies
for example Accretian armor will become Cora Armor. i mean the armor requirements will be change Race : Accretia will become Race : Cora
The big Race to Race Modelchange Collection
04/15/2008 - World of Warcraft - 13 Replies
/close kiddi forum -.-



All times are GMT +1. The time now is 16:50.


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.