decomp DBCServer_Release and inspect/document database

This commit is contained in:
Benjamin Palko 2026-10-14 23:22:03 -04:00
parent 4b267cbe05
commit 7834b98bf0
28222 changed files with 843300 additions and 144 deletions

View file

@ -0,0 +1,106 @@
table column_id column type max_length precision scale is_nullable is_identity default
dbo.AgentAccount 1 Account nvarchar 32 0 0 0 0
dbo.AgentAccount 2 Password nvarchar 64 0 0 0 0
dbo.AgentAccount 3 Permission int 4 10 0 0 0 ((0))
dbo.AuthTable 1 WindyCode nvarchar 100 0 0 0 0 ('00-00-00-00-00-00')
dbo.AuthTable 2 world_id smallint 2 5 0 1 0
dbo.AuthTable 3 AuthID uniqueidentifier 16 0 0 0 0
dbo.AuthTable 4 Tcount int 4 10 0 0 0
dbo.AuthTable 5 online char 1 0 0 0 0
dbo.AuthTable 6 CTime datetime 8 23 3 0 0
dbo.AuthTable 7 BTime datetime 8 23 3 0 0
dbo.AuthTable 8 LTime datetime 8 23 3 0 0
dbo.AuthTable 9 IP varchar 16 0 0 0 0
dbo.AuthTable 10 LCount bigint 8 19 0 0 0
dbo.AuthTable 11 ServerIP varchar 16 0 0 1 0
dbo.AuthTable 12 ServerType char 1 0 0 1 0
dbo.AuthTable 13 HostID int 4 10 0 1 0
dbo.AuthTable 14 DBCIndex smallint 2 5 0 0 0 ((-1))
dbo.AuthTable 15 InquiryCount tinyint 1 3 0 0 0 ((0))
dbo.AuthTable 16 event_inquiry tinyint 1 3 0 0 0 ((0))
dbo.AuthTable 17 CashMileage int 4 10 0 0 0 ((0))
dbo.AuthTable 18 channelling int 4 10 0 0 0 ((1))
dbo.AuthTable 19 pc_room_point int 4 10 0 0 0
dbo.AuthTable 20 externcash int 4 10 0 0 0 ((0))
dbo.AuthTable 21 mac_addr char 18 0 0 0 0 ('00-00-00-00-00-00')
dbo.AuthTable 22 mac_addr02 char 18 0 0 0 0 ('00-00-00-00-00-00')
dbo.AuthTable 23 mac_addr03 char 18 0 0 0 0 ('00-00-00-00-00-00')
dbo.AuthTable 24 second_pass varchar 32 0 0 0 0 ('')
dbo.BlackListTable 1 IP nvarchar 30 0 0 0 0 ('')
dbo.BlackListTable 2 State bigint 8 19 0 0 0 ((0))
dbo.BlackListTable 3 Cause nvarchar 100 0 0 0 0 ('')
dbo.BlackListTable 4 GmID nvarchar 30 0 0 0 0 ('')
dbo.BlackListTable 5 Type smallint 2 5 0 0 0 ((0))
dbo.BlackListTable 6 Use tinyint 1 3 0 0 0 ((0))
dbo.ChannelOption 1 ID int 4 10 0 0 1
dbo.ChannelOption 2 Code int 4 10 0 0 0
dbo.ChannelOption 3 CH_Group tinyint 1 3 0 0 0
dbo.ChannelOption 4 CH_Type tinyint 1 3 0 0 0
dbo.ChannelOption 5 MinLevel tinyint 1 3 0 0 0
dbo.ChannelOption 6 MaxLevel tinyint 1 3 0 0 0
dbo.ChannelOption 7 CH_NUM int 4 10 0 0 0
dbo.ChannelOption 8 WorldID int 4 10 0 0 0
dbo.ChannelSeed 1 ID int 4 10 0 0 1
dbo.ChannelSeed 2 CH_Group tinyint 1 3 0 0 0 ((1))
dbo.ChannelSeed 3 CH_Type tinyint 1 3 0 0 0 ((1))
dbo.ChannelSeed 4 MinLevel tinyint 1 3 0 0 0 ((1))
dbo.ChannelSeed 5 MaxLevel tinyint 1 3 0 0 0 ((1))
dbo.ChannelSeed 6 Current_Num int 4 10 0 0 0 ((1))
dbo.ChannelSeed 7 WorldID int 4 10 0 0 0 ((1))
dbo.ChannelSeed 8 Last_Seed tinyint 1 3 0 0 0 ((0))
dbo.GlobalVariableTable 1 VarName varchar 16 0 0 0 0
dbo.GlobalVariableTable 2 Value bigint 8 19 0 0 0
dbo.GMInfoTable 1 gm_id int 4 10 0 0 0
dbo.GMInfoTable 2 name nvarchar 32 0 0 0 0
dbo.GMInfoTable 3 pass nvarchar 32 0 0 0 0
dbo.GMInfoTable 4 permission int 4 10 0 0 0
dbo.GMInfoTable 5 logout_time datetime 8 23 3 0 0
dbo.InquiryTable 1 inquiry_id bigint 8 19 0 0 1
dbo.InquiryTable 2 auth_id uniqueidentifier 16 0 0 0 0
dbo.InquiryTable 3 character_id uniqueidentifier 16 0 0 0 0
dbo.InquiryTable 4 type tinyint 1 3 0 0 0 ((0))
dbo.InquiryTable 5 character_name nvarchar 32 0 0 0 0 ('')
dbo.InquiryTable 6 bcust_id nvarchar 100 0 0 0 0 ('')
dbo.InquiryTable 7 count tinyint 1 3 0 0 0 ((0))
dbo.InquiryTable 8 memo nvarchar 510 0 0 0 0
dbo.InquiryTable 9 compulsion tinyint 1 3 0 0 0 ((0))
dbo.InquiryTable 10 date datetime 8 23 3 0 0
dbo.PCRoom 1 szIP varchar 15 0 0 0 0
dbo.PCRoom 2 szName nvarchar 64 0 0 0 0
dbo.PCRoom 3 Premium int 4 10 0 0 0
dbo.PCRoom 4 expireDate datetime 8 23 3 0 0
dbo.PCRoom 5 Use tinyint 1 3 0 0 0 ((0))
dbo.RealTimeEventTable 1 id int 4 10 0 0 0 ((0))
dbo.RealTimeEventTable 2 value int 4 10 0 0 0 ((0))
dbo.RealTimeEventTable 3 information varchar 128 0 0 0 0 ('')
dbo.ServerFile 1 type tinyint 1 3 0 0 0 ((0))
dbo.ServerFile 2 filename nchar 128 0 0 0 0
dbo.ServerOption 1 World int 4 10 0 0 0 ((0))
dbo.ServerOption 2 AgentCode int 4 10 0 0 0 ((0))
dbo.ServerOption 3 Code int 4 10 0 0 0 ((0))
dbo.ServerOption 4 Type int 4 10 0 0 0 ((0))
dbo.ServerOption 5 PrivateAddress nvarchar 512 0 0 0 0 ('')
dbo.ServerOption 6 PrivatePort int 4 10 0 0 0 ((0))
dbo.ServerOption 7 PublicAddress nvarchar 512 0 0 0 0 ('')
dbo.ServerOption 8 PublicPort int 4 10 0 0 0 ((0))
dbo.ServerOption 9 UdpPort int 4 10 0 0 0 ((0))
dbo.ServerOption 10 UdpCount int 4 10 0 0 0 ((0))
dbo.ServerOption 11 SessionCount int 4 10 0 0 0 ((1))
dbo.ServerOption 12 TypeMemo varchar 16 0 0 0 0 ('')
dbo.ServerOption 13 Useable nchar 2 0 0 0 0
dbo.ServerOptionDNS 1 World int 4 10 0 0 0 ((0))
dbo.ServerOptionDNS 2 AgentCode int 4 10 0 0 0 ((0))
dbo.ServerOptionDNS 3 Code int 4 10 0 0 0 ((0))
dbo.ServerOptionDNS 4 Type int 4 10 0 0 0 ((0))
dbo.ServerOptionDNS 5 PrivateDNS nvarchar 512 0 0 0 0 ('')
dbo.ServerOptionDNS 6 PrivatePort int 4 10 0 0 0 ((0))
dbo.ServerOptionDNS 7 PublicDNS nvarchar 512 0 0 0 0 ('')
dbo.ServerOptionDNS 8 PublicPort int 4 10 0 0 0 ((0))
dbo.ServerOptionDNS 9 UdpPort int 4 10 0 0 0 ((0))
dbo.ServerOptionDNS 10 UdpCount int 4 10 0 0 0 ((0))
dbo.ServerOptionDNS 11 SessionCount int 4 10 0 0 0 ((1))
dbo.ServerOptionDNS 12 TypeMemo varchar 16 0 0 0 0 ('')
dbo.ServerOptionDNS 13 Use nchar 2 0 0 0 0
dbo.WorldServer 1 World int 4 10 0 0 0
dbo.WorldServer 2 Name nvarchar 100 0 0 0 0
dbo.WorldServer 3 UseAble nchar 2 0 0 0 0
1 table column_id column type max_length precision scale is_nullable is_identity default
2 dbo.AgentAccount 1 Account nvarchar 32 0 0 0 0
3 dbo.AgentAccount 2 Password nvarchar 64 0 0 0 0
4 dbo.AgentAccount 3 Permission int 4 10 0 0 0 ((0))
5 dbo.AuthTable 1 WindyCode nvarchar 100 0 0 0 0 ('00-00-00-00-00-00')
6 dbo.AuthTable 2 world_id smallint 2 5 0 1 0
7 dbo.AuthTable 3 AuthID uniqueidentifier 16 0 0 0 0
8 dbo.AuthTable 4 Tcount int 4 10 0 0 0
9 dbo.AuthTable 5 online char 1 0 0 0 0
10 dbo.AuthTable 6 CTime datetime 8 23 3 0 0
11 dbo.AuthTable 7 BTime datetime 8 23 3 0 0
12 dbo.AuthTable 8 LTime datetime 8 23 3 0 0
13 dbo.AuthTable 9 IP varchar 16 0 0 0 0
14 dbo.AuthTable 10 LCount bigint 8 19 0 0 0
15 dbo.AuthTable 11 ServerIP varchar 16 0 0 1 0
16 dbo.AuthTable 12 ServerType char 1 0 0 1 0
17 dbo.AuthTable 13 HostID int 4 10 0 1 0
18 dbo.AuthTable 14 DBCIndex smallint 2 5 0 0 0 ((-1))
19 dbo.AuthTable 15 InquiryCount tinyint 1 3 0 0 0 ((0))
20 dbo.AuthTable 16 event_inquiry tinyint 1 3 0 0 0 ((0))
21 dbo.AuthTable 17 CashMileage int 4 10 0 0 0 ((0))
22 dbo.AuthTable 18 channelling int 4 10 0 0 0 ((1))
23 dbo.AuthTable 19 pc_room_point int 4 10 0 0 0
24 dbo.AuthTable 20 externcash int 4 10 0 0 0 ((0))
25 dbo.AuthTable 21 mac_addr char 18 0 0 0 0 ('00-00-00-00-00-00')
26 dbo.AuthTable 22 mac_addr02 char 18 0 0 0 0 ('00-00-00-00-00-00')
27 dbo.AuthTable 23 mac_addr03 char 18 0 0 0 0 ('00-00-00-00-00-00')
28 dbo.AuthTable 24 second_pass varchar 32 0 0 0 0 ('')
29 dbo.BlackListTable 1 IP nvarchar 30 0 0 0 0 ('')
30 dbo.BlackListTable 2 State bigint 8 19 0 0 0 ((0))
31 dbo.BlackListTable 3 Cause nvarchar 100 0 0 0 0 ('')
32 dbo.BlackListTable 4 GmID nvarchar 30 0 0 0 0 ('')
33 dbo.BlackListTable 5 Type smallint 2 5 0 0 0 ((0))
34 dbo.BlackListTable 6 Use tinyint 1 3 0 0 0 ((0))
35 dbo.ChannelOption 1 ID int 4 10 0 0 1
36 dbo.ChannelOption 2 Code int 4 10 0 0 0
37 dbo.ChannelOption 3 CH_Group tinyint 1 3 0 0 0
38 dbo.ChannelOption 4 CH_Type tinyint 1 3 0 0 0
39 dbo.ChannelOption 5 MinLevel tinyint 1 3 0 0 0
40 dbo.ChannelOption 6 MaxLevel tinyint 1 3 0 0 0
41 dbo.ChannelOption 7 CH_NUM int 4 10 0 0 0
42 dbo.ChannelOption 8 WorldID int 4 10 0 0 0
43 dbo.ChannelSeed 1 ID int 4 10 0 0 1
44 dbo.ChannelSeed 2 CH_Group tinyint 1 3 0 0 0 ((1))
45 dbo.ChannelSeed 3 CH_Type tinyint 1 3 0 0 0 ((1))
46 dbo.ChannelSeed 4 MinLevel tinyint 1 3 0 0 0 ((1))
47 dbo.ChannelSeed 5 MaxLevel tinyint 1 3 0 0 0 ((1))
48 dbo.ChannelSeed 6 Current_Num int 4 10 0 0 0 ((1))
49 dbo.ChannelSeed 7 WorldID int 4 10 0 0 0 ((1))
50 dbo.ChannelSeed 8 Last_Seed tinyint 1 3 0 0 0 ((0))
51 dbo.GlobalVariableTable 1 VarName varchar 16 0 0 0 0
52 dbo.GlobalVariableTable 2 Value bigint 8 19 0 0 0
53 dbo.GMInfoTable 1 gm_id int 4 10 0 0 0
54 dbo.GMInfoTable 2 name nvarchar 32 0 0 0 0
55 dbo.GMInfoTable 3 pass nvarchar 32 0 0 0 0
56 dbo.GMInfoTable 4 permission int 4 10 0 0 0
57 dbo.GMInfoTable 5 logout_time datetime 8 23 3 0 0
58 dbo.InquiryTable 1 inquiry_id bigint 8 19 0 0 1
59 dbo.InquiryTable 2 auth_id uniqueidentifier 16 0 0 0 0
60 dbo.InquiryTable 3 character_id uniqueidentifier 16 0 0 0 0
61 dbo.InquiryTable 4 type tinyint 1 3 0 0 0 ((0))
62 dbo.InquiryTable 5 character_name nvarchar 32 0 0 0 0 ('')
63 dbo.InquiryTable 6 bcust_id nvarchar 100 0 0 0 0 ('')
64 dbo.InquiryTable 7 count tinyint 1 3 0 0 0 ((0))
65 dbo.InquiryTable 8 memo nvarchar 510 0 0 0 0
66 dbo.InquiryTable 9 compulsion tinyint 1 3 0 0 0 ((0))
67 dbo.InquiryTable 10 date datetime 8 23 3 0 0
68 dbo.PCRoom 1 szIP varchar 15 0 0 0 0
69 dbo.PCRoom 2 szName nvarchar 64 0 0 0 0
70 dbo.PCRoom 3 Premium int 4 10 0 0 0
71 dbo.PCRoom 4 expireDate datetime 8 23 3 0 0
72 dbo.PCRoom 5 Use tinyint 1 3 0 0 0 ((0))
73 dbo.RealTimeEventTable 1 id int 4 10 0 0 0 ((0))
74 dbo.RealTimeEventTable 2 value int 4 10 0 0 0 ((0))
75 dbo.RealTimeEventTable 3 information varchar 128 0 0 0 0 ('')
76 dbo.ServerFile 1 type tinyint 1 3 0 0 0 ((0))
77 dbo.ServerFile 2 filename nchar 128 0 0 0 0
78 dbo.ServerOption 1 World int 4 10 0 0 0 ((0))
79 dbo.ServerOption 2 AgentCode int 4 10 0 0 0 ((0))
80 dbo.ServerOption 3 Code int 4 10 0 0 0 ((0))
81 dbo.ServerOption 4 Type int 4 10 0 0 0 ((0))
82 dbo.ServerOption 5 PrivateAddress nvarchar 512 0 0 0 0 ('')
83 dbo.ServerOption 6 PrivatePort int 4 10 0 0 0 ((0))
84 dbo.ServerOption 7 PublicAddress nvarchar 512 0 0 0 0 ('')
85 dbo.ServerOption 8 PublicPort int 4 10 0 0 0 ((0))
86 dbo.ServerOption 9 UdpPort int 4 10 0 0 0 ((0))
87 dbo.ServerOption 10 UdpCount int 4 10 0 0 0 ((0))
88 dbo.ServerOption 11 SessionCount int 4 10 0 0 0 ((1))
89 dbo.ServerOption 12 TypeMemo varchar 16 0 0 0 0 ('')
90 dbo.ServerOption 13 Useable nchar 2 0 0 0 0
91 dbo.ServerOptionDNS 1 World int 4 10 0 0 0 ((0))
92 dbo.ServerOptionDNS 2 AgentCode int 4 10 0 0 0 ((0))
93 dbo.ServerOptionDNS 3 Code int 4 10 0 0 0 ((0))
94 dbo.ServerOptionDNS 4 Type int 4 10 0 0 0 ((0))
95 dbo.ServerOptionDNS 5 PrivateDNS nvarchar 512 0 0 0 0 ('')
96 dbo.ServerOptionDNS 6 PrivatePort int 4 10 0 0 0 ((0))
97 dbo.ServerOptionDNS 7 PublicDNS nvarchar 512 0 0 0 0 ('')
98 dbo.ServerOptionDNS 8 PublicPort int 4 10 0 0 0 ((0))
99 dbo.ServerOptionDNS 9 UdpPort int 4 10 0 0 0 ((0))
100 dbo.ServerOptionDNS 10 UdpCount int 4 10 0 0 0 ((0))
101 dbo.ServerOptionDNS 11 SessionCount int 4 10 0 0 0 ((1))
102 dbo.ServerOptionDNS 12 TypeMemo varchar 16 0 0 0 0 ('')
103 dbo.ServerOptionDNS 13 Use nchar 2 0 0 0 0
104 dbo.WorldServer 1 World int 4 10 0 0 0
105 dbo.WorldServer 2 Name nvarchar 100 0 0 0 0
106 dbo.WorldServer 3 UseAble nchar 2 0 0 0 0

View file

@ -0,0 +1,2 @@
up_set_second_pass
up_update_inquiry_count

View file

@ -0,0 +1 @@
child child_col parent parent_col
1 child child_col parent parent_col

View file

@ -0,0 +1,13 @@
table index type_desc is_primary_key is_unique col key_ordinal
AgentAccount PK_AgentAccount CLUSTERED 1 1 Account 1
AuthTable PK__AuthTable__7E6CC920 CLUSTERED 1 1 WindyCode 1
BlackListTable PK_BlackListTable CLUSTERED 1 1 IP 1
ChannelSeed PK__ChannelS__3214EC274EB8B219 CLUSTERED 1 1 ID 1
GlobalVariableTable PK__GlobalVa__0974A529CE853417 CLUSTERED 1 1 VarName 1
GMInfoTable PK__GMInfoTa__49B921C169C4AF97 CLUSTERED 1 1 gm_id 1
GMInfoTable UQ__GMInfoTa__72E12F1B00AF7602 NONCLUSTERED 0 1 name 1
GMInfoTable UQ__GMInfoTa__72E12F1B097FF3BC NONCLUSTERED 0 1 name 1
InquiryTable PK_InquiryTable CLUSTERED 1 1 inquiry_id 1
ServerFile PK__ServerFi__E3F85249E772E171 CLUSTERED 1 1 type 1
ServerOption PK__ServerOp__A25C5AA6F3718EFF CLUSTERED 1 1 Code 1
ServerOptionDNS PK_ServerOption CLUSTERED 1 1 Code 1
1 table index type_desc is_primary_key is_unique col key_ordinal
2 AgentAccount PK_AgentAccount CLUSTERED 1 1 Account 1
3 AuthTable PK__AuthTable__7E6CC920 CLUSTERED 1 1 WindyCode 1
4 BlackListTable PK_BlackListTable CLUSTERED 1 1 IP 1
5 ChannelSeed PK__ChannelS__3214EC274EB8B219 CLUSTERED 1 1 ID 1
6 GlobalVariableTable PK__GlobalVa__0974A529CE853417 CLUSTERED 1 1 VarName 1
7 GMInfoTable PK__GMInfoTa__49B921C169C4AF97 CLUSTERED 1 1 gm_id 1
8 GMInfoTable UQ__GMInfoTa__72E12F1B00AF7602 NONCLUSTERED 0 1 name 1
9 GMInfoTable UQ__GMInfoTa__72E12F1B097FF3BC NONCLUSTERED 0 1 name 1
10 InquiryTable PK_InquiryTable CLUSTERED 1 1 inquiry_id 1
11 ServerFile PK__ServerFi__E3F85249E772E171 CLUSTERED 1 1 type 1
12 ServerOption PK__ServerOp__A25C5AA6F3718EFF CLUSTERED 1 1 Code 1
13 ServerOptionDNS PK_ServerOption CLUSTERED 1 1 Code 1

