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
75
decomp/schema/RustyHearts/procs/up_create_pet.sql
Normal file
75
decomp/schema/RustyHearts/procs/up_create_pet.sql
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
CREATE PROCEDURE [dbo].[up_create_pet]
|
||||
@pet_id [uniqueidentifier]
|
||||
,@character_id [uniqueidentifier]
|
||||
,@AuthID [uniqueidentifier]
|
||||
,@server smallint
|
||||
,@Name nvarchar(16)
|
||||
,@Job int
|
||||
,@inventory_count tinyint
|
||||
,@Expire_Time int
|
||||
|
||||
|
||||
--펫 기본 정보 추가 jojo
|
||||
,@Vital INT
|
||||
,@Intelligence INT
|
||||
,@Strength INT
|
||||
,@Resilient INT
|
||||
,@Eloquence INT
|
||||
,@Charm INT
|
||||
,@Temper INT
|
||||
,@fHeight FLOAT
|
||||
,@fWeight FLOAT
|
||||
|
||||
,@hp INT
|
||||
,@mp INT
|
||||
,@physical_attack FLOAT
|
||||
,@physical_defence FLOAT
|
||||
,@magical_attack FLOAT
|
||||
,@magical_defence FLOAT
|
||||
,@loyalty FLOAT
|
||||
,@Level int
|
||||
,@exp int
|
||||
as
|
||||
set nocount on
|
||||
|
||||
insert into PetTable
|
||||
values
|
||||
(
|
||||
@pet_id
|
||||
,@character_id
|
||||
,null
|
||||
,@AuthID
|
||||
,@server
|
||||
,@Name
|
||||
,@Job
|
||||
,@Level
|
||||
,@exp
|
||||
,@inventory_count
|
||||
,GetDate()
|
||||
,@Expire_Time
|
||||
|
||||
--펫 기본 정보 추가
|
||||
,@Vital
|
||||
,@Intelligence
|
||||
,@Strength
|
||||
,@Resilient
|
||||
,@Eloquence
|
||||
,@Charm
|
||||
,@Temper
|
||||
,@fHeight
|
||||
,@fWeight
|
||||
,0
|
||||
--펫 추가 정보
|
||||
,@hp
|
||||
,@mp
|
||||
,@physical_attack
|
||||
,@physical_defence
|
||||
,@magical_attack
|
||||
,@magical_defence
|
||||
,@loyalty
|
||||
|
||||
);
|
||||
|
||||
select * from PetTable with (READUNCOMMITTED) where pet_id = @pet_id
|
||||
|
||||
return @@error
|
||||
Loading…
Add table
Add a link
Reference in a new issue