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,83 @@
CREATE PROCEDURE [dbo].[up_get_character]
@character_id [uniqueidentifier],
@server smallint
as
begin
set nocount on
set transaction isolation level read uncommitted
-- declare @temp_lastloginDiff int
-- SELECT @temp_lastloginDiff = DATEDIFF(day, [LastLogin], GETDATE()) FROM [CharacterTable] WHERE [character_id] = @character_id
-- if @temp_lastloginDiff != 0
-- begin
-- UPDATE [CharacterTable] SET [Fatigue] = 1000, [LastLogin] = GETDATE() WHERE [character_id] = @character_id
-- UPDATE [CharacterTable] SET [Hearts] = 10 WHERE [character_id] = @character_id and [Hearts] < 10
-- UPDATE [CharacterTable] SET [DayAttachGold] = 0 WHERE [character_id] = @character_id
-- UPDATE [CharacterTable] SET [DayAttachItem] = 0 WHERE [character_id] = @character_id
-- end
-- else
-- begin
-- UPDATE [CharacterTable] SET [LastLogin] = GETDATE() WHERE [character_id] = @character_id
-- end
select C.[character_id]
,C.[AuthID]
,C.[server]
,C.[Name]
,C.[Class]
,C.[Job]
,C.[Level]
,C.[Experience]
,C.[Stamina]
,C.[SP]
,C.[Total_SP]
,C.[Fatigue]
,C.[LobbyID]
,C.[StartPoint]
,C.[gold]
,C.[individual_roomID]
,C.[GuildID]
,C.[CreateTime]
,C.[LastLogin]
,C.[Hearts]
,C.[first_login]
,C.[tutorial]
,C.[give_up]
,C.[Block_Type]
,C.[storage_gold]
,C.[storage_count]
,C.[IsTradeEnable]
,C.[Expire_Time]
--시간 이벤트 관련 추가 [2010/05/27 jojo]
,C.[event_fatigue]
,C.[event_hearts]
,C.[event_fortune]
,C.[dice_point]
,C.[Addition_HP]
,C.[Addition_MP]
,C.[Addition_Physic_Attack]
,C.[Addition_Physic_Defense]
,C.[Addition_Magic_Attack]
,C.[Addition_Magic_Defense]
,C.[Permission]
,C.[FatigueStorage]
,C.[DayAttachGold]
,C.[DayAttachItem]
,C.[GuildPoint] --길드 경험치 jojo
,C.[Fortune] --운세
,C.[IsMoveEnable] --이동불가
,C.[event_mailattach]
,C.[tutorial_step]
,C.[daypartymission]
,C.[event_daypartymission]
,C.[time_sp]
--데이터 추가 시 뒤쪽에!!
,ISNULL(G.[grade],7) as guild_grade --길드 등급 - 이후 추가시 담당에게 문의 : 김진영
,ISNULL(G.alias_name, '') as guild_alias_name --길드 별명 - 이후 추가시 담당에게 문의 : 김진영
,ISNULL(GT.name, '') as guild_name --길드 이름 - 이후 추가시 담당에게 문의 : 김진영
FROM CharacterTable AS C WITH (NOLOCK)
LEFT OUTER JOIN GuildMemberTable AS G WITH (NOLOCK) ON G.[character_id]=C.[character_id] --WHERE C.[character_id]=@character_id and C.[server]=@server
LEFT OUTER JOIN GuildTable AS GT WITH (NOLOCK) ON GT.[guild_id]=C.[GuildID] WHERE C.[character_id]=@character_id --and C.[server]=@server
end