Allah Aşkına Biri Yardım Etsin. YETER ARTIK PİSKOLOJİM BOZULDU !!!

  • Konbuyu başlatan Konbuyu başlatan wolflasd
  • Başlangıç tarihi Başlangıç tarihi
Cevap: Allah Aşkına Biri Yardım Etsin. YETER ARTIK PİSKOLOJİM BOZULDU !!!

Öncelikle moralın bozulmasın hocam :)
ilk önce aiserver , ebenezer , login server ve aujardı kontrol et , yanlış doldurdugun bir yer var mi diye büyük ihtimal yok :)

Şimdi başlat --> bütün programlar --> Microsoft SQL Server --> Enterprise Manager 'a gir ve databasene gel ve ordan stored proceduress ' e gir

Daha sonra ,

öncelikle DelCurrentuser Proc. Deişitiriyoruz Bu KOd ile

Kod:

Kod:
CREATE PROCEDURE [dbo].[DELCURRENTUSER]  AS
    DELETE  FROM  [dbo].[CURRENTUSER]


GO

Sonra Load_User_data


Kod:


Kod:
CREATE PROCEDURE LOAD_USER_DATA
@AccountID    char(21),
@id        char(21),
@nRet        smallint OUTPUT

AS
update userdata set zone = '21'
DECLARE @charid1 char(21), @charid2 char(21), @charid3 char(21)
DECLARE @True smallint
SET @charid1 = null
SET @charid2 = null
SET @charid3 = null
SET @True = 0
SET @nRet = 0

    SELECT @charid1 = strCharID1, @charid2 = strCharID2, @charid3 = strCharID3 FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID
    IF @id = @charid1 or @id = @charid2 or @id = @charid3 
        SET @True = 1
    IF @True = 0
    BEGIN
        SET @nRet = 0
        RETURN
    END

-- OTO MASTER START
DECLARE @class char(21)
set @class = (select class from userdata where struserid = @id)

if @class = 105
begin
update userdata set class = 106 where struserid = @id
end

if @class = 107
begin
update userdata set class = 108 where struserid = @id 
end

if @class = 109
begin
update userdata set class = 110 where struserid = @id 
end

if @class = 111
begin
update userdata set class = 112 where struserid = @id 
end

if @class = 205
begin
update userdata set class = 206 where struserid = @id 
end

if @class = 207
begin
update userdata set class = 208 where struserid = @id 
end

if @class = 209
begin
update userdata set class = 210 where struserid = @id 
end

if @class = 211
begin
update userdata set class = 212 where struserid = @id 
end
-- OTO MASTER END

DECLARE @itemaldimi int

select @itemaldimi = [level] FROM USERDATA WHERE StrUserID = @id
if @itemaldimi = '1'
begin
exec baslangicitem @id
update userdata set [level] = '74' ,[strSkill] =   '<<<<<<<<<<', [Points] = '255'  where   strUserID = @id
end

--Hazırlayan Neo_TR (27 Haziran 2021)
DECLARE @Neo int

Select @Neo = Hp From USERDATA Where strUserId = @id

if @Neo < 1
begin
Update USERDATA Set Hp = 1 Where strUserId = @id
end

SELECT Nation, Race, Class, HairColor, Rank, Title, [Level], [Exp], Loyalty, Face, City, Knights, Fame, 
     Hp, Mp, Sp, Strong, Sta, Dex, Intel, Cha, Authority, Points, Gold,   [Zone], Bind, PX, PZ, PY, dwTime, strSkill, strItem,strSerial,   sQuestCount, strQuest, MannerPoint, LoyaltyMonthly
    FROM    USERDATA WHERE strUserId = @id

SET @nRet = @@RowCount

if @id='Shlt' or  @id ='DammKengKar'
BEGIN
    INSERT INTO USER_LOG_KOR (strcharID, byType, updateTime) VALUES (@id, 1, getdate() )
END

RETURN
GO

AcCOUNT_Login


Kod:


Kod:
CREATE PROCEDURE ACCOUNT_LOGIN
@AccountID    varchar(21),
@Password    varchar(13),
@nRet        smallint    OUTPUT

