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,27 @@
CREATE PROCEDURE [dbo].[up_set_timeskillreset]
@char_id [uniqueidentifier]
,@flag int
as begin
declare @sp int
declare @character_id [uniqueidentifier]
set @sp = -1
set nocount on
select @character_id = character_id from CharacterTable with (READUNCOMMITTED) where character_id = @char_id
if( @character_id IS NOT NULL )
begin
if( @flag = 0 ) --½ºÅ³±â°£Á¦ ÃʱâÈ­ ÀÔ·Â
begin
select @sp = SP from CharacterTable with (READUNCOMMITTED) where character_id = @char_id
update CharacterTable set time_sp = @sp where character_id = @char_id
update SkillTable set [use] = 0 where character_id = @char_id
end
else
begin
select @sp = time_sp from CharacterTable with (READUNCOMMITTED) where character_id = @char_id
update CharacterTable set SP = @sp, time_sp = 0 where character_id = @char_id
delete from SkillTable where character_id = @char_id and [use] = 1
update SkillTable set [use] = 1 where character_id = @char_id
end
end
end