Autor Tema: Query 100% Master Reset MuEmu  (Leído 2455 veces)

Desconectado cesarvha

  • *


  • 17

    9

    119
  • br
  • https://brasildedicados.com/
    • 65 996008011 65 996008011
Olá amigos da CreandoMU Fiquei muito tempo atrás dessa query como não consegui eu paguei por ela
e hoje estou doando a todos bom proveitos a todos .


Código
USE [MuOnline]

ALTER Procedure [dbo].[WZ_SetMasterResetInfo]
@Account varchar(10),
@Name varchar(10),
@Reset int,
@MasterReset int,
@MasterResetDay int,
@MasterResetWek int,
@MasterResetMon int
AS
BEGIN

SET NOCOUNT ON
SET XACT_ABORT ON

UPDATE Character SET ResetCount=@Reset,MasterResetCount=@MasterReset WHERE AccountID=@Account AND Name=@Name

IF EXISTS (SELECT AccountLevel FROM MEMB_INFO WHERE memb___id = @Account AND AccountLevel = 0)
BEGIN
UPDATE CashShopData SET WCoinC = WCoinC + 5000 WHERE AccountID = @Account
UPDATE CashShopData SET WCoinP = WCoinP + 300 WHERE AccountID = @Account
UPDATE CashShopData SET GoblinPoint = GoblinPoint + 1000 WHERE AccountID = @Account
END

IF EXISTS (SELECT AccountLevel FROM MEMB_INFO WHERE memb___id = @Account AND AccountLevel = 1)
BEGIN
UPDATE CashShopData SET WCoinC = WCoinC + 5000 WHERE AccountID = @Account
UPDATE CashShopData SET WCoinP = WCoinP + 300 WHERE AccountID = @Account
UPDATE CashShopData SET GoblinPoint = GoblinPoint + 1000 WHERE AccountID = @Account
END

IF EXISTS (SELECT AccountLevel FROM MEMB_INFO WHERE memb___id = @Account AND AccountLevel = 2)
BEGIN
UPDATE CashShopData SET WCoinC = WCoinC + 5000 WHERE AccountID = @Account
UPDATE CashShopData SET WCoinP = WCoinP + 300 WHERE AccountID = @Account
UPDATE CashShopData SET GoblinPoint = GoblinPoint + 1000 WHERE AccountID = @Account
END

IF EXISTS (SELECT AccountLevel FROM MEMB_INFO WHERE memb___id = @Account AND AccountLevel = 3)
BEGIN
UPDATE CashShopData SET WCoinC = WCoinC + 5000 WHERE AccountID = @Account
UPDATE CashShopData SET WCoinP = WCoinP + 300 WHERE AccountID = @Account
UPDATE CashShopData SET GoblinPoint = GoblinPoint + 1000 WHERE AccountID = @Account
END
SET NOCOUNT OFF
SET XACT_ABORT OFF

END
« Última Modificación: Febrero 26, 2021, 01:05:25 pm por Louis »
BRASIL DEDICADOS | LIDER EM QUALIDADE
ACESSE: https://brasildedicados.com/

Gracias:


Desconectado cesarvha

  • *


  • 17

    9

    119
  • br
  • https://brasildedicados.com/
    • 65 996008011 65 996008011
BRASIL DEDICADOS | LIDER EM QUALIDADE
ACESSE: https://brasildedicados.com/

Gracias:


 

.