Well I was messing around with the DB modified a proc so every time you kill some one you get a coin :
I know I know this has been released here before but for the mpog site, I like this proc better and it seems to run smoothly with the gmeCode: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



Reply With Quote


