decomp DBCServer_Release and inspect/document database
This commit is contained in:
parent
4b267cbe05
commit
7834b98bf0
28222 changed files with 843300 additions and 144 deletions
413
decomp/schema/RustyHearts/procs/up_create_item.sql
Normal file
413
decomp/schema/RustyHearts/procs/up_create_item.sql
Normal file
|
|
@ -0,0 +1,413 @@
|
|||
CREATE PROCEDURE [dbo].[up_create_item]
|
||||
@character_id [uniqueidentifier],
|
||||
@auth_id [uniqueidentifier],
|
||||
@page_index int,
|
||||
@slot_index int,
|
||||
--@code int,
|
||||
--@use_cnt int,
|
||||
@item_id [uniqueidentifier],
|
||||
@code int,
|
||||
@use_cnt int,
|
||||
|
||||
@remain_time int,
|
||||
@gcode int,
|
||||
@durability int,
|
||||
@enhance_level int,
|
||||
@option_1_code int,
|
||||
@option_1_value int,
|
||||
@option_2_code int,
|
||||
@option_2_value int,
|
||||
@option_3_code int,
|
||||
@option_3_value int,
|
||||
@OptionGroup int,
|
||||
@ReconNum int,
|
||||
@ReconState int,
|
||||
@Socket_count int,
|
||||
@Socket_1_code int,
|
||||
@Socket_1_value int,
|
||||
@Socket_2_code int,
|
||||
@Socket_2_value int,
|
||||
@Socket_3_code int,
|
||||
@Socket_3_value int,
|
||||
@expire_time int,
|
||||
@activity_value int,
|
||||
--@link_id1 int,--2022
|
||||
@link_id [uniqueidentifier],
|
||||
@socket_1_color tinyint,
|
||||
@socket_2_color tinyint,
|
||||
@socket_3_color tinyint,
|
||||
@deferment_time int,
|
||||
@rank tinyint,
|
||||
@acquireroute tinyint,
|
||||
@physical int,
|
||||
@magical int,
|
||||
@durabilitymax int,
|
||||
--@link_id [uniqueidentifier],
|
||||
--@ttt nvarchar(50),--[uniqueidentifier],--2022
|
||||
@weight int
|
||||
as
|
||||
set nocount on
|
||||
set xact_abort on
|
||||
|
||||
if(@page_index = 0) --??
|
||||
begin
|
||||
begin tran
|
||||
insert N_EquipItem(
|
||||
item_uid ,
|
||||
character_id ,
|
||||
auth_id ,
|
||||
page_index ,
|
||||
slot_index ,
|
||||
code ,
|
||||
use_cnt ,
|
||||
remain_time ,
|
||||
create_time ,
|
||||
update_time ,
|
||||
gcode ,
|
||||
durability ,
|
||||
enhance_level ,
|
||||
option_1_code ,
|
||||
option_1_value,
|
||||
option_2_code ,
|
||||
option_2_value,
|
||||
option_3_code ,
|
||||
option_3_value,
|
||||
option_group ,
|
||||
ReconNum ,
|
||||
ReconState ,
|
||||
socket_count ,
|
||||
socket_1_code ,
|
||||
socket_1_value,
|
||||
socket_2_code ,
|
||||
socket_2_value,
|
||||
socket_3_code ,
|
||||
socket_3_value,
|
||||
expire_time,
|
||||
activity_value, --??? 20100928 jojo
|
||||
link_id,
|
||||
socket_1_color, -- ??
|
||||
socket_2_color,
|
||||
socket_3_color,
|
||||
deferment_time,
|
||||
rank,
|
||||
acquireroute,
|
||||
physical ,
|
||||
magical ,
|
||||
durabilitymax,
|
||||
weight
|
||||
)
|
||||
|
||||
values(
|
||||
@item_id ,
|
||||
@character_id ,
|
||||
@auth_id ,
|
||||
@page_index ,
|
||||
@slot_index ,
|
||||
@code ,
|
||||
@use_cnt ,
|
||||
@remain_time ,
|
||||
GetDate() ,
|
||||
GetDate() ,
|
||||
@gcode ,
|
||||
@durability ,
|
||||
@enhance_level ,
|
||||
@option_1_code ,
|
||||
@option_1_value,
|
||||
@option_2_code ,
|
||||
@option_2_value,
|
||||
@option_3_code ,
|
||||
@option_3_value,
|
||||
@OptionGroup ,
|
||||
@ReconNum ,
|
||||
@ReconState ,
|
||||
@Socket_count ,
|
||||
@Socket_1_code ,
|
||||
@Socket_1_value,
|
||||
@Socket_2_code ,
|
||||
@Socket_2_value,
|
||||
@Socket_3_code ,
|
||||
@Socket_3_value,
|
||||
@expire_time,
|
||||
@activity_value, --??? 20100928 jojo
|
||||
@link_id,
|
||||
@socket_1_color, -- ??
|
||||
@socket_2_color,
|
||||
@socket_3_color,
|
||||
@deferment_time,
|
||||
@rank,
|
||||
@acquireroute,
|
||||
@physical ,
|
||||
@magical ,
|
||||
@durabilitymax ,
|
||||
@weight
|
||||
)
|
||||
|
||||
if(@@error <> 0)
|
||||
begin
|
||||
rollback
|
||||
return
|
||||
end
|
||||
|
||||
commit
|
||||
|
||||
select * from N_EquipItem where item_uid = @item_id
|
||||
|
||||
end
|
||||
else if(@page_index = 21) --??
|
||||
begin
|
||||
begin tran
|
||||
insert N_InventoryItem(
|
||||
item_uid ,
|
||||
character_id ,
|
||||
auth_id ,
|
||||
page_index ,
|
||||
slot_index ,
|
||||
code ,
|
||||
use_cnt ,
|
||||
remain_time ,
|
||||
create_time ,
|
||||
update_time ,
|
||||
gcode ,
|
||||
durability ,
|
||||
enhance_level ,
|
||||
option_1_code ,
|
||||
option_1_value,
|
||||
option_2_code ,
|
||||
option_2_value,
|
||||
option_3_code ,
|
||||
option_3_value,
|
||||
option_group ,
|
||||
ReconNum ,
|
||||
ReconState ,
|
||||
socket_count ,
|
||||
socket_1_code ,
|
||||
socket_1_value,
|
||||
socket_2_code ,
|
||||
socket_2_value,
|
||||
socket_3_code ,
|
||||
socket_3_value,
|
||||
expire_time,
|
||||
activity_value, --??? 20100928 jojo
|
||||
link_id,
|
||||
socket_1_color, -- ??
|
||||
socket_2_color,
|
||||
socket_3_color,
|
||||
deferment_time,
|
||||
rank,
|
||||
acquireroute,
|
||||
physical ,
|
||||
magical ,
|
||||
durabilitymax,
|
||||
weight
|
||||
)
|
||||
|
||||
values(
|
||||
@item_id ,
|
||||
@character_id ,
|
||||
@auth_id ,
|
||||
@page_index ,
|
||||
@slot_index ,
|
||||
@code ,
|
||||
@use_cnt ,
|
||||
@remain_time ,
|
||||
GetDate() ,
|
||||
GetDate() ,
|
||||
@gcode ,
|
||||
@durability ,
|
||||
@enhance_level ,
|
||||
@option_1_code ,
|
||||
@option_1_value,
|
||||
@option_2_code ,
|
||||
@option_2_value,
|
||||
@option_3_code ,
|
||||
@option_3_value,
|
||||
@OptionGroup ,
|
||||
@ReconNum ,
|
||||
@ReconState ,
|
||||
@Socket_count ,
|
||||
@Socket_1_code ,
|
||||
@Socket_1_value,
|
||||
@Socket_2_code ,
|
||||
@Socket_2_value,
|
||||
@Socket_3_code ,
|
||||
@Socket_3_value,
|
||||
@expire_time,
|
||||
@activity_value, --??? 20100928 jojo
|
||||
@link_id,
|
||||
@socket_1_color, -- ??
|
||||
@socket_2_color,
|
||||
@socket_3_color,
|
||||
@deferment_time,
|
||||
@rank,
|
||||
@acquireroute,
|
||||
@physical ,
|
||||
@magical ,
|
||||
@durabilitymax ,
|
||||
@weight
|
||||
|
||||
)
|
||||
if(@@error <> 0)
|
||||
begin
|
||||
rollback
|
||||
return
|
||||
end
|
||||
|
||||
commit
|
||||
|
||||
select * from N_StorageItem where item_uid = @item_id
|
||||
|
||||
end
|
||||
else if(@page_index = 61) --??
|
||||
begin
|
||||
|
||||
declare @gg int
|
||||
---- begin tran
|
||||
----
|
||||
---- insert into N_MailItem
|
||||
---- values(
|
||||
-- @item_id ,
|
||||
-- @character_id ,
|
||||
-- @auth_id ,
|
||||
-- @page_index ,
|
||||
-- @slot_index ,
|
||||
-- @code ,
|
||||
-- @use_cnt ,
|
||||
-- @remain_time ,
|
||||
-- GetDate() ,
|
||||
-- GetDate() ,
|
||||
-- @gcode ,
|
||||
-- @durability ,
|
||||
-- @enhance_level ,
|
||||
-- @option_1_code ,
|
||||
-- @option_1_value,
|
||||
-- @option_2_code ,
|
||||
-- @option_2_value,
|
||||
-- @option_3_code ,
|
||||
-- @option_3_value,
|
||||
-- @OptionGroup ,
|
||||
-- @ReconNum ,
|
||||
-- @ReconState ,
|
||||
-- @Socket_count ,
|
||||
-- @Socket_1_code ,
|
||||
-- @Socket_1_value,
|
||||
-- @Socket_2_code ,
|
||||
-- @Socket_2_value,
|
||||
-- @Socket_3_code ,
|
||||
-- @Socket_3_value
|
||||
---- )
|
||||
----
|
||||
---- if(@@error <> 0)
|
||||
---- begin
|
||||
---- rollback
|
||||
---- return
|
||||
---- end
|
||||
|
||||
--select * from N_MailItem where item_uid = @item_id
|
||||
|
||||
end
|
||||
|
||||
else --?? ????
|
||||
begin
|
||||
begin tran
|
||||
|
||||
insert N_InventoryItem(
|
||||
item_uid ,
|
||||
character_id ,
|
||||
auth_id ,
|
||||
page_index ,
|
||||
slot_index ,
|
||||
code ,
|
||||
use_cnt ,
|
||||
remain_time ,
|
||||
create_time ,
|
||||
update_time ,
|
||||
gcode ,
|
||||
durability ,
|
||||
enhance_level ,
|
||||
option_1_code ,
|
||||
option_1_value,
|
||||
option_2_code ,
|
||||
option_2_value,
|
||||
option_3_code ,
|
||||
option_3_value,
|
||||
option_group ,
|
||||
ReconNum ,
|
||||
ReconState ,
|
||||
socket_count ,
|
||||
socket_1_code ,
|
||||
socket_1_value,
|
||||
socket_2_code ,
|
||||
socket_2_value,
|
||||
socket_3_code ,
|
||||
socket_3_value,
|
||||
expire_time,
|
||||
activity_value, --??? 20100928 jojo
|
||||
link_id,
|
||||
socket_1_color, -- ??
|
||||
socket_2_color,
|
||||
socket_3_color,
|
||||
deferment_time,
|
||||
rank,
|
||||
acquireroute,
|
||||
physical ,
|
||||
magical ,
|
||||
durabilitymax ,
|
||||
weight
|
||||
)
|
||||
|
||||
values(
|
||||
@item_id ,
|
||||
@character_id ,
|
||||
@auth_id ,
|
||||
@page_index ,
|
||||
@slot_index ,
|
||||
@code ,
|
||||
@use_cnt ,
|
||||
@remain_time ,
|
||||
GetDate() ,
|
||||
GetDate() ,
|
||||
@gcode ,
|
||||
@durability ,
|
||||
@enhance_level ,
|
||||
@option_1_code ,
|
||||
@option_1_value,
|
||||
@option_2_code ,
|
||||
@option_2_value,
|
||||
@option_3_code ,
|
||||
@option_3_value,
|
||||
@OptionGroup ,
|
||||
@ReconNum ,
|
||||
@ReconState ,
|
||||
@Socket_count ,
|
||||
@Socket_1_code ,
|
||||
@Socket_1_value,
|
||||
@Socket_2_code ,
|
||||
@Socket_2_value,
|
||||
@Socket_3_code ,
|
||||
@Socket_3_value,
|
||||
@expire_time,
|
||||
@activity_value, --??? 20100928 jojo
|
||||
@link_id,
|
||||
@socket_1_color, -- ??
|
||||
@socket_2_color,
|
||||
@socket_3_color,
|
||||
@deferment_time,
|
||||
@rank,
|
||||
@acquireroute,
|
||||
@physical ,
|
||||
@magical ,
|
||||
@durabilitymax ,
|
||||
@weight
|
||||
|
||||
)
|
||||
if(@@error <> 0)
|
||||
begin
|
||||
rollback
|
||||
return
|
||||
end
|
||||
|
||||
commit
|
||||
|
||||
select * from N_InventoryItem where item_uid = @item_id
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue