Register for your free account! | Forgot your password?

Go Back   elitepvpers › Popular Games › Silkroad Online › SRO Private Server › SRO PServer Guides & Releases
You last visited: Today at 02:04

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

Advertisement



[SQL Guide] vSRO - Premium Free Access System

Discussion on [SQL Guide] vSRO - Premium Free Access System within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,867
Received Thanks: 1,091
Red face [SQL Guide] vSRO - Premium Free Access System

Hello Epvp members
today i'm gonna share the leaked version of new sql revolution

1-you need to drop and re-create dbo.TB_USER
PHP Code:
USE [SRO_VT_ACCOUNT]
GO

/****** Object:  Table [dbo].[TB_User]    Script Date: 05/19/2012 21:52:59 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE 
[dbo].[TB_User](
    [
JID] [int] IDENTITY(1,1) NOT NULL,
    [
StrUserID] [varchar](25) NOT NULL,
    [
password] [varchar](50) NOT NULL,
    [
truepassword] [varchar](50) NULL,
    [
Status] [tinyint] NULL,
    [
GMrank] [tinyint] NULL,
    [
Name] [varchar](25) NULL,
    [
Email] [varchar](100) NULL,
    [
sex] [char](2) NULL,
    [
certificate_num] [varchar](30) NULL,
    [
address] [varchar](100) NULL,
    [
postcode] [varchar](10) NULL,
    [
phone] [varchar](20) NULL,
    [
mobile] [varchar](20) NULL,
    [
regtime] [datetime] NULL,
    [
reg_ip] [varchar](25) NULL,
    [
Time_log] [datetime] NULL,
    [
freetime] [int] NULL,
    [
sec_primary] [tinyint] NOT NULL,
    [
sec_content] [tinyint] NOT NULL,
    [
AccPlayTime] [int] NULL,
    [
LatestUpdateTime_ToPlayTime] [int] NULL,
    [
at] [smallint] NULL,
    [
block] [smallint] NULL,
    [
blockreason] [varchar](500) NULL,
    [
expired] [datetime] NULL,
    [
emailkey] [varchar](50) NULL,
    [
hashigh] [smallint] NULL,
    [
lastloginip] [int] NULL,
    [
question] [varchar](50) NULL,
    [
answer] [varchar](50) NULL,
 
CONSTRAINT [PK_TB_User] PRIMARY KEY CLUSTERED 
(
    [
JID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 90) ON [PRIMARY],
 
CONSTRAINT [IX_TB_User] UNIQUE NONCLUSTERED 
(
    [
StrUserID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 90) ON [PRIMARY]
) 
ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE 
[dbo].[TB_User] ADD  CONSTRAINT [DF_TB_User_Status]  DEFAULT ((1)) FOR [Status]
GO

ALTER TABLE 
[dbo].[TB_User] ADD  CONSTRAINT [DF_TB_User_GMrank]  DEFAULT ((0)) FOR [GMrank]
GO

ALTER TABLE 
[dbo].[TB_User] ADD  CONSTRAINT [DF_TB_User_regtime]  DEFAULT (getdate()) FOR [regtime]
GO

ALTER TABLE 
[dbo].[TB_User] ADD  CONSTRAINT [DF_TB_User_freetime]  DEFAULT ((0)) FOR [freetime]
GO

ALTER TABLE 
[dbo].[TB_User] ADD  CONSTRAINT [DF_TB_User_sec_primary]  DEFAULT ((3)) FOR [sec_primary]
GO

ALTER TABLE 
[dbo].[TB_User] ADD  CONSTRAINT [DF_TB_User_sec_content]  DEFAULT ((3)) FOR [sec_content]
GO

ALTER TABLE 
[dbo].[TB_User] ADD  CONSTRAINT [DF_TB_User_at]  DEFAULT ((0)) FOR [at]
GO

ALTER TABLE 
[dbo].[TB_User] ADD  CONSTRAINT [DF_TB_User_block]  DEFAULT ((0)) FOR [block]
GO

ALTER TABLE 
[dbo].[TB_User] ADD  CONSTRAINT [DF_TB_User_expired]  DEFAULT (getdate()) FOR [expired]
GO

ALTER TABLE 
[dbo].[TB_User] ADD  CONSTRAINT [DF_TB_User_hashigh]  DEFAULT ((0)) FOR [hashigh]
GO

ALTER TABLE 
[dbo].[TB_User] ADD  CONSTRAINT [DF_TB_User_lastloginip]  DEFAULT ((0)) FOR [lastloginip]
GO 
2-create dbo._FreeAccess
PHP Code:
USE [SRO_VT_ACCOUNT]
GO

/****** Object:  Table [dbo].[_FreeAccess]    Script Date: 05/19/2012 21:55:16 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE 
[dbo].[_FreeAccess](
    [
JID] [int] NOT NULL,
    [
EndTime] [datetime] NOT NULL,
    [
ShardID] [int] NOT NULL
) ON [PRIMARY]

GO 
3-create dbo.BrutalBlockedIP
PHP Code:
USE [SRO_VT_ACCOUNT]
GO

/****** Object:  Table [dbo].[_BrutalBlockedIP]    Script Date: 05/19/2012 21:55:58 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE 
[dbo].[_BrutalBlockedIP](
    [
nIdx] [int] IDENTITY(1,1) NOT NULL,
    [
szIPBegin] [varchar](16) NOT NULL,
    [
szIPEnd] [varchar](16) NOT NULL,
    [
szGM] [varchar](64) NOT NULL,
    [
dIssueDate] [datetime] NOT NULL,
    [
szISP] [varchar](256) NULL,
    [
szDesc] [varchar](512) NULL,
 
CONSTRAINT [PK__BrutalBlockedIP] PRIMARY KEY CLUSTERED 
(
    [
nIdx] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 90) ON [PRIMARY]
) 
ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO 
4-drop and create dbo._PrivilegedIP
PHP Code:
USE [SRO_VT_ACCOUNT]
GO

/****** Object:  Table [dbo].[_PrivilegedIP]    Script Date: 05/19/2012 21:57:10 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE 
[dbo].[_PrivilegedIP](
    [
nIdx] [int] IDENTITY(1,1) NOT NULL,
    [
szIPBegin] [varchar](16) NOT NULL,
    [
szIPEnd] [varchar](16) NOT NULL,
    [
szGM] [varchar](64) NOT NULL,
    [
dIssueDate] [datetime] NOT NULL,
    [
szISP] [varchar](256) NULL,
    [
szDesc] [varchar](512) NULL,
 
CONSTRAINT [PK__PrivilegedIP] PRIMARY KEY CLUSTERED 
(
    [
nIdx] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 90) ON [PRIMARY]
) 
ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO 
Now the required stored procedures for AccountDB

5-CertifyTB_User
PHP Code:
USE [SRO_VT_ACCOUNT]
GO

/****** Object:  StoredProcedure [dbo].[_CertifyTB_User]    Script Date: 05/19/2012 21:59:22 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO



-- 4. ALTER PROCEDURE _CertifyTB_User
CREATE PROCEDURE 
[dbo].[_CertifyTB_User]
    @
szUserID    varchar(25),
    @
szPassword    varchar(50)
AS



    if 
exists ( 
        
select 
            
'' 
        
from _Punishment with ( nolock )
        
where SerialNo = ( 
            
select 
                max
( SerialNo ) from _BlockedUser with ( nolock ) 
            
where UserJID = ( SELECT JID FROM TB_User WHERE StrUserID = @szUserID ) and 
                
Type = 99 and getdate() between timeBegin and timeEnd ) )
    
begin
        select convert
( tinyint, 3), ( select JID from TB_User where StrUserID = @szUserID ), convert( tinyint, 0), convert( tinyint, 0)

        return
    
end
    
if exists (select 1 from TB_User where StrUserID=@szUserID and block=1 and expired>=GETDATE())
    
begin
        select convert
( tinyint, 3), ( select JID from TB_User where StrUserID = @szUserID ), convert( tinyint, 0), convert( tinyint, 0)
        return
    
end
    
declare @nUserJID int
    
declare @sec_primary tinyint
    
declare @sec_content tinyint

    set    
@nUserJID        = 0
    set    
@sec_primary        = 0
    set    
@sec_content        = 0

-- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-- ?????? ?????????? ???????? ??????
    declare @
ApplyType            tinyint
    
declare @AccPlayTime             int        
    
declare @LatestUpdateTime_ToPlayTime     int            

    set 
@ApplyType                 = 0        -- ?????? ?????????? ???????? ?????????? ???????? ???? ?????????? ???? ??????
    
set @AccPlayTime             = 0        
    set 
@LatestUpdateTime_ToPlayTime     = 0  
-- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

-- ?????? ?????? ???? ????
--    
select @nUserJID = JID, @sec_primary = sec_primary, @sec_content = sec_content from TB_User

    SELECT 
@nUserJID = JID, @sec_primary = sec_primary, @sec_content = sec_content
    
, @AccPlayTime = AccPlayTime, @LatestUpdateTime_ToPlayTime = LatestUpdateTime_ToPlayTime FROM TB_User
    WHERE StrUserID 
= @szUserID and password = @szPassword 
    
--and AT=1

-- Edit For fatigue system
-- Please, fill value to @ApplyType ( 1 : TEEN USER , 2 : ADULT USER ) from your web database
-- ex ) @ApplyType = exec web.proc.certify

    
if( @nUserJID = 0 or @nUserJID is null or @@error <> 0 or @@rowcount = 0)
    
begin
-- ?????? ?????? ???? ????
        
select convert( tinyint, 1), convert( int, 0), convert( tinyint, 0), convert( tinyint, 0)
        --
select convert( tinyint, 1), convert( int, 0), convert( tinyint, 0), convert( tinyint, 0), convert(tinyint, 0), convert(int, 0), convert(int, 0)
        return
    
end
    
if( exists( select Type from _BlockedUser where UserJID = @nUserJID and Type = 1 and getdate() between timeBegin and timeEnd))
    
begin
-- ?????? ?????? ???? ????
        
select convert( tinyint, 3), @nUserJID, convert( tinyint, 0), convert( tinyint, 0)
        --
select convert( tinyint, 3), @nUserJID, convert( tinyint, 0), convert( tinyint, 0), convert(tinyint, 0), convert(int, 0), convert(int, 0)
        return
    
end
-- ?????? ?????? ???? ????
select convert(tinyint, 0), @nUserJID, @sec_primary, @sec_content
    
--select convert(tinyint, 0), @nUserJID, @sec_primary, @sec_content, @ApplyType, @AccPlayTime, @LatestUpdateTime_ToPlayTime
    
return

GO 
6-create _CheckfreeAccess
PHP Code:
USE [SRO_VT_ACCOUNT]
GO

/****** Object:  StoredProcedure [dbo].[_CheckFreeAccess]    Script Date: 05/19/2012 22:04:52 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO




----------------------------------------------------------------------
-- &
#3616;ฺภฏมขฑูภฬ ฐกดษวัม๖ธฆ ศฎภฮวฯฑโ ภงวั วมทฮฝรมฎ 
----------------------------------------------------------------------
CREATE PROCEDURE [dbo].[_CheckFreeAccess]
    @
JID        INT,
    @
ShardID    INT
AS
    -- &
#3623;ุด็ JID ภว วุด็ ปตๅภว BanLvl ภฬ ฑโบปภฬ พฦดั พึต้ฟก EndTime ภป ฐกมฎฟยดู. 
    
DECLARE @EndTIme DATETIME 
    SET 
@EndTIme = 0

    
-- &#3623;๖ภ็ ผณฐ่ ป๓ BANLevel ภฬ 4 ( BanLevel รึฐํฤก ) ภฮ ฐๆฟ์ฟกธธ FA ฐก ฐกดษวฯดู. 
    
SELECT TOP 1 @EndTIme = Endtime 
        FROM _FreeAccess 
        WHERE JID 
= @JID 
            
AND ShardID = @ShardID 
        ORDER BY EndTime DESC
    
if exists (select 1 from TB_User where JID=@JID and block=1)
    
begin
        Select 1 
        
return
    
end
    
IF  ( @EndTIme <> 0 )  AND (  DATEDIFF( SECOND, GETDATE(), @EndTIme  ) > 0 )
     
BEGIN 
        
-- &#3613;รฐฃย๗ฐก พ็ผ๖, ฝรฐฃ ฟฉภฏฐก ภึดยณ๐ 
        
SELECT 1
    END 
    
ELSE 
    
BEGIN
        
-- &#3613;รฐฃย๗ฐก ภฝผ๖, ฝรฐฃ ฟฉภฏฐก พ๘ดยณ๐ 
        
SELECT 0
    END



GO 
7-create _ResetFreeAccess
PHP Code:
USE [SRO_VT_ACCOUNT]
GO

/****** Object:  StoredProcedure [dbo].[_ResetFreeAccess]    Script Date: 05/19/2012 22:06:14 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO




----------------------------------------------------------------------
-- &
#3603;ฏยฅฐก ม๖ณญ พึต้ภบ ป่มฆวุ น๖ธฐดู.
----------------------------------------------------------------------
CREATE PROCEDURE [dbo].[_ResetFreeAccess]
AS
    
DELETE FROM _FreeAccess WHERE GETDATE() > EndTime



GO 
now we finished AccountDB time for ShardDB

8-create table _FreeAccessBanlvl
PHP Code:
USE [SRO_VT_SHARD]
GO

/****** Object:  Table [dbo].[_FreeAccessBanLvl]    Script Date: 05/19/2012 22:07:30 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE 
[dbo].[_FreeAccessBanLvl](
    [
JID] [int] NOT NULL,
    [
BanLvl] [int] NOT NULL,
    [
EndTime] [datetime] NOT NULL
) ON [PRIMARY]

GO 
9-create procedure _GetAllFreeAccessBanlvl
PHP Code:
USE [SRO_VT_SHARD]
GO

/****** Object:  StoredProcedure [dbo].[_GetAllFreeAccessBanLvl]    Script Date: 05/19/2012 22:10:17 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER OFF
GO




CREATE PROCEDURE 
[dbo].[_GetAllFreeAccessBanLvl]
AS
    -- &
#3608;ีภ๚ ฑโฐฃภฬ ม๖ณญ ณัภบ ม๖ฟ๖ น๖ธฐดู!
    
DELETE FROM _FreeAccessBanLvl 
    WHERE GETDATE
() > EndTime

    
IF EXISTS (SELECT JID FROM _FreeAccessBanLvl WITH (NOLOCK))
    
BEGIN
        
-- SELECT ALL!!
        
SELECT JID, BanLvl, EndTime 
        FROM _FreeAccessBanLvl WITH 
(NOLOCK)     
    
END
    
ELSE
    
BEGIN
        
-- &#3607;นฤฺตๅฐก พ๘ดย ฐๆฟ์ ด๕นฬภป บธณปมึภฺ.
        
SELECT 0, 0, GETDATE()
    
END



GO 
10-create this function because the next stored procedure will ask for it
PHP Code:
USE [SRO_VT_SHARD]
GO

/****** Object:  UserDefinedFunction [dbo].[_DiffTime_CRTTIME_SQLTIME]    Script Date: 05/19/2012 22:13:17 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO



CREATE 
FUNCTION [dbo].[_DiffTime_CRTTIME_SQLTIME]
    (@
CRTTime INT, @SQLTime DATETIME)
RETURNS INT
AS
BEGIN
    
DECLARE @nTimeTo     INT
    
DECLARE @nTimeFrom    INT

    SET 
@nTimeTo     = 0
    SET 
@nTimeFrom    = @CRTTime

    SET 
@nTimeTo     = DATEDIFF( ss, '1970-01-01 09:00:00', @SQLTime )
/*
    DECLARE @nRemainHH    INT
    DECLARE @nRemainMM    INT
    DECLARE @nRemainSS    INT

    SET @nRemainHH     = (@nTimeTo - @nTimeFrom) / 60 / 60
    SET @nRemainMM     = (@nTimeTo - @nTimeFrom) / 60 - (@nRemainHH * 60)
    SET @nRemainSS    = (@nTimeTo - @nTimeFrom) - (@nRemainMM * 60 ) - (@nRemainHH * 60 * 60)
*/
/*
    RETURN cast( abs(@nRemainHH) as varchar(128)) + 'ฝรฐฃ'
        + cast( abs(@nRemainMM) as varchar(128)) + 'บะ'
        + cast( abs(@nRemainSS) as varchar(128)) + 'รส'
*/
    