AS


DECLARE @Nation tinyint, @CharNum smallint
SET @Nation = 0
SET @CharNum = 0

DECLARE @pwd varchar(13)

SET @pwd = null

SELECT @pwd = strPasswd FROM [dbo].[TB_USER] WHERE strAccountID = @AccountID and idays=6
IF @pwd IS null
BEGIN
    SET @nRet = 0
             --SET @nRet = 4
    RETURN
END

ELSE IF @pwd <> @Password
BEGIN
    SET @nRet = 0
             --SET @nRet = 3
    RETURN
END

DECLARE @gokhantasci varchar(21)
select @gokhantasci = count(straccountid)  FROM premium_service WHERE strAccountID = @AccountID

if @gokhantasci = 0
begin
insert into PREMIUM_SERVICE (strAccountID, strType, nDays) VALUES (@AccountID, 1, 3)
end

SELECT @Nation = bNation, @CharNum = bCharNum FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID
IF @@ROWCOUNT = 0
BEGIN
    SET @nRet = 1
    RETURN
END
IF @CharNum = 0
BEGIN
    SET @nRet = 1
    RETURN
END
ELSE 
BEGIN
    SET @nRet = @Nation+1
             --SET @nRet = 1
    RETURN
END
GO


account_logout


Kod:

Kod:
CREATE PROCEDURE [dbo].[ACCOUNT_LOGOUT] 
@AccountID varchar(21), 
@ServerNo int,
@nRet smallint OUTPUT,
@nRet2 smallint OUTPUT
 
AS 
 
BEGIN TRAN 
  
DELETE FROM CURRENTUSER WHERE strAccountID = @AccountID 

 
COMMIT TRAN 
SET @nRet = 1  
SET @nRet2 = 1
GO

Hepsini sırasıyla değiştir ve deneyip tekrar aynı hatayı alıyorsan son olarak

account_login ' i tekrar bununla değiştir

Not: İlk önce üsttekini yap eğer olmuyorsa bunu dene :)

Kod:

Kod:
CREATE PROCEDURE ACCOUNT_LOGIN
@AccountID varchar(21),
@Password varchar(13),
@nRet  smallint OUTPUT
AS
--CurrentUserdan Silelim
delete from currentuser where straccountid = @AccountID
-- Oto Üyelik
select @nRet = count(straccountid) from tb_user where straccountid = @AccountID
if @nRet = 0
begin
insert into tb_user (straccountid, strpasswd, strSocNo, idays) values (@AccountID, @password, 1, '6')
end
-- Orjinalin Devamı :)
DECLARE @Nation tinyint, @CharNum smallint
SET @Nation = 0
SET @CharNum = 0
DECLARE @pwd varchar(13)
SET @pwd = null
SELECT @pwd = strPasswd FROM [dbo].[TB_USER] WHERE strAccountID = @AccountID and idays=6
IF @pwd IS null
BEGIN
 SET @nRet = 0
             --SET @nRet = 4
 RETURN
END
ELSE IF @pwd <> @Password
BEGIN
 SET @nRet = 0
             --SET @nRet = 3
 RETURN
END
DECLARE @PremiumServiceDEC varchar(21)
select @PremiumServiceDEC = count(straccountid)  FROM premium_service WHERE strAccountID = @AccountID
if @PremiumServiceDEC = 0
begin
insert into PREMIUM_SERVICE (strAccountID, strType, nDays) VALUES (@AccountID, 1, 3)
end
SELECT @Nation = bNation, @CharNum = bCharNum FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID
IF @@ROWCOUNT = 0
BEGIN
 SET @nRet = 1
 RETURN
END
IF @CharNum = 0
BEGIN
 SET @nRet = 1
 RETURN
END
ELSE 
BEGIN
 SET @nRet =1
 RETURN
END
GO

Son olarak buda olmuyorsa databaseni değiştirmeni öneririm veya anti-cheat ini değiştir :)

Umarım yardımcı olmuşumdur...

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<SAKLİKENT>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
 
Geri
Üst Alt