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,143 @@
CREATE PROCEDURE [dbo].[up_SetItemMail]
@log_type int
,@world_id int
,@auth_id uniqueidentifier
,@character_id uniqueidentifier
,@character_name nvarchar(16)
,@item_guid uniqueidentifier
,@item_ID int
,@item_header int
,@enchant_level int
,@item_active int
,@socket_count tinyint
,@remain_recon tinyint
,@durability int
,@item_option1 int
,@item_option2 int
,@item_option3 int
,@item_option_value1 int
,@item_option_value2 int
,@item_option_value3 int
,@item_socket_option1 int
,@item_socket_option2 int
,@item_socket_option3 int
,@item_socket_value1 int
,@item_socket_value2 int
,@item_socket_value3 int
,@item_socket_color1 int
,@item_socket_color2 int
,@item_socket_color3 int
,@item_count int
,@before_money int
,@after_money int
,@change_money int
,@target_name nvarchar(16)
,@mail_type int
as
set nocount on
declare @createtime datetime
set @createtime = getdate()
declare @year varchar(50)
declare @month varchar(50)
set @year = convert(varchar, datepart(yy,@createtime))
set @month = convert(varchar, datepart(mm,@createtime))
set xact_abort on
begin tran
declare @updatesql nvarchar(2500)
declare @char_auth_id nvarchar(50)
declare @char_character_id nvarchar(50)
declare @char_item_id nvarchar(50)
set @char_auth_id = @auth_id
set @char_character_id = @character_id
set @char_item_id = @item_guid
exec Local_CreateItemMailTable @createtime
SET @updatesql = 'insert into ItemMail_Log_' + @year + '_' + @month +
'(log_type
,world_id
,auth_id
,character_id
,character_name
,item_guid
,item_ID
,item_header
,enchant_level
,item_active
,socket_count
,item_recon
,durability
,item_option1
,item_option2
,item_option3
,item_option_value1
,item_option_value2
,item_option_value3
,item_socket_option1
,item_socket_option2
,item_socket_option3
,item_socket_value1
,item_socket_value2
,item_socket_value3
,item_socket_color1
,item_socket_color2
,item_socket_color3
,item_count
,before_money
,after_money
,change_money
,target_name
,mail_type )
VALUES ('
+ '''' +convert(nvarchar,@log_type) + '''' + ','
+ '''' +convert(nvarchar,@world_id) + '''' + ','
+ '''' +@char_auth_id + '''' + ','
+ '''' +@char_character_id + '''' + ','
+ '''' +@character_name + '''' + ','
+ '''' +@char_item_id + '''' + ','
+ '''' +convert(nvarchar,@item_id) + '''' + ','
+ '''' +convert(nvarchar,@item_header) + '''' + ','
+ '''' +convert(nvarchar,@enchant_level) + '''' + ','
+ '''' +convert(nvarchar,@item_active) + '''' + ','
+ '''' +convert(nvarchar,@socket_count) + '''' + ','
+ '''' +convert(nvarchar,@remain_recon) + '''' + ','
+ '''' +convert(nvarchar,@durability) + '''' + ','
+ '''' +convert(nvarchar,@item_option1) + '''' + ','
+ '''' +convert(nvarchar,@item_option2) + '''' + ','
+ '''' +convert(nvarchar,@item_option3) + '''' + ','
+ '''' +convert(nvarchar,@item_option_value1)+ '''' + ','
+ '''' +convert(nvarchar,@item_option_value2)+ '''' + ','
+ '''' +convert(nvarchar,@item_option_value3)+ '''' + ','
+ '''' +convert(nvarchar,@item_socket_option1)+ '''' + ','
+ '''' +convert(nvarchar,@item_socket_option2)+ '''' + ','
+ '''' +convert(nvarchar,@item_socket_option3)+ '''' + ','
+ '''' +convert(nvarchar,@item_socket_value1) + '''' + ','
+ '''' +convert(nvarchar,@item_socket_value2) + '''' + ','
+ '''' +convert(nvarchar,@item_socket_value3) + '''' + ','
+ '''' +convert(nvarchar,@item_socket_color1) + '''' + ','
+ '''' +convert(nvarchar,@item_socket_color2) + '''' + ','
+ '''' +convert(nvarchar,@item_socket_color3) + '''' + ','
+ '''' +convert(nvarchar,@item_count) + '''' + ','
+ '''' +convert(nvarchar,@before_money) + '''' + ','
+ '''' +convert(nvarchar,@after_money) + '''' + ','
+ '''' +convert(nvarchar,@change_money) + '''' + ','
+ '''' +@target_name + '''' + ','
+ '''' +convert(nvarchar,@mail_type) + '''' + ')'
EXEC(@updatesql)
if(@@error <> 0)
begin
rollback
return
end
commit