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_skill_reset]
@character_id [uniqueidentifier]
as
set nocount on
begin tran
declare @TempSP int
set @TempSP = -1
--스킬 삭제 후, Total SP -> SP 설정
delete SkillTable where character_id = @character_id and [use] = 1
select @TempSP = Total_SP from CharacterTable with (READUNCOMMITTED) where character_id = @character_id
update CharacterTable set SP = @TempSP where character_id = @character_id
declare @ERR int
SET @ERR = @@ERROR
IF @ERR <> 0 BEGIN
RAISERROR('처리오류', 16, 10)
IF @@TRANCOUNT <> 0 ROLLBACK
RETURN (@ERR)
END
COMMIT TRAN
return @@error