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
30
decomp/schema/RustyHearts/procs/up_update_pet_status.sql
Normal file
30
decomp/schema/RustyHearts/procs/up_update_pet_status.sql
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
CREATE PROCEDURE [dbo].[up_update_pet_status]
|
||||
@pet_id [uniqueidentifier]
|
||||
,@character_id [uniqueidentifier]
|
||||
,@hp INT
|
||||
,@mp INT
|
||||
,@physical_attack FLOAT
|
||||
,@physical_defence FLOAT
|
||||
,@magical_attack FLOAT
|
||||
,@magical_defence FLOAT
|
||||
,@loyalty FLOAT
|
||||
|
||||
as
|
||||
set nocount on
|
||||
|
||||
UPDATE dbo.PetTable SET
|
||||
hp = @hp
|
||||
,mp = @mp
|
||||
,physical_attack = @physical_attack
|
||||
,physical_defence = @physical_defence
|
||||
,magical_attack = @magical_attack
|
||||
,magical_defence = @magical_defence
|
||||
,loyalty = @loyalty
|
||||
|
||||
|
||||
|
||||
where pet_id = @pet_id;
|
||||
|
||||
select * from dbo.PetTable with (READUNCOMMITTED) where character_id = @character_id
|
||||
|
||||
return @@error
|
||||
Loading…
Add table
Add a link
Reference in a new issue