View file

@ -0,0 +1,12 @@
CREATE procedure [dbo].[up_add_inquiry_count]
@auth_id uniqueidentifier
as
set nocount on
declare @inquiry_count tinyint;
select @inquiry_count = [InquiryCount] from [AuthTable] with (READUNCOMMITTED) where [AuthID] = @auth_id;
UPDATE [AuthTable] SET [InquiryCount] = @inquiry_count + 1 WHERE [AuthID] = @auth_id;
return @@error

View file

@ -0,0 +1,75 @@
CREATE procedure [dbo].[up_ado_data_mapping]
@bcust_id nvarchar(50),
@UUID uniqueidentifier,
@OnLine tinyint,
@ServerID smallint,
@ChannelID int,
@CharExp bigint,
@CharName nvarchar(16),
@IP nchar(16),
@fValue float,
@btValue tinyint,
@bGift bit,
@dDouble datetime,
@CharClass int
as
BEGIN
set nocount on
-- create table TTMapping (
-- @bcust_id nvarchar(50),
-- UUID uniqueidentifier,
-- OnLine tinyint,
-- ServerID smallint,
-- ChannelID int,
-- CharExp bigint,
-- CharName nvarchar(16),
-- IP nchar(16),
-- fValue float,
-- btValue tinyint,
-- bGift bit,
-- dDouble datetime,
-- CharClass int
-- )
INSERT INTO dbo.TTMapping (
windy_code,
UUID ,
OnLine ,
ServerID,
ChannelID,
CharExp ,
CharName,
IP ,
fValue ,
btValue ,
bGift ,
dDouble ,
CharClass
)
--
VALUES (
@bcust_id ,
@UUID ,
@OnLine ,
@ServerID ,
@ChannelID ,
@CharExp ,
@CharName ,
@IP ,
@fValue ,
@btValue ,
@bGift ,
@dDouble ,
@CharClass
--
)
select * from dbo.TTMapping
END

View file

@ -0,0 +1,13 @@
CREATE procedure [dbo].[up_auth_agentaccount]
@Account nvarchar(16),
@Password nvarchar(32)
as
BEGIN
set nocount on
set transaction isolation level read uncommitted
select permission from dbo.AgentAccount where [Account] = @Account and [Password] = @Password
return @@error
END

View file

@ -0,0 +1,11 @@
create procedure [dbo].[up_change_world]
@old_world_id int,
@new_world_id int
as
set nocount on
begin
UPDATE [dbo].[AuthTable] SET [world_id] = @new_world_id where [world_id] = @old_world_id
end
return @@error

View file

@ -0,0 +1,9 @@
CREATE procedure [dbo].[up_delete_inquiry]
@character_id uniqueidentifier
as
set nocount on
delete from [dbo].[InquiryTable] where [character_id] = @character_id
return @@error

View file

@ -0,0 +1,37 @@
CREATE procedure [dbo].[up_get_auth_id]
@bcust_id nvarchar(50),
@UUID uniqueidentifier,
@channelling int,
@mac_addr char(17),
@mac_addr02 char(17),
@mac_addr03 char(17)
as
set nocount on
declare @login_count bigint
set @login_count = -1
if exists (select AuthID from AuthTable with (nolock) where WindyCode = @bcust_id)
begin
select @login_count = [LCount] from AuthTable with (nolock) where WindyCode = @bcust_id
select AuthID, online, DBCIndex, InquiryCount, CashMileage, [pc_room_point] from AuthTable with (nolock) where WindyCode = @bcust_id
--Online Login Count
update AuthTable set [online] = '1', [LCount] = @login_count+1, ServerType = 'G', ServerIP=0, HostID=0, mac_addr=@mac_addr, mac_addr02=@mac_addr02, mac_addr03=@mac_addr03 from AuthTable where WindyCode = @bcust_id
return;
end
declare @LastAuthID bigint;
select @LastAuthID = [Value] from GlobalVariableTable with (nolock) where VarName = 'LastAuthID'
update GlobalVariableTable set [Value] = @LastAuthID+1 where VarName = 'LastAuthID'
insert into AuthTable
values( @bcust_id, 0, @UUID, @LastAuthID, '1', GetDate(), GetDate(), GetDate(), 0, 1, 0, 'G', 0, -1, 5, 0, 0, @channelling, 0, 0, @mac_addr, @mac_addr02, @mac_addr03, '' )
select AuthID, online, DBCIndex, InquiryCount, CashMileage, [pc_room_point] from AuthTable with (nolock) where WindyCode = @bcust_id
return @@error

View file

