PVP SERVER
[N-Guard] En Uygun Procedureler & Serverfiles! Yuo
PVP SERVER
[N-Guard] En Uygun Procedureler & Serverfiles! Yuo
PVP SERVER
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
AnasayfaAnasayfa  AramaArama  Latest imagesLatest images  Kayıt OlKayıt Ol  Giriş yapGiriş yap  

 

 [N-Guard] En Uygun Procedureler & Serverfiles!

Aşağa gitmek 
2 posters
YazarMesaj
djgok
Süper Aktif Üye
Süper Aktif Üye
djgok


Ruh Hali : [N-Guard] En Uygun Procedureler & Serverfiles! Agresi10
Job : [N-Guard] En Uygun Procedureler & Serverfiles! 14tc1sw
Mesaj Sayısı : 362
Kayıt tarihi : 15/09/09
Nerden : GeLCeN Mi

[N-Guard] En Uygun Procedureler & Serverfiles! Empty
MesajKonu: [N-Guard] En Uygun Procedureler & Serverfiles!   [N-Guard] En Uygun Procedureler & Serverfiles! Icon_minitimeSalı Eyl. 15, 2009 4:33 pm

lk Öncelikle Fix Aujard & Login Serveri indiriyoruz (Rar Şifresi: neo_tr)

http://rapidshare.com/files/121891779/FixServer.rar.html%3Cbr%20/%3E

1-)Account_Logout

Kod:
CREATE PROCEDURE ACCOUNT_LOGOUT
@AccountID varchar(21),
@nRet smallint OUTPUT
AS
BEGIN
DELETE FROM CURRENTUSER WHERE strAccountID = @AccountID
SET @nRet = 1
END
GO

2-)ACCOUNT_LOGIN

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

AS

DECLARE @Nation tinyint, @CharNum smallint,@Game int,@Limit int
SET @Nation = 0
SET @CharNum = 0
SET @Limit = 800
Select @Game = Count(*) From CURRENTUSER


DECLARE @pwd varchar(13)

SET @pwd = null
IF @Game <= @Limit
BEGIN
SELECT @pwd = strPasswd FROM [dbo].[TB_USER] WHERE strAccountID = @AccountID
END
ELSE IF @Game > @Limit
BEGIN
SELECT @pwd = strPasswd FROM [dbo].[TB_USER] WHERE strAccountID = @AccountID and Premium > 0
END
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

UPDATE TB_USER Set Premium = 0 Where strAccountID = @AccountID and PreDay = 0

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

3-)LOAD_PREMIUM_SERVICE_USER

Kod:
CREATE PROCEDURE LOAD_PREMIUM_SERVICE_USER
@AccountID varchar(27),
@nRet1 smallint OUTPUT,
@nRet2 smallint OUTPUT
AS
DECLARE @nRow smallint
SET @nRow = 0
DECLARE @Type smallint
SET @Type = null
DECLARE @Days smallint
SET @Days = null
SELECT @nRow = COUNT(*) FROM TB_USER WHERE strAccountID = @AccountID and Premium > 0
IF @nRow = 0
BEGIN
SET @nRet1 = 0
SET @nRet2 = 0
RETURN
END
BEGIN TRAN
SELECT @Type = Premium, @Days = PreDay FROM TB_USER WHERE strAccountID = @AccountID
IF @Days = 0
BEGIN
UPDATE TB_USER SET Premium = 0 WHERE strAccountID = @AccountID
SET @nRet1 = 0
SET @nRet2 = 0
RETURN
END
COMMIT TRAN
SET @nRet1 = @Type
SET @nRet2 = @Days
GO

4-)UPDATE_PREMIUM_SERVICE_USER

Kod:
CREATE PROCEDURE UPDATE_PREMIUM_SERVICE_USER
@AccountID varchar(27),
@Days smallint
AS
UPDATE TB_USER SET PreDay = @Days WHERE strAccountID = @AccountID
UPDATE TB_USER SET Premium = 0 WHERE PreDay = 0 and Premium = 1
GO

5-)PROC_INSERT_CURRENTUSER

Kod:
CREATE PROCEDURE PROC_INSERT_CURRENTUSER
@AccountID varchar(50),
@CharID varchar(50),
@ServerNo int,
@ServerIP varchar(50),
@ClientIP varchar(50),
@nret smallint output

AS

INSERT
INTO CURRENTUSER (nServerNo, strServerIP, strAccountID, strCharID,
strClientIP ) Values (@ServerNo, @ServerIP, @AccountID, @CharID,
@ClientIP )
set @nret=1
GO

6-)CLEAR_REMAIN_USERS

Kod:
CREATE PROCEDURE CLEAR_REMAIN_USERS
@AccountID varchar(50)
AS
BEGIN TRAN
DELETE FROM CURRENTUSER WHERE strAccountID = @AccountID
UPDATE TB_USER SET idays = 0
TRUNCATE TABLE CURRENTUSER
COMMIT TRAN
GO

7-)ACCOUNT_NEOTR

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

DECLARE @Nation tinyint
SET @Nation = 0
-- tid login method by samma 2004.02.24
DECLARE @pwd varchar(13)

SET @pwd = null

SELECT @pwd = strPasswd FROM TB_USER WHERE strAccountID = @AccountID and idays = 1
IF @pwd IS null
BEGIN
SET @nRet = 0
RETURN
END

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

SELECT @Nation = bNation FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID
exec otonp
exec otonpsimgesi
exec RANK_KNIGHTS
IF @@ROWCOUNT = 0
BEGIN
SET @nRet = 1
RETURN
END
BEGIN
SET @nRet = 1
RETURN
END
BEGIN
SET @nRet = @Nation+1
RETURN
END
GO

8-)TABLO EKLERİ

Kod:
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[TB_USER]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[TB_USER]
GO

CREATE TABLE [dbo].[TB_USER] (
[Premium] [int] NULL
[PreDay] [int] NULL
) ON [PRIMARY]
GO
Sayfa başına dön Aşağa gitmek
ByAl4kazum
AshKnight
ByAl4kazum


Ruh Hali : [N-Guard] En Uygun Procedureler & Serverfiles! Yurekl10
Job : [N-Guard] En Uygun Procedureler & Serverfiles! 2wm3yiv
Mesaj Sayısı : 114
Kayıt tarihi : 19/09/09
Yaş : 34
Nerden : Çıktı Bu VeletxD

[N-Guard] En Uygun Procedureler & Serverfiles! Empty
MesajKonu: Geri: [N-Guard] En Uygun Procedureler & Serverfiles!   [N-Guard] En Uygun Procedureler & Serverfiles! Icon_minitimeC.tesi Eyl. 19, 2009 11:25 pm

emegine sağlık ty
Sayfa başına dön Aşağa gitmek
 
[N-Guard] En Uygun Procedureler & Serverfiles!
Sayfa başına dön 
1 sayfadaki 1 sayfası
 Similar topics
-
» MESALA GUARD TOWERLER BIZIM ISEDIĞIMIZ DAMGEDE VURSA İŞTE GUARD TWORLA İLGİLİ TUM PROSODUR VE KODLAR
» KoPoWerTR > Homeko V2.8 DB | Teamler için En Uygun Kapanmıyacak Server
» [Guard] Beth Görevleri

Bu forumun müsaadesi var:Bu forumdaki mesajlara cevap veremezsiniz
PVP SERVER :: Knight Online PvP :: Pvp Server Kurulumu-
Buraya geçin: