USE [MuOnline]ALTER Procedure [dbo].[WZ_SetMasterResetInfo]@Account varchar(10),@Name varchar(10),@Reset int,@MasterReset int,@MasterResetDay int,@MasterResetWek int,@MasterResetMon intASBEGINSET NOCOUNT ONSET XACT_ABORT ONUPDATE Character SET ResetCount=@Reset,MasterResetCount=@MasterReset WHERE AccountID=@Account AND Name=@NameIF EXISTS (SELECT AccountLevel FROM MEMB_INFO WHERE memb___id = @Account AND AccountLevel = 0)BEGINUPDATE CashShopData SET WCoinC = WCoinC + 5000 WHERE AccountID = @AccountUPDATE CashShopData SET WCoinP = WCoinP + 300 WHERE AccountID = @AccountUPDATE CashShopData SET GoblinPoint = GoblinPoint + 1000 WHERE AccountID = @AccountENDIF EXISTS (SELECT AccountLevel FROM MEMB_INFO WHERE memb___id = @Account AND AccountLevel = 1)BEGINUPDATE CashShopData SET WCoinC = WCoinC + 5000 WHERE AccountID = @AccountUPDATE CashShopData SET WCoinP = WCoinP + 300 WHERE AccountID = @AccountUPDATE CashShopData SET GoblinPoint = GoblinPoint + 1000 WHERE AccountID = @AccountENDIF EXISTS (SELECT AccountLevel FROM MEMB_INFO WHERE memb___id = @Account AND AccountLevel = 2)BEGINUPDATE CashShopData SET WCoinC = WCoinC + 5000 WHERE AccountID = @AccountUPDATE CashShopData SET WCoinP = WCoinP + 300 WHERE AccountID = @AccountUPDATE CashShopData SET GoblinPoint = GoblinPoint + 1000 WHERE AccountID = @AccountENDIF EXISTS (SELECT AccountLevel FROM MEMB_INFO WHERE memb___id = @Account AND AccountLevel = 3)BEGINUPDATE CashShopData SET WCoinC = WCoinC + 5000 WHERE AccountID = @AccountUPDATE CashShopData SET WCoinP = WCoinP + 300 WHERE AccountID = @AccountUPDATE CashShopData SET GoblinPoint = GoblinPoint + 1000 WHERE AccountID = @AccountENDSET NOCOUNT OFFSET XACT_ABORT OFFEND