@ -0,0 +1,19 @@
CREATE PROCEDURE [dbo].[up_get_pcroominfo]
(
@szIP nvarchar(24)
)
as
begin
set nocount on
--declare @sql nvarchar(1000)
--set @sql= 'select * from openquery(PcRoom, '
-- + '''select Level from tbCustomerIP
-- where IP = '''''
-- + @szIP + ''''' '')'
--exec(@sql)
--select InquiryCount as [Level] from AuthTable where IP = @szIP
select 0 as [Level]
end

View file

@ -0,0 +1,15 @@
CREATE procedure [dbo].[up_get_second_pass]
@bcust_id nvarchar(50)
as
set nocount on
if exists (select AuthID from AuthTable with (nolock) where WindyCode = @bcust_id)
begin
select second_pass from AuthTable with (nolock) where WindyCode = @bcust_id
return;
end
select '';
return @@error

View file

@ -0,0 +1,14 @@
CREATE procedure [dbo].[up_gm_add]
@account nvarchar(16),
@pass nvarchar(16)
as
set nocount on
declare @LastGMID bigint;
select @LastGMID = [Value] from GlobalVariableTable with (nolock) where VarName = 'LastGMID'
update GlobalVariableTable set [Value] = @LastGMID+1 where VarName = 'LastGMID'
insert into GMInfoTable values ( @LastGMID, @account , @pass, 100, GETDATE() )
return @@error

View file

@ -0,0 +1,10 @@
create procedure [dbo].[up_gm_change_pass]
@gm_id int,
@pass nvarchar(16)
as
set nocount on
UPDATE [dbo].[GMInfoTable] SET [pass] = @pass WHERE [gm_id] = @gm_id
return @@error

View file

@ -0,0 +1,9 @@
create procedure [dbo].[up_gm_del]
@account nvarchar(16)
as
set nocount on
DELETE FROM [dbo].[GMInfoTable] WHERE name = @account
return @@error

View file

@ -0,0 +1,12 @@
CREATE procedure [dbo].[up_gm_login]
@account nvarchar(16),
@pass nvarchar(16)
as
set nocount on
set transaction isolation level read uncommitted
select gm_id, [name], permission from GMInfoTable where [name] = @account and [pass] = @pass
return @@error

View file

@ -0,0 +1,26 @@
CREATE procedure [dbo].[up_init_auth]
as
set nocount on
INSERT INTO [dbo].[GlobalVariableTable] ([VarName] ,[Value]) VALUES ('LastAuthID' ,1)
INSERT INTO [dbo].[GlobalVariableTable] ([VarName] ,[Value]) VALUES ('LastGMID' ,1)
INSERT INTO [dbo].[ServerFile] ([type] ,[filename]) VALUES ( 1 ,'GameServer_Release_CHN_x64.exe' )
INSERT INTO [dbo].[ServerFile] ([type] ,[filename]) VALUES ( 2 ,'DungeonServer_Release_CHN_x64.exe' )
INSERT INTO [dbo].[ServerFile] ([type] ,[filename]) VALUES ( 3 ,'PVPServer_Release_CHN_x64.exe' )
INSERT INTO [dbo].[ServerFile] ([type] ,[filename]) VALUES ( 5 ,'GuildServer_Release_CHN_x64.exe' )
INSERT INTO [dbo].[ServerFile] ([type] ,[filename]) VALUES ( 6 ,'MessageServer_Release_x64.exe' )
INSERT INTO [dbo].[ServerFile] ([type] ,[filename]) VALUES ( 7 ,'GMServer_Release_x64.exe' )
INSERT INTO [dbo].[ServerFile] ([type] ,[filename]) VALUES ( 8 ,'GameGatewayServer_Release_x64.exe' )
INSERT INTO [dbo].[ServerFile] ([type] ,[filename]) VALUES ( 9 ,'ManagerServer_Release_CHN_x64.exe' )
INSERT INTO [dbo].[ServerFile] ([type] ,[filename]) VALUES ( 10 ,'AuctionServer_Release_CHN_x64.exe' )
INSERT INTO [dbo].[ServerFile] ([type] ,[filename]) VALUES ( 11 ,'MatchServer_Release_CHN_x64.exe' )
INSERT INTO [dbo].[ServerFile] ([type] ,[filename]) VALUES ( 12 ,'DBCServer_Release_x64.exe' )
INSERT INTO [dbo].[ServerFile] ([type] ,[filename]) VALUES ( 13 ,'Agent_Release_x64.exe' )
INSERT INTO [dbo].[ServerFile] ([type] ,[filename]) VALUES ( 17 ,'DBCServer_Release_x64.exe' )
INSERT INTO [dbo].[ServerFile] ([type] ,[filename]) VALUES ( 18 ,'DBCServer_Release_x64.exe' )
INSERT INTO [dbo].[ServerFile] ([type] ,[filename]) VALUES ( 19 ,'DBCServer_Release_x64.exe' )
INSERT INTO [dbo].[ServerFile] ([type] ,[filename]) VALUES ( 21 ,'AgentManager_Release_x64.exe' )
INSERT INTO [dbo].[ServerFile] ([type] ,[filename]) VALUES ( 24 ,'PatchServer_Release_x64.exe' )

View file

@ -0,0 +1,34 @@
CREATE procedure [dbo].[up_init_auth_link]
@db_src nvarchar(32),
@db_account nvarchar(32),
@db_pass nvarchar(32)
as
set nocount on
--링크드 서버 설정
--서버등록
EXEC sp_addlinkedserver
@server='RustyHeartsLinkAuth', -- 링크드서버이름, 기본값없음
@srvproduct = '', -- OLEDB 데이터원본제품이름, 기본값NULL
@provider = 'SQLOLEDB', -- 공급자고유식별자
@datasrc = @db_src, -- 데이터원본이름
@provstr='', -- OLEDB 공급자연결문자열, 기본값NULL
@catalog='RustyHearts_Auth' -- 공급자연결카다로그, 데이터베이스이름
--서버등록확인
SELECT * FROM master.dbo.sysservers
--연결계정등록
EXEC sp_addlinkedsrvlogin
@rmtsrvname = 'RustyHeartsLinkAuth', -- 링크드서버이름, 기본값없음
@useself = 'false', -- 로그인이름사용유무, 기본값true
@locallogin = NULL, -- 로컬서버로그인여부, 기본값NULL
@rmtuser = @db_account, -- 사용자이름
@rmtpassword = @db_pass -- 사용자암호
EXEC SP_SERVEROPTION [RustyHeartsLinkAuth], 'RPC OUT' , 'TRUE'

View file

@ -0,0 +1,37 @@
create procedure [dbo].[up_init_log_link]
@db_src nvarchar(32),
@db_account nvarchar(32),
@db_pass nvarchar(32)
as
set nocount on
--링크드 서버 설정
--서버등록
EXEC sp_addlinkedserver
@server='RustyHearts_LogDB', -- 링크드서버이름, 기본값없음
@srvproduct = '', -- OLEDB 데이터원본제품이름, 기본값NULL
@provider = 'SQLOLEDB', -- 공급자고유식별자
@datasrc = @db_src, -- 데이터원본이름
@provstr='', -- OLEDB 공급자연결문자열, 기본값NULL
@catalog='RustyHearts_Log' -- 공급자연결카다로그, 데이터베이스이름
--서버등록확인
SELECT * FROM master.dbo.sysservers
--연결계정등록
EXEC sp_addlinkedsrvlogin
@rmtsrvname = 'RustyHearts_LogDB', -- 링크드서버이름, 기본값없음
@useself = 'false', -- 로그인이름사용유무, 기본값true
@locallogin = NULL, -- 로컬서버로그인여부, 기본값NULL
@rmtuser = @db_account, -- 사용자이름
@rmtpassword = @db_pass -- 사용자암호
EXEC SP_SERVEROPTION [RustyHearts_LogDB], 'RPC OUT' , 'TRUE'
return @@error

View file

@ -0,0 +1,24 @@
CREATE procedure [dbo].[up_insert_agentaccount]
@Account nvarchar(16),
@Password nvarchar(16)
as
BEGIN
set nocount on
BEGIN TRAN
if NOT EXISTS (select Account from dbo.AgentAccount with (nolock) where [Account] = @Account)
begin
insert into dbo.AgentAccount ( [Account], [Password] ) values
( @Account, @Password );
end
if(@@error <> 0 )
BEGIN
ROLLBACK TRAN
return
END
COMMIT TRAN
END

View file

@ -0,0 +1,19 @@
CREATE procedure [dbo].[up_insert_agentaccount_by_query]
@ID nvarchar(16),
@PASSWORD char(16),
@PERMISSION int
as
set nocount on
if NOT EXISTS (select @ID from dbo.AgentAccount with (nolock) where [Account] = @ID)
begin
declare @PASSWORD_LENGTH int
declare @PASSWORD_MD5 nvarchar(32)
set @PASSWORD_LENGTH = len(@PASSWORD)
set @PASSWORD_MD5 = SUBSTRING(master.dbo.fn_varbintohexstr( HashBytes('MD5', SUBSTRING(@PASSWORD, 1, @PASSWORD_LENGTH))), 3, 32)
insert into dbo.AgentAccount( [Account], [Password], [Permission] ) values( @ID, @PASSWORD_MD5, @PERMISSION )
end

View file

@ -0,0 +1,24 @@
CREATE procedure [dbo].[up_insert_blacklist]
@IP nvarchar(15),
@State int,
@Cause nvarchar(50),
@GmID nvarchar(15)
as
set nocount on
begin tran
if NOT EXISTS (select IP from dbo.BlackListTable with (nolock) where [IP] = @IP)
begin
insert into dbo.BlackListTable ( [IP], [State], [Cause], [GmID] ) values
( @IP, @State, @Cause, @GmID );
end
if(@@error <> 0 )
begin
rollback
return
end
commit

View file

@ -0,0 +1,23 @@
CREATE procedure [dbo].[up_insert_channel_auto_count]
@StartCode int,
@World int,
@count int
as
set nocount on
declare @n int
set @n = 0
while @n < @count
begin
EXEC [dbo].[up_insert_channelbyAuto]
@StartCode,
@World
set @StartCode = @StartCode + 1
set @n = @n+1
end

View file

@ -0,0 +1,52 @@
CREATE procedure [dbo].[up_insert_channelbyAuto]
@Code int,
@World int
as
set nocount on
declare @i int
declare @last int
declare @current int
declare @minid int
declare @maxid int
set @i = 1
set @last = 0
set @current = 1
set @minid = 1
set @maxid = 1
select @last = ID from ChannelSeed where Last_Seed = 1 and WorldID = @World
select @maxid = MAX(ID) from ChannelSeed where WorldID = @World
select @minid = MIN(ID) from ChannelSeed where WorldID = @World
if @last = 0
begin
set @last = @minid
end
else
begin
set @last = @last+1
end
while @i <= 3
begin
if @last > @maxid
begin
set @last = @minid
end
insert into ChannelOption( Code, CH_Group, CH_Type, MinLevel, MaxLevel, CH_NUM, WorldID )
select @Code, CH_Group, CH_Type, MinLevel, MaxLevel, Current_Num, @World from ChannelSeed where ID = @last
select @current = Current_Num from ChannelSeed where ID = @last
update ChannelSeed set Current_Num = @current+1 where ID = @last
update ChannelSeed set Last_Seed = 0 where WorldID = @World
update ChannelSeed set Last_Seed = 1 where ID = @last
set @last = @last+1
set @i = @i+1
end

View file

@ -0,0 +1,32 @@
CREATE procedure [dbo].[up_insert_inquiry]
@auth_id uniqueidentifier,
@character_id uniqueidentifier,
@type tinyint,
@character_name nvarchar(16),
@bcust_id nvarchar(50),
@count tinyint,
@memo nvarchar(255),
@compulsion tinyint,
@registertime datetime
as
set nocount on
if NOT EXISTS (select @character_id from [dbo].[InquiryTable] with (READUNCOMMITTED) where [character_id] = @character_id)
begin
insert into InquiryTable
values
(
@auth_id,
@character_id,
@type,
@character_name,
@bcust_id,
@count,
@memo,
@compulsion,
@registertime
);
end
return @@error

View file

@ -0,0 +1,41 @@
CREATE procedure [dbo].[up_insert_inquiry_by_gm]
@type tinyint,
@character_name nvarchar(16),
@memo nvarchar(255),
@compulsion tinyint
as
set nocount on
declare @auth_id uniqueidentifier
declare @character_id uniqueidentifier
declare @bcust_id nvarchar(50)
declare @count tinyint
set @bcust_id = ''
select @auth_id = [AuthID], @character_id = [character_id], @bcust_id = RTRIM(bcust_id) from [dbo].[CharacterTable] with (READUNCOMMITTED) where [Name] = @character_name
select @count = [InquiryCount] from [RustyHearts_Auth].[dbo].[AuthTable] with (READUNCOMMITTED) where [AuthID] = @auth_id
set xact_abort on
if NOT EXISTS ( select @character_id from [dbo].[InquiryTable] with (READUNCOMMITTED) where [character_id] = @character_id )
begin
insert into InquiryTable
values
(
@auth_id,
@character_id,
@type,
@character_name,
@bcust_id,
@count,
@memo,
@compulsion,
GETDATE()
);
end
select * from [dbo].[InquiryTable] with (READUNCOMMITTED) where character_id = @character_id
return @@error

View file

@ -0,0 +1,38 @@
CREATE procedure [dbo].[up_insert_log_auth_succeed]
@AuthID [uniqueidentifier],
@server smallint,
@real_ip varchar(16)
as begin
set nocount on
-------------------------------------------------------
-- 접속 유저 로그 DB로 보내기
declare @bcust_id nvarchar(50)
declare @char_name nvarchar(30)
declare @character_id [uniqueidentifier]
set @bcust_id = ''
set @char_name = ''
set @character_id = '00000000-0000-0000-0000-000000000000'
declare @sql nvarchar(max)
set @sql = ' select top 1 @bcust_id = WindyCode from openquery([RustyHeartsLinkAuth]
, ''select top 1 WindyCode
from [RustyHearts_Auth].[dbo].[AuthTable]
where AuthID = '''''+convert(varchar(255),@AuthID)+''''''')'
select @sql
begin
-- select @bcust_id=WindyCode from [RustyHeartsLinkAuth].[RustyHearts_Auth].[dbo].[AuthTable] where AuthID = @AuthID
exec dbo.sp_executesql @sql, N'@bcust_id nvarchar(50) output', @bcust_id output
select @bcust_id
exec RustyHearts_LogDB.RustyHearts_Log.dbo.up_SetConnectionUV 4, @server, @AuthID, @bcust_id,
@character_id, @char_name, 0, @real_ip, 0, 0, 0, 0
end
-------------------------------------------------------
end

View file

@ -0,0 +1,144 @@
create procedure [dbo].[up_lock2]
@spid1 int = NULL, /* server process id to check for locks */
@spid2 int = NULL /* other process id to check for locks */
as
set nocount on
/*
** Show the locks for both parameters.
*/
declare @objid int,
@dbid int,
@string Nvarchar(255)
CREATE TABLE #locktable
(
spid smallint
,loginname nvarchar(20)
,hostname nvarchar(30)
,dbid int
,dbname nvarchar(20)
,objId int
,ObjName nvarchar(128)
,IndId int
,Type nvarchar(4)
,Resource nvarchar(16)
,Mode nvarchar(8)
,Status nvarchar(5)
)
if @spid1 is not NULL
begin
INSERT #locktable
(
spid
,loginname
,hostname
,dbid
,dbname
,objId
,ObjName
,IndId
,Type
,Resource
,Mode
,Status
)
select convert (smallint, l.req_spid)
--,coalesce(substring (user_name(req_spid), 1, 20),'')
,coalesce(substring (s.loginame, 1, 20),'')
,coalesce(substring (s.hostname, 1, 30),'')
,l.rsc_dbid
,substring (db_name(l.rsc_dbid), 1, 20)
,l.rsc_objid
,''
,l.rsc_indid
,substring (v.name, 1, 4)
,substring (l.rsc_text, 1, 16)
,substring (u.name, 1, 8)
,substring (x.name, 1, 5)
from master.dbo.syslockinfo l,
master.dbo.spt_values v,
master.dbo.spt_values x,
master.dbo.spt_values u,
master.dbo.sysprocesses s
where l.rsc_type = v.number
and v.type = 'LR'
and l.req_status = x.number
and x.type = 'LS'
and l.req_mode + 1 = u.number
and u.type = 'L'
and req_spid in (@spid1, @spid2)
and req_spid = s.spid
end
/*
** No parameters, so show all the locks.
*/
else
begin
INSERT #locktable
(
spid
,loginname
,hostname
,dbid
,dbname
,objId
,ObjName
,IndId
,Type
,Resource
,Mode
,Status
)
select convert (smallint, l.req_spid)
--,coalesce(substring (user_name(req_spid), 1, 20),'')
,coalesce(substring (s.loginame, 1, 20),'')
,coalesce(substring (s.hostname, 1, 30),'')
,l.rsc_dbid
,substring (db_name(l.rsc_dbid), 1, 20)
,l.rsc_objid
,''
,l.rsc_indid
,substring (v.name, 1, 4)
,substring (l.rsc_text, 1, 16)
,substring (u.name, 1, 8)
,substring (x.name, 1, 5)
from master.dbo.syslockinfo l,
master.dbo.spt_values v,
master.dbo.spt_values x,
master.dbo.spt_values u,
master.dbo.sysprocesses s
where l.rsc_type = v.number
and v.type = 'LR'
and l.req_status = x.number
and x.type = 'LS'
and l.req_mode + 1 = u.number
and u.type = 'L'
and req_spid = s.spid
order by spID
END
DECLARE lock_cursor CURSOR
FOR SELECT dbid, ObjId FROM #locktable WHERE Type ='TAB'
OPEN lock_cursor
FETCH NEXT FROM lock_cursor INTO @dbid, @ObjId
WHILE @@FETCH_STATUS = 0
BEGIN
SELECT @string =
'USE ' + db_name(@dbid) + char(13)
+ 'UPDATE #locktable SET ObjName = object_name('
+ convert(varchar(32),@objId) + ') WHERE dbid = ' + convert(varchar(32),@dbId)
+ ' AND objid = ' + convert(varchar(32),@objId)
EXECUTE (@string)
FETCH NEXT FROM lock_cursor INTO @dbid, @ObjId
END
CLOSE lock_cursor
DEALLOCATE lock_cursor
SELECT * FROM #locktable
return (0)
-- END up_lock2

View file

@ -0,0 +1,10 @@
CREATE procedure [dbo].[up_read_agentmanager]
@code int
as
set nocount on
begin
select * FROM [dbo].[ServerOption] with (nolock) where code = @code
end

View file

@ -0,0 +1,9 @@
CREATE procedure [dbo].[up_read_all_serveroption]
as
set nocount on
select * FROM [dbo].[ServerOption] with (READUNCOMMITTED) WHERE Useable = 'Y'
return @@error

View file

@ -0,0 +1,9 @@
CREATE procedure [dbo].[up_read_all_serveroption_dns]
as
set nocount on
select * FROM [dbo].[ServerOptionDNS] with (nolock) where [Use] = 'Y'
return @@error

View file

@ -0,0 +1,15 @@
CREATE procedure [dbo].[up_read_auth_agent]
as
set nocount on
set transaction isolation level read uncommitted
select
[Account],
[Password],
[permission]
FROM [dbo].[AgentAccount]
return @@error

View file

@ -0,0 +1,13 @@
CREATE PROCEDURE [dbo].[up_read_auth_blacklist]
AS
SET NOCOUNT ON
set transaction isolation level read uncommitted
SELECT
IP,
Type
FROM dbo.BlackListTable where [Use] > 0
return @@error

View file

@ -0,0 +1,15 @@
CREATE PROCEDURE [dbo].[up_read_auth_pcroom]
AS
SET NOCOUNT ON
set transaction isolation level read uncommitted
SELECT
szIP
,szName
,Premium
,expireDate
FROM dbo.PCRoom where [Use] > 0
return @@error

View file

@ -0,0 +1,20 @@
CREATE procedure [dbo].[up_read_channelinfo]
@Code int,
@World int
as
set nocount on
set transaction isolation level read uncommitted
select
CH_Group,
CH_Type,
MinLevel,
MaxLevel,
CH_NUM
from dbo.ChannelOption
where Code = @Code AND WorldID = @World
return @@error

View file

@ -0,0 +1,10 @@
CREATE procedure [dbo].[up_read_inquiry]
as
set nocount on
set transaction isolation level read uncommitted
select * from dbo.InquiryTable
return @@error

View file

@ -0,0 +1,11 @@
CREATE procedure [dbo].[up_read_inquiry_character]
@character_id [uniqueidentifier]
as
set nocount on
set transaction isolation level read uncommitted
select * from dbo.InquiryTable with (nolock) where [character_id] = @character_id;
return @@error

View file

@ -0,0 +1,11 @@
create procedure [dbo].[up_read_pc_room_point]
@AuthID uniqueidentifier
as
set nocount on
set transaction isolation level read uncommitted
select [pc_room_point] from AuthTable where AuthID = @AuthID
return @@error

View file

@ -0,0 +1,11 @@
CREATE procedure [dbo].[up_read_realtimeevent]
as
set nocount on
set transaction isolation level read uncommitted
select * FROM [dbo].[RealTimeEventTable]
return @@error

View file

@ -0,0 +1,11 @@
CREATE procedure [dbo].[up_read_serverfile]
as
set nocount on
set transaction isolation level read uncommitted
select * FROM [dbo].[ServerFile]
return @@error

View file

@ -0,0 +1,7 @@
CREATE procedure [dbo].[up_read_world_server]
as
set nocount on select * FROM [dbo].[WorldServer] with (nolock) where UseAble = 'Y'
return @@error

View file

@ -0,0 +1,9 @@
create procedure [dbo].[up_save_first_character]
@auth_id uniqueidentifier
as
set nocount on
update AuthTable set [CTime] = GETDATE() from AuthTable where AuthID = @auth_id
return @@error

View file

@ -0,0 +1,13 @@
CREATE procedure [dbo].[up_save_ip]
@auth_id uniqueidentifier,
@real_ip varchar(16),
@server_ip varchar(16),
@host_id int,
@DBCIndex smallint
as
set nocount on
update AuthTable set [online]='1',[IP] = @real_ip, [ServerIP] = @server_ip, [ServerType]='G', [HostID]=@host_id, [DBCIndex]=@DBCIndex from AuthTable where AuthID = @auth_id
return @@error

View file

@ -0,0 +1,14 @@
CREATE procedure [dbo].[up_save_logout]
@auth_id uniqueidentifier
as begin
set nocount on
declare @last_time datetime
select @last_time = BTime from AuthTable where AuthID = @auth_id
update AuthTable set world_id=0, [online] = '0', [BTime] = GETDATE(), [LTime] = @last_time from AuthTable where AuthID = @auth_id
end
return @@error

View file

@ -0,0 +1,35 @@
CREATE procedure [dbo].[up_save_logout_log]
@auth_id uniqueidentifier,
@CharID [uniqueidentifier],
@server smallint,
@channelID int,
@name nvarchar(16),
@real_ip varchar(16),
@inven_gold int,
@storage_gold int,
@character_level int,
@character_exp bigint,
@log_type smallint,
@bcust_id nvarchar(50)
as begin
set nocount on
begin
exec [RustyHearts_LogDB].[RustyHearts_Log].[dbo].up_LogOut @log_type,
@server,
@auth_id,
@bcust_id,
@CharID,
@name,
@channelID,
@real_ip,
@inven_gold,
@storage_gold,
@character_level,
@character_exp
end
-------------------------------------------------------
end
return @@error