RETURN (@nTimeFrom - @nTimeTo)
END




GO 
11- create procedure _InitializeFreeAccessBanLvl
PHP Code:
USE [SRO_VT_SHARD]
GO

/****** Object:  StoredProcedure [dbo].[_InitializeFreeAccessBanLvl]    Script Date: 05/20/2012 13:15:11 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO



CREATE proc 
[dbo].[_InitializeFreeAccessBanLvl]
as
    
delete _FreeAccessBanLvl where BanLvl in(3, 4)

    declare @
CharID        int
    
declare @Category    int
    
declare @JobID        int
    
declare @TimeToKeep    int
    
declare @Data1        int
    
declare @Data3        int
    
declare @JID        int

    
declare @Gold1D_ItemID      int
    
declare @Gold4W_ItemID      int
    
declare @Silver1D_ItemID int
    
declare @Silver4W_ItemID int

    
declare @EndDateTime    datetime

    select 
@Gold1D_ItemID = id  from _RefObjCommon with(nolock) where codename128 = 'ITEM_MALL_GOLD_TIME_SERVICE_TICKET_1D'
    
if( @@error <> 0 or @@rowcount = 0 )
    
begin
        raiserror
( '1ภฯ ฐ๑ตๅลธภำ พฦภฬลภฬ พ๘ฝภดฯดู.', 0, 1 )
        return -
1
    end

    select 
@Gold4W_ItemID = id  from _RefObjCommon with(nolock) where codename128 =  'ITEM_MALL_GOLD_TIME_SERVICE_TICKET_4W'
    
if( @@error <> 0 or @@rowcount = 0 )
    
begin
        raiserror
( '4มึ ฐ๑ตๅลธภำ พฦภฬลภฬ พ๘ฝภดฯดู.', 0, 1 )
        return -
1
    end

    select 
@Silver1D_ItemID = id  from _RefObjCommon with(nolock) where codename128 =  'ITEM_MALL_SILVER_TIME_SERVICE_TICKET_1D'
    
if( @@error <> 0 or @@rowcount = 0 )
    
begin
        raiserror
( '1ภฯ ฝวน๖ลธภำ พฦภฬลภฬ พ๘ฝภดฯดู.', 0, 1 )
        return -
1
    end

    select 
@Silver4W_ItemID = id  from _RefObjCommon with(nolock) where codename128 =  'ITEM_MALL_SILVER_TIME_SERVICE_TICKET_4W'
    
if( @@error <> 0 or @@rowcount = 0 )
    
begin
        raiserror
( '4มึ ฝวน๖ลธภำ พฦภฬลภฬ พ๘ฝภดฯดู.', 0, 1 )
        return -
1
    end

    set 
@JID = 0

    
declare @Date datetime
    
declare @DiffTime int
    set 
@Date = cast(getdate() as datetime)

    declare 
timedjob_cursor  cursor fast_forward for    
    
    -- &
#3600;๑ตๅ, ฝวน๖, วมธฎนฬพ๖ พฦภฬล
    
select max(Category), max(JobID), max(TimeToKeep), max(Data1), max( isnull(Data3, 0) ), CharID
    from _TimedJob with 
(nolock)
    
where Category = 5 or ( Category = 3 and JobID in( @Gold1D_ItemID,@Gold4W_ItemID,@Silver1D_ItemID,@Silver4W_ItemID ) )
    
group by CharID

    open timedjob_cursor

    fetch next from timedjob_cursor into 
@Category, @JobID, @TimeToKeep, @Data1, @Data3, @CharID

    
while @@fetch_status = 0
    begin    
        select 
@JID = UserJID from _User where CharID = @CharID
        
if @@rowcount = 0 or @@error <> 0
        begin
            close timedjob_cursor
            deallocate timedjob_cursor    
            Raiserror
('ฤณธฏลอฟก วุด็วฯดย ฐ่มคภฬ พ๘ณื! [%d]', 1, 16, @CharID)
            return -
1
        end

        
if( @Category = 3  )
        
begin
            
declare @ItemTotalSecond int
            
            select 
@ItemTotalSecond = param1 from _RefObjItem where id in ( select link from _RefObjCommon where id = @JobID )

            
set @TimeToKeep = @Data1 + ( @ItemTotalSecond + ( @Data3 * 86400 ) + 86400 )
        
end

        set 
@DiffTime = dbo._DiffTime_CRTTIME_SQLTIME( @TimeToKeep, @Date )
        
set @EndDateTime = DATEADD(second, @DiffTime, getdate())
        
insert into _FreeAccessBanLvl values(@JID,  4, @EndDateTime)

        
fetch next from timedjob_cursor into @Category, @JobID, @TimeToKeep, @Data1, @Data3, @CharID
    end

    close timedjob_cursor
    deallocate timedjob_cursor    






GO 
12-create procedure _InsertFreeAccessBanLvl_CashItemUsed and watch out from it because it link ShardDB with AccountDB
PHP Code:
USE [SRO_VT_SHARD]
GO

/****** Object:  StoredProcedure [dbo].[_InsertFreeAccessBanLvl_CashItemUsed]    Script Date: 05/19/2012 22:16:01 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO





CREATE PROCEDURE 
[dbo].[_InsertFreeAccessBanLvl_CashItemUsed]
    @
JID        INT,
    @
BanLevel    INT,
    @
ValidityTerm    INT,
    @
ShardID    INT    
AS
    DECLARE @
EndDate DATETIME
    SET 
@EndDate = DATEADD(second, @ValidityTerm, GETDATE())

    -- &
#3616;ฯน ฑโฐฃมฆ พฦภฬลภว ป็ฟ๋ภบ วุด็ ฤณธฏลอทฮ ฑนวัตศดู.
    
INSERT INTO _FreeAccessBanLvl VALUES (@JID, @BanLevel, @EndDate)

-----------------------------------------------------------------------------------------------------------------------
    --[ 
Start !!! ] 2009.05.12. FREE_ACCESS &#3600;ณผฑ by ta4rom
-----------------------------------------------------------------------------------------------------------------------
    --
AccountDB &#3617;ขผำ มคบธฟอ ตฅภฬลอบฃภฬฝบภฬธงภบ ม๗มข วฯตๅ ฤฺต๙ตวพ๎มฎ ภึดู. กฺ บฮบะ ศฎภฮ 

    
IF @BanLevel = 4 
    BEGIN    
-- &#3609;ทนบง 4ภฯ ฐๆฟ์ฟกธธ, AcountDB ฟก วุด็ มคบธธฆ ณฒฑไดู. 
        
INSERT INTO SRO_VT_ACCOUNT.dbo._FreeAccess VALUES (@JID, @EndDate, @ShardID )
        -- &
#3585;ฺ _Account_For_SMC ภว Account DB ตฅภฬลอบฃภฬฝบธํภธทฮ พหธยฐิ ผ๖มค 
    
END 

-----------------------------------------------------------------------------------------------------------------------
    --[ 
End !!! ] 2009.05.12. FREE_ACCESS &#3600;ณผฑ by ta4rom
-----------------------------------------------------------------------------------------------------------------------
        
    -- &
#3611;ตๅธลดฯภ๚ฟกฐิ พหทมมึฑโ ภงวุ ภฬ มภป วัดู. -_-
    
SELECT @JID, @BanLevel, @EndDate

GO 
look at that
PHP Code:
INSERT INTO SRO_VT_ACCOUNT.dbo._FreeAccess VALUES (@JID, @EndDate, 
so basically if you're useing the same names of DBs then just execute without edit and if it's not then change SRO_VT_ACCOUNT to w/e

13-create procedure _InsertFreeAccessBanLvl_SilkPurchased
PHP Code:
USE [SRO_VT_SHARD]
GO

/****** Object:  StoredProcedure [dbo].[_InsertFreeAccessBanLvl_SilkPurchased]    Script Date: 05/19/2012 22:19:35 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER OFF
GO



CREATE PROCEDURE 
[dbo].[_InsertFreeAccessBanLvl_SilkPurchased]
    @
JID        INT
AS
    DECLARE @
EndDate DATETIME
    SET 
@EndDate = DATEADD(dd, 30, GETDATE())

    
INSERT INTO _FreeAccessBanLvl VALUES (@JID, 1, @EndDate)

    -- &
#3611;ตๅธลดฯภ๚ฟกฐิ พหทมมึฑโ ภงวุ ภฬ มภป วัดู. -_-
    
SELECT @JID, 1, @EndDate



GO 
okay that's SQL side now server side and the easy part you will just need to add 2 parameters to server.cfg under Sr_ShardManager
PHP Code:
        EnablePremiumFreeAccess                1
        BanUselessUserWhenFreeAccess            1 
it's not recommended to set BanUselessUserWhenFreeAccess to 0 cause it may make flood when your server get crowded
okay you must download the GW too from Chrenobyl's thread and if you got problem with download server you can replace with BR's one it works too

Credit goes to : SnapPop
•ᵔBeGodOfWarᵔ• is offline  
Thanks
1 User
Old   #2



 
Disco Teka's Avatar
 
elite*gold: 325
Join Date: Dec 2008
Posts: 14,546
Received Thanks: 8,721
#approved
Disco Teka is offline  
Old   #3
 
IceAmStiel's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 1,058
Received Thanks: 1,118
You're not respecting others requests - that's extraordinarily disgraceful ;|

Right from RZ:
IceAmStiel is offline  
Thanks
6 Users
Old   #4
 
SnapPop's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 113
Received Thanks: 60
well i'm not gonna insult or even say anything after what you said Caipi
and the picture says everything
i'm just laughing when i read that "today i'm gonna share the leaked version of new sql revolution"
#ban my ID after this post it's not honor to stay here anymore
SnapPop is offline  
Thanks
5 Users
Old   #5
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,867
Received Thanks: 1,091
I've gave the credits guys ;( what the hell happen here?:S
•ᵔBeGodOfWarᵔ• is offline  
Old   #6
 
badibatu22's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 594
Received Thanks: 358
Quote:
Originally Posted by •ᵔBeGodOfWarᵔ• View Post
I've gave the credits guys ;( what the hell happen here?:S
you didnt understand and you will never , moron.
badibatu22 is offline  
Thanks
3 Users
Old   #7
 
elite*gold: 505
Join Date: Nov 2008
Posts: 600
Received Thanks: 522
Won't work with VSRO Shard.
pH33n1x<3 is offline  
Old   #8
 
ILowe's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 679
Received Thanks: 29
offline br gateway vsro fıles
ILowe is offline  
Old   #9
 
elite*gold: 0
Join Date: Aug 2010
Posts: 93
Received Thanks: 16
didn`t work !!
solomm is offline  
Reply


Similar Threads Similar Threads
DDMLV Sro 110 Cap/Vsro Files/10000 Free Silk dedicated #Party System !!!!
01/08/2013 - SRO PServer Advertising - 210 Replies
*****



All times are GMT +1. The time now is 02:10.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.