BaşLangıç LeveL Para Stat Point Skill Point Ayarlama

  • Konbuyu başlatan Konbuyu başlatan HiFi
  • Başlangıç tarihi Başlangıç tarihi
Kayıtlı Üye
Katılım
30 Eylül 2020
Mesajlar
35
olmaz bu şekilde adam nerden bilsin neresine eklicek. kardeş datanı seç sonra > prommability>stored procedures e gel sağ tıkla çıkan listeden CREATE_NEW_CHAr a sağ tıkla ve modify de çıkan yerdeki procu kopyalaayıp masaüstüne metin belgene yedekle sonra bunu yapıştırıp üst menüden execute ya da F5 ile kayıt yap. SQL management studio nun bağlantısını kopar tekrar bağlan ve oyuna girip yeni char aç. kodu altta veriyorum bendeki 1lv mastersiz koddur.

Not:clas 213 benim uydurmamdır kurian sorunludur...

USE [kn_online]
GO
/****** Object: StoredProcedure [dbo].[CREATE_NEW_CHAR] Script Date: 5.05.2021 23:36:41 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE [dbo].[CREATE_NEW_CHAR]
@strAccountID varchar(21),
@index tinyint,
@strCharID varchar(21),
@bRace tinyint,
@sClass smallint,
@nHair int,
@bFace tinyint,
@bStr tinyint,
@bSta tinyint,
@bDex tinyint,
@bIntel tinyint,
@bCha tinyint
AS
DECLARE @bNation tinyint
DECLARE @bCharCount tinyint
DECLARE @bCount tinyint

SELECT @bNation = bNation, @bCharCount = bCharNum FROM ACCOUNT_CHAR WHERE strAccountID = @strAccountID

IF (@bNation = 1 AND @bRace > 10)
RETURN 2
ELSE IF (@bNation = 2 AND @bRace < 10)
RETURN 2
ELSE IF (@bNation <> 1 AND @bNation <> 2)
RETURN 2

SELECT @bCount = COUNT(strUserID) FROM USERDATA WHERE strUserID = @strCharID

IF (@bCount > 0)
RETURN 3

BEGIN TRAN
IF (@index = 0)
UPDATE ACCOUNT_CHAR SET strCharID1 = @strCharID, bCharNum += 1 WHERE strAccountID = @strAccountID
ELSE IF (@index = 1)
UPDATE ACCOUNT_CHAR SET strCharID2 = @strCharID, bCharNum += 1 WHERE strAccountID = @strAccountID
ELSE IF (@index = 2)
UPDATE ACCOUNT_CHAR SET strCharID3 = @strCharID, bCharNum += 1 WHERE strAccountID = @strAccountID
ELSE IF (@index = 3)
UPDATE ACCOUNT_CHAR SET strCharID4 = @strCharID, bCharNum += 1 WHERE strAccountID = @strAccountID

IF (@@ERROR <> 0 OR @@ROWCOUNT = 0)
BEGIN
ROLLBACK TRAN
RETURN 4
END


INSERT INTO USERDATA (strUserID, Nation, Race, Class, HairRGB, Face, Strong, Sta, Dex, Intel, Cha)
VALUES (@strCharID, @bNation, @bRace, @sClass, @nHair, @bFace, @bStr, @bSta, @bDex, @bIntel, @bCha)








update userdata set class = 101 , gold = '1000000', points = '' ,strskill ='' , [level] = '1', Exp = '1' where struserid = @strCharID and @sclass = 101
update userdata set class = 102 , gold = '1000000', points = '' ,strskill ='' , [level] = '1', Exp = '1' where struserid = @strCharID and @sclass = 102
update userdata set class = 103 , gold = '1000000', points = '' ,strskill ='' , [level] = '1', Exp = '1' where struserid = @strCharID and @sclass = 103
update userdata set class = 104 , gold = '1000000', points = '' ,strskill ='' , [level] = '1', Exp = '1' where struserid = @strCharID and @sclass = 104
update userdata set class = 113 , gold = '1000000', points = '' ,strskill ='' , [level] = '1', Exp = '1' where struserid = @strCharID and @sclass = 113
update userdata set class = 201 , gold = '1000000', points = '' ,strskill ='' , [level] = '1', Exp = '1' where struserid = @strCharID and @sclass = 201
update userdata set class = 202 , gold = '1000000', points = '' ,strskill ='' , [level] = '1', Exp = '1' where struserid = @strCharID and @sclass = 202
update userdata set class = 203 , gold = '1000000', points = '' ,strskill ='' , [level] = '1', Exp = '1' where struserid = @strCharID and @sclass = 203
update userdata set class = 204 , gold = '1000000', points = '' ,strskill ='' , [level] = '1', Exp = '1' where struserid = @strCharID and @sclass = 204
update userdata set class = 213 , gold = '1000000', points = '' ,strskill ='' , [level] = '1', Exp = '1' where struserid = @strCharID and @sclass = 213




IF (@@ERROR <> 0)
BEGIN
ROLLBACK TRAN
RETURN 4
END
COMMIT TRAN









RETURN 0
 
Üst Alt
Reklam
Reklam