View file

@ -0,0 +1,10 @@
create procedure [dbo].[up_save_pc_room_point]
@AuthID uniqueidentifier,
@PCRoomPoint int
as
set nocount on
update AuthTable Set [pc_room_point] = @PCRoomPoint where AuthID = @AuthID
return @@error

View file

@ -0,0 +1,14 @@
CREATE procedure [dbo].[up_save_server_info]
@auth_id uniqueidentifier,
@real_ip varchar(16),
@server_ip varchar(16),
@host_id int,
@ServerType char(2),
@ServerID int
as
set nocount on
update AuthTable set [online]='1',[world_id]=@ServerID, [IP] = @real_ip, [ServerIP] = @server_ip, [ServerType]=@ServerType, [HostID]=@host_id from AuthTable where AuthID = @auth_id
return @@error

View file

@ -0,0 +1,10 @@
CREATE procedure [dbo].[up_server_down_log_out]
@host_id int,
@ServerID int
as
set nocount on
update AuthTable set [online]='0',[ServerType]='0', [HostID]=0 from AuthTable where [HostID] = @host_id and [world_id] = @ServerID
return @@error

View file

@ -0,0 +1,6 @@
CREATE procedure [dbo].[up_set_second_pass]
@auth_id uniqueidentifier,
@second_pass varchar(32)
as
set nocount on

View file

@ -0,0 +1,11 @@
create procedure [dbo].[up_update_agentaccount_md5]
as
set nocount on
begin
UPDATE AgentAccount
SET Password = SUBSTRING(master.dbo.fn_varbintohexstr( HashBytes('MD5', Password)), 3, 32)
end

View file

@ -0,0 +1,10 @@
CREATE procedure [dbo].[up_update_cash_mileage]
@auth_id uniqueidentifier,
@mileage int
as
set nocount on
UPDATE [dbo].[AuthTable] SET [CashMileage] = @mileage WHERE [AuthID] = @auth_id
return @@error

View file

@ -0,0 +1,12 @@
CREATE procedure [dbo].[up_update_event_inquiry]
@auth_id [uniqueidentifier],
@inquiry tinyint
as
begin
set nocount on
update AuthTable set event_inquiry = @inquiry where AuthID = @auth_id
end

View file

@ -0,0 +1,13 @@
CREATE procedure [dbo].[up_update_inquiry]
@character_id uniqueidentifier,
@type tinyint,
@memo nvarchar(255)
as
set nocount on
UPDATE [dbo].[InquiryTable] SET
[type] = @type,
[memo] = @memo WHERE [character_id] = @character_id
return @@error

View file

@ -0,0 +1,11 @@
CREATE procedure [dbo].[up_update_inquiry_count]
@auth_id uniqueidentifier,
@count tinyint
as
set nocount on
--UPDATE [RustyHeartsLinkAuth].[RustyHearts_Auth].[dbo].[AuthTable] SET [InquiryCount] = @count WHERE [AuthID] = @auth_id
return @@error

View file

@ -0,0 +1,12 @@
CREATE procedure [dbo].[up_update_inquiry_type]
@character_id uniqueidentifier,
@type tinyint
as
set nocount on
begin tran
UPDATE [dbo].[InquiryTable] SET [type] = @type WHERE [character_id] = @character_id
return @@error

View file

@ -0,0 +1,131 @@
type_desc name parameter_id param type max_length is_output
SQL_STORED_PROCEDURE up_add_inquiry_count 1 @auth_id uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_ado_data_mapping 1 @bcust_id nvarchar 100 0
SQL_STORED_PROCEDURE up_ado_data_mapping 2 @UUID uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_ado_data_mapping 3 @OnLine tinyint 1 0
SQL_STORED_PROCEDURE up_ado_data_mapping 4 @ServerID smallint 2 0
SQL_STORED_PROCEDURE up_ado_data_mapping 5 @ChannelID int 4 0
SQL_STORED_PROCEDURE up_ado_data_mapping 6 @CharExp bigint 8 0
SQL_STORED_PROCEDURE up_ado_data_mapping 7 @CharName nvarchar 32 0
SQL_STORED_PROCEDURE up_ado_data_mapping 8 @IP nchar 32 0
SQL_STORED_PROCEDURE up_ado_data_mapping 9 @fValue float 8 0
SQL_STORED_PROCEDURE up_ado_data_mapping 10 @btValue tinyint 1 0
SQL_STORED_PROCEDURE up_ado_data_mapping 11 @bGift bit 1 0
SQL_STORED_PROCEDURE up_ado_data_mapping 12 @dDouble datetime 8 0
SQL_STORED_PROCEDURE up_ado_data_mapping 13 @CharClass int 4 0
SQL_STORED_PROCEDURE up_auth_agentaccount 1 @Account nvarchar 32 0
SQL_STORED_PROCEDURE up_auth_agentaccount 2 @Password nvarchar 64 0
SQL_STORED_PROCEDURE up_change_world 1 @old_world_id int 4 0
SQL_STORED_PROCEDURE up_change_world 2 @new_world_id int 4 0
SQL_STORED_PROCEDURE up_delete_inquiry 1 @character_id uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_get_auth_id 1 @bcust_id nvarchar 100 0
SQL_STORED_PROCEDURE up_get_auth_id 2 @UUID uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_get_auth_id 3 @channelling int 4 0
SQL_STORED_PROCEDURE up_get_auth_id 4 @mac_addr char 17 0
SQL_STORED_PROCEDURE up_get_auth_id 5 @mac_addr02 char 17 0
SQL_STORED_PROCEDURE up_get_auth_id 6 @mac_addr03 char 17 0
SQL_STORED_PROCEDURE up_get_pcroominfo 1 @szIP nvarchar 48 0
SQL_STORED_PROCEDURE up_get_second_pass 1 @bcust_id nvarchar 100 0
SQL_STORED_PROCEDURE up_gm_add 1 @account nvarchar 32 0
SQL_STORED_PROCEDURE up_gm_add 2 @pass nvarchar 32 0
SQL_STORED_PROCEDURE up_gm_change_pass 1 @gm_id int 4 0
SQL_STORED_PROCEDURE up_gm_change_pass 2 @pass nvarchar 32 0
SQL_STORED_PROCEDURE up_gm_del 1 @account nvarchar 32 0
SQL_STORED_PROCEDURE up_gm_login 1 @account nvarchar 32 0
SQL_STORED_PROCEDURE up_gm_login 2 @pass nvarchar 32 0
SQL_STORED_PROCEDURE up_init_auth NULL NULL NULL NULL NULL
SQL_STORED_PROCEDURE up_init_auth_link 1 @db_src nvarchar 64 0
SQL_STORED_PROCEDURE up_init_auth_link 2 @db_account nvarchar 64 0
SQL_STORED_PROCEDURE up_init_auth_link 3 @db_pass nvarchar 64 0
SQL_STORED_PROCEDURE up_init_log_link 1 @db_src nvarchar 64 0
SQL_STORED_PROCEDURE up_init_log_link 2 @db_account nvarchar 64 0
SQL_STORED_PROCEDURE up_init_log_link 3 @db_pass nvarchar 64 0
SQL_STORED_PROCEDURE up_insert_agentaccount 1 @Account nvarchar 32 0
SQL_STORED_PROCEDURE up_insert_agentaccount 2 @Password nvarchar 32 0
SQL_STORED_PROCEDURE up_insert_agentaccount_by_query 1 @ID nvarchar 32 0
SQL_STORED_PROCEDURE up_insert_agentaccount_by_query 2 @PASSWORD char 16 0
SQL_STORED_PROCEDURE up_insert_agentaccount_by_query 3 @PERMISSION int 4 0
SQL_STORED_PROCEDURE up_insert_blacklist 1 @IP nvarchar 30 0
SQL_STORED_PROCEDURE up_insert_blacklist 2 @State int 4 0
SQL_STORED_PROCEDURE up_insert_blacklist 3 @Cause nvarchar 100 0
SQL_STORED_PROCEDURE up_insert_blacklist 4 @GmID nvarchar 30 0
SQL_STORED_PROCEDURE up_insert_channel_auto_count 1 @StartCode int 4 0
SQL_STORED_PROCEDURE up_insert_channel_auto_count 2 @World int 4 0
SQL_STORED_PROCEDURE up_insert_channel_auto_count 3 @count int 4 0
SQL_STORED_PROCEDURE up_insert_channelbyAuto 1 @Code int 4 0
SQL_STORED_PROCEDURE up_insert_channelbyAuto 2 @World int 4 0
SQL_STORED_PROCEDURE up_insert_inquiry 1 @auth_id uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_insert_inquiry 2 @character_id uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_insert_inquiry 3 @type tinyint 1 0
SQL_STORED_PROCEDURE up_insert_inquiry 4 @character_name nvarchar 32 0
SQL_STORED_PROCEDURE up_insert_inquiry 5 @bcust_id nvarchar 100 0
SQL_STORED_PROCEDURE up_insert_inquiry 6 @count tinyint 1 0
SQL_STORED_PROCEDURE up_insert_inquiry 7 @memo nvarchar 510 0
SQL_STORED_PROCEDURE up_insert_inquiry 8 @compulsion tinyint 1 0
SQL_STORED_PROCEDURE up_insert_inquiry 9 @registertime datetime 8 0
SQL_STORED_PROCEDURE up_insert_inquiry_by_gm 1 @type tinyint 1 0
SQL_STORED_PROCEDURE up_insert_inquiry_by_gm 2 @character_name nvarchar 32 0
SQL_STORED_PROCEDURE up_insert_inquiry_by_gm 3 @memo nvarchar 510 0
SQL_STORED_PROCEDURE up_insert_inquiry_by_gm 4 @compulsion tinyint 1 0
SQL_STORED_PROCEDURE up_insert_log_auth_succeed 1 @AuthID uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_insert_log_auth_succeed 2 @server smallint 2 0
SQL_STORED_PROCEDURE up_insert_log_auth_succeed 3 @real_ip varchar 16 0
SQL_STORED_PROCEDURE up_lock2 1 @spid1 int 4 0
SQL_STORED_PROCEDURE up_lock2 2 @spid2 int 4 0
SQL_STORED_PROCEDURE up_read_agentmanager 1 @code int 4 0
SQL_STORED_PROCEDURE up_read_all_serveroption NULL NULL NULL NULL NULL
SQL_STORED_PROCEDURE up_read_all_serveroption_dns NULL NULL NULL NULL NULL
SQL_STORED_PROCEDURE up_read_auth_agent NULL NULL NULL NULL NULL
SQL_STORED_PROCEDURE up_read_auth_blacklist NULL NULL NULL NULL NULL
SQL_STORED_PROCEDURE up_read_auth_pcroom NULL NULL NULL NULL NULL
SQL_STORED_PROCEDURE up_read_channelinfo 1 @Code int 4 0
SQL_STORED_PROCEDURE up_read_channelinfo 2 @World int 4 0
SQL_STORED_PROCEDURE up_read_inquiry NULL NULL NULL NULL NULL
SQL_STORED_PROCEDURE up_read_inquiry_character 1 @character_id uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_read_pc_room_point 1 @AuthID uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_read_realtimeevent NULL NULL NULL NULL NULL
SQL_STORED_PROCEDURE up_read_serverfile NULL NULL NULL NULL NULL
SQL_STORED_PROCEDURE up_read_world_server NULL NULL NULL NULL NULL
SQL_STORED_PROCEDURE up_save_first_character 1 @auth_id uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_save_ip 1 @auth_id uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_save_ip 2 @real_ip varchar 16 0
SQL_STORED_PROCEDURE up_save_ip 3 @server_ip varchar 16 0
SQL_STORED_PROCEDURE up_save_ip 4 @host_id int 4 0
SQL_STORED_PROCEDURE up_save_ip 5 @DBCIndex smallint 2 0
SQL_STORED_PROCEDURE up_save_logout 1 @auth_id uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_save_logout_log 1 @auth_id uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_save_logout_log 2 @CharID uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_save_logout_log 3 @server smallint 2 0
SQL_STORED_PROCEDURE up_save_logout_log 4 @channelID int 4 0
SQL_STORED_PROCEDURE up_save_logout_log 5 @name nvarchar 32 0
SQL_STORED_PROCEDURE up_save_logout_log 6 @real_ip varchar 16 0
SQL_STORED_PROCEDURE up_save_logout_log 7 @inven_gold int 4 0
SQL_STORED_PROCEDURE up_save_logout_log 8 @storage_gold int 4 0
SQL_STORED_PROCEDURE up_save_logout_log 9 @character_level int 4 0
SQL_STORED_PROCEDURE up_save_logout_log 10 @character_exp bigint 8 0
SQL_STORED_PROCEDURE up_save_logout_log 11 @log_type smallint 2 0
SQL_STORED_PROCEDURE up_save_logout_log 12 @bcust_id nvarchar 100 0
SQL_STORED_PROCEDURE up_save_pc_room_point 1 @AuthID uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_save_pc_room_point 2 @PCRoomPoint int 4 0
SQL_STORED_PROCEDURE up_save_server_info 1 @auth_id uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_save_server_info 2 @real_ip varchar 16 0
SQL_STORED_PROCEDURE up_save_server_info 3 @server_ip varchar 16 0
SQL_STORED_PROCEDURE up_save_server_info 4 @host_id int 4 0
SQL_STORED_PROCEDURE up_save_server_info 5 @ServerType char 2 0
SQL_STORED_PROCEDURE up_save_server_info 6 @ServerID int 4 0
SQL_STORED_PROCEDURE up_server_down_log_out 1 @host_id int 4 0
SQL_STORED_PROCEDURE up_server_down_log_out 2 @ServerID int 4 0
SQL_STORED_PROCEDURE up_set_second_pass 1 @auth_id uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_set_second_pass 2 @second_pass varchar 32 0
SQL_STORED_PROCEDURE up_update_agentaccount_md5 NULL NULL NULL NULL NULL
SQL_STORED_PROCEDURE up_update_cash_mileage 1 @auth_id uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_update_cash_mileage 2 @mileage int 4 0
SQL_STORED_PROCEDURE up_update_event_inquiry 1 @auth_id uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_update_event_inquiry 2 @inquiry tinyint 1 0
SQL_STORED_PROCEDURE up_update_inquiry 1 @character_id uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_update_inquiry 2 @type tinyint 1 0
SQL_STORED_PROCEDURE up_update_inquiry 3 @memo nvarchar 510 0
SQL_STORED_PROCEDURE up_update_inquiry_count 1 @auth_id uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_update_inquiry_count 2 @count tinyint 1 0
SQL_STORED_PROCEDURE up_update_inquiry_type 1 @character_id uniqueidentifier 16 0
SQL_STORED_PROCEDURE up_update_inquiry_type 2 @type tinyint 1 0
1 type_desc name parameter_id param type max_length is_output
2 SQL_STORED_PROCEDURE up_add_inquiry_count 1 @auth_id uniqueidentifier 16 0
3 SQL_STORED_PROCEDURE up_ado_data_mapping 1 @bcust_id nvarchar 100 0
4 SQL_STORED_PROCEDURE up_ado_data_mapping 2 @UUID uniqueidentifier 16 0
5 SQL_STORED_PROCEDURE up_ado_data_mapping 3 @OnLine tinyint 1 0
6 SQL_STORED_PROCEDURE up_ado_data_mapping 4 @ServerID smallint 2 0
7 SQL_STORED_PROCEDURE up_ado_data_mapping 5 @ChannelID int 4 0
8 SQL_STORED_PROCEDURE up_ado_data_mapping 6 @CharExp bigint 8 0
9 SQL_STORED_PROCEDURE up_ado_data_mapping 7 @CharName nvarchar 32 0
10 SQL_STORED_PROCEDURE up_ado_data_mapping 8 @IP nchar 32 0
11 SQL_STORED_PROCEDURE up_ado_data_mapping 9 @fValue float 8 0
12 SQL_STORED_PROCEDURE up_ado_data_mapping 10 @btValue tinyint 1 0
13 SQL_STORED_PROCEDURE up_ado_data_mapping 11 @bGift bit 1 0
14 SQL_STORED_PROCEDURE up_ado_data_mapping 12 @dDouble datetime 8 0
15 SQL_STORED_PROCEDURE up_ado_data_mapping 13 @CharClass int 4 0
16 SQL_STORED_PROCEDURE up_auth_agentaccount 1 @Account nvarchar 32 0
17 SQL_STORED_PROCEDURE up_auth_agentaccount 2 @Password nvarchar 64 0
18 SQL_STORED_PROCEDURE up_change_world 1 @old_world_id int 4 0
19 SQL_STORED_PROCEDURE up_change_world 2 @new_world_id int 4 0
20 SQL_STORED_PROCEDURE up_delete_inquiry 1 @character_id uniqueidentifier 16 0
21 SQL_STORED_PROCEDURE up_get_auth_id 1 @bcust_id nvarchar 100 0
22 SQL_STORED_PROCEDURE up_get_auth_id 2 @UUID uniqueidentifier 16 0
23 SQL_STORED_PROCEDURE up_get_auth_id 3 @channelling int 4 0
24 SQL_STORED_PROCEDURE up_get_auth_id 4 @mac_addr char 17 0
25 SQL_STORED_PROCEDURE up_get_auth_id 5 @mac_addr02 char 17 0
26 SQL_STORED_PROCEDURE up_get_auth_id 6 @mac_addr03 char 17 0
27 SQL_STORED_PROCEDURE up_get_pcroominfo 1 @szIP nvarchar 48 0
28 SQL_STORED_PROCEDURE up_get_second_pass 1 @bcust_id nvarchar 100 0
29 SQL_STORED_PROCEDURE up_gm_add 1 @account nvarchar 32 0
30 SQL_STORED_PROCEDURE up_gm_add 2 @pass nvarchar 32 0
31 SQL_STORED_PROCEDURE up_gm_change_pass 1 @gm_id int 4 0
32 SQL_STORED_PROCEDURE up_gm_change_pass 2 @pass nvarchar 32 0
33 SQL_STORED_PROCEDURE up_gm_del 1 @account nvarchar 32 0
34 SQL_STORED_PROCEDURE up_gm_login 1 @account nvarchar 32 0
35 SQL_STORED_PROCEDURE up_gm_login 2 @pass nvarchar 32 0
36 SQL_STORED_PROCEDURE up_init_auth NULL NULL NULL NULL NULL
37 SQL_STORED_PROCEDURE up_init_auth_link 1 @db_src nvarchar 64 0
38 SQL_STORED_PROCEDURE up_init_auth_link 2 @db_account nvarchar 64 0
39 SQL_STORED_PROCEDURE up_init_auth_link 3 @db_pass nvarchar 64 0
40 SQL_STORED_PROCEDURE up_init_log_link 1 @db_src nvarchar 64 0
41 SQL_STORED_PROCEDURE up_init_log_link 2 @db_account nvarchar 64 0
42 SQL_STORED_PROCEDURE up_init_log_link 3 @db_pass nvarchar 64 0
43 SQL_STORED_PROCEDURE up_insert_agentaccount 1 @Account nvarchar 32 0
44 SQL_STORED_PROCEDURE up_insert_agentaccount 2 @Password nvarchar 32 0
45 SQL_STORED_PROCEDURE up_insert_agentaccount_by_query 1 @ID nvarchar 32 0
46 SQL_STORED_PROCEDURE up_insert_agentaccount_by_query 2 @PASSWORD char 16 0
47 SQL_STORED_PROCEDURE up_insert_agentaccount_by_query 3 @PERMISSION int 4 0
48 SQL_STORED_PROCEDURE up_insert_blacklist 1 @IP nvarchar 30 0
49 SQL_STORED_PROCEDURE up_insert_blacklist 2 @State int 4 0
50 SQL_STORED_PROCEDURE up_insert_blacklist 3 @Cause nvarchar 100 0
51 SQL_STORED_PROCEDURE up_insert_blacklist 4 @GmID nvarchar 30 0
52 SQL_STORED_PROCEDURE up_insert_channel_auto_count 1 @StartCode int 4 0
53 SQL_STORED_PROCEDURE up_insert_channel_auto_count 2 @World int 4 0
54 SQL_STORED_PROCEDURE up_insert_channel_auto_count 3 @count int 4 0
55 SQL_STORED_PROCEDURE up_insert_channelbyAuto 1 @Code int 4 0
56 SQL_STORED_PROCEDURE up_insert_channelbyAuto 2 @World int 4 0
57 SQL_STORED_PROCEDURE up_insert_inquiry 1 @auth_id uniqueidentifier 16 0
58 SQL_STORED_PROCEDURE up_insert_inquiry 2 @character_id uniqueidentifier 16 0
59 SQL_STORED_PROCEDURE up_insert_inquiry 3 @type tinyint 1 0
60 SQL_STORED_PROCEDURE up_insert_inquiry 4 @character_name nvarchar 32 0
61 SQL_STORED_PROCEDURE up_insert_inquiry 5 @bcust_id nvarchar 100 0
62 SQL_STORED_PROCEDURE up_insert_inquiry 6 @count tinyint 1 0
63 SQL_STORED_PROCEDURE up_insert_inquiry 7 @memo nvarchar 510 0
64 SQL_STORED_PROCEDURE up_insert_inquiry 8 @compulsion tinyint 1 0
65 SQL_STORED_PROCEDURE up_insert_inquiry 9 @registertime datetime 8 0
66 SQL_STORED_PROCEDURE up_insert_inquiry_by_gm 1 @type tinyint 1 0
67 SQL_STORED_PROCEDURE up_insert_inquiry_by_gm 2 @character_name nvarchar 32 0
68 SQL_STORED_PROCEDURE up_insert_inquiry_by_gm 3 @memo nvarchar 510 0
69 SQL_STORED_PROCEDURE up_insert_inquiry_by_gm 4 @compulsion tinyint 1 0
70 SQL_STORED_PROCEDURE up_insert_log_auth_succeed 1 @AuthID uniqueidentifier 16 0
71 SQL_STORED_PROCEDURE up_insert_log_auth_succeed 2 @server smallint 2 0
72 SQL_STORED_PROCEDURE up_insert_log_auth_succeed 3 @real_ip varchar 16 0
73 SQL_STORED_PROCEDURE up_lock2 1 @spid1 int 4 0
74 SQL_STORED_PROCEDURE up_lock2 2 @spid2 int 4 0
75 SQL_STORED_PROCEDURE up_read_agentmanager 1 @code int 4 0
76 SQL_STORED_PROCEDURE up_read_all_serveroption NULL NULL NULL NULL NULL
77 SQL_STORED_PROCEDURE up_read_all_serveroption_dns NULL NULL NULL NULL NULL
78 SQL_STORED_PROCEDURE up_read_auth_agent NULL NULL NULL NULL NULL
79 SQL_STORED_PROCEDURE up_read_auth_blacklist NULL NULL NULL NULL NULL
80 SQL_STORED_PROCEDURE up_read_auth_pcroom NULL NULL NULL NULL NULL
81 SQL_STORED_PROCEDURE up_read_channelinfo 1 @Code int 4 0
82 SQL_STORED_PROCEDURE up_read_channelinfo 2 @World int 4 0
83 SQL_STORED_PROCEDURE up_read_inquiry NULL NULL NULL NULL NULL
84 SQL_STORED_PROCEDURE up_read_inquiry_character 1 @character_id uniqueidentifier 16 0
85 SQL_STORED_PROCEDURE up_read_pc_room_point 1 @AuthID uniqueidentifier 16 0
86 SQL_STORED_PROCEDURE up_read_realtimeevent NULL NULL NULL NULL NULL
87 SQL_STORED_PROCEDURE up_read_serverfile NULL NULL NULL NULL NULL
88 SQL_STORED_PROCEDURE up_read_world_server NULL NULL NULL NULL NULL
89 SQL_STORED_PROCEDURE up_save_first_character 1 @auth_id uniqueidentifier 16 0
90 SQL_STORED_PROCEDURE up_save_ip 1 @auth_id uniqueidentifier 16 0
91 SQL_STORED_PROCEDURE up_save_ip 2 @real_ip varchar 16 0
92 SQL_STORED_PROCEDURE up_save_ip 3 @server_ip varchar 16 0
93 SQL_STORED_PROCEDURE up_save_ip 4 @host_id int 4 0
94 SQL_STORED_PROCEDURE up_save_ip 5 @DBCIndex smallint 2 0
95 SQL_STORED_PROCEDURE up_save_logout 1 @auth_id uniqueidentifier 16 0
96 SQL_STORED_PROCEDURE up_save_logout_log 1 @auth_id uniqueidentifier 16 0
97 SQL_STORED_PROCEDURE up_save_logout_log 2 @CharID uniqueidentifier 16 0
98 SQL_STORED_PROCEDURE up_save_logout_log 3 @server smallint 2 0
99 SQL_STORED_PROCEDURE up_save_logout_log 4 @channelID int 4 0
100 SQL_STORED_PROCEDURE up_save_logout_log 5 @name nvarchar 32 0
101 SQL_STORED_PROCEDURE up_save_logout_log 6 @real_ip varchar 16 0
102 SQL_STORED_PROCEDURE up_save_logout_log 7 @inven_gold int 4 0
103 SQL_STORED_PROCEDURE up_save_logout_log 8 @storage_gold int 4 0
104 SQL_STORED_PROCEDURE up_save_logout_log 9 @character_level int 4 0
105 SQL_STORED_PROCEDURE up_save_logout_log 10 @character_exp bigint 8 0
106 SQL_STORED_PROCEDURE up_save_logout_log 11 @log_type smallint 2 0
107 SQL_STORED_PROCEDURE up_save_logout_log 12 @bcust_id nvarchar 100 0
108 SQL_STORED_PROCEDURE up_save_pc_room_point 1 @AuthID uniqueidentifier 16 0
109 SQL_STORED_PROCEDURE up_save_pc_room_point 2 @PCRoomPoint int 4 0
110 SQL_STORED_PROCEDURE up_save_server_info 1 @auth_id uniqueidentifier 16 0
111 SQL_STORED_PROCEDURE up_save_server_info 2 @real_ip varchar 16 0
112 SQL_STORED_PROCEDURE up_save_server_info 3 @server_ip varchar 16 0
113 SQL_STORED_PROCEDURE up_save_server_info 4 @host_id int 4 0
114 SQL_STORED_PROCEDURE up_save_server_info 5 @ServerType char 2 0
115 SQL_STORED_PROCEDURE up_save_server_info 6 @ServerID int 4 0
116 SQL_STORED_PROCEDURE up_server_down_log_out 1 @host_id int 4 0
117 SQL_STORED_PROCEDURE up_server_down_log_out 2 @ServerID int 4 0
118 SQL_STORED_PROCEDURE up_set_second_pass 1 @auth_id uniqueidentifier 16 0
119 SQL_STORED_PROCEDURE up_set_second_pass 2 @second_pass varchar 32 0
120 SQL_STORED_PROCEDURE up_update_agentaccount_md5 NULL NULL NULL NULL NULL
121 SQL_STORED_PROCEDURE up_update_cash_mileage 1 @auth_id uniqueidentifier 16 0
122 SQL_STORED_PROCEDURE up_update_cash_mileage 2 @mileage int 4 0
123 SQL_STORED_PROCEDURE up_update_event_inquiry 1 @auth_id uniqueidentifier 16 0
124 SQL_STORED_PROCEDURE up_update_event_inquiry 2 @inquiry tinyint 1 0
125 SQL_STORED_PROCEDURE up_update_inquiry 1 @character_id uniqueidentifier 16 0
126 SQL_STORED_PROCEDURE up_update_inquiry 2 @type tinyint 1 0
127 SQL_STORED_PROCEDURE up_update_inquiry 3 @memo nvarchar 510 0
128 SQL_STORED_PROCEDURE up_update_inquiry_count 1 @auth_id uniqueidentifier 16 0
129 SQL_STORED_PROCEDURE up_update_inquiry_count 2 @count tinyint 1 0
130 SQL_STORED_PROCEDURE up_update_inquiry_type 1 @character_id uniqueidentifier 16 0
131 SQL_STORED_PROCEDURE up_update_inquiry_type 2 @type tinyint 1 0

View file

@ -0,0 +1,14 @@
AgentAccount 1 3 Account
AuthTable 1 24 WindyCode
BlackListTable 0 6 IP
ChannelOption 0 8
ChannelSeed 1 8 ID
GlobalVariableTable 2 2 VarName
GMInfoTable 0 5 gm_id
InquiryTable 0 10 inquiry_id
PCRoom 0 5
RealTimeEventTable 26 3
ServerFile 15 2 type
ServerOption 14 13 Code
ServerOptionDNS 14 13 Code
WorldServer 1 3
1 AgentAccount 1 3 Account
2 AuthTable 1 24 WindyCode
3 BlackListTable 0 6 IP
4 ChannelOption 0 8
5 ChannelSeed 1 8 ID
6 GlobalVariableTable 2 2 VarName
7 GMInfoTable 0 5 gm_id
8 InquiryTable 0 10 inquiry_id
9 PCRoom 0 5
10 RealTimeEventTable 26 3
11 ServerFile 15 2 type
12 ServerOption 14 13 Code
13 ServerOptionDNS 14 13 Code
14 WorldServer 1 3