Code:
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
/* ??? ??(XP, BP, KillCount, DeathCount) ???? */
ALTER PROC [dbo].[spUpdateCharInfoData]
@XPInc int,
@BPInc int,
@KillInc int,
@DeathInc int,
@CID int
AS
SET NOCOUNT ON
DECLARE @Coins int
DECLARE @AID int
SELECT @AID=AID FROM Character(nolock) WHERE CID = @CID
SELECT @Coins = @KillInc * 1
UPDATE Character
SET XP=XP+(@XPInc), BP=BP+(@BPInc), KillCount=KillCount+(@KillInc), DeathCount=DeathCount+(@DeathInc)
WHERE CID=@CID
UPDATE Account
SET Coins=Coins+(@Coins)
WHERE AID=@AID