Newbie Spellweaver
- Joined
- Jun 16, 2009
- Messages
- 23
- Reaction score
- 0
To make VIP Account auto expire, edit stored procedure "WZ_GetAccountLevel" in database
he does not create the database .[dbo].[WZ_GetAccountLevel]
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
To make VIP Account auto expire, edit stored procedure "WZ_GetAccountLevel" in database
he does not create the database .[dbo].[WZ_GetAccountLevel]
can you post the whole code in text format too?
USE [MuOnline]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER Procedure [dbo].[WZ_GetAccountLevel]
[USER=162874]account[/USER] varchar(10)
AS
BEGIN
SET NOCOUNT ON
SET XACT_ABORT ON
DECLARE @CurrentAccountLevel int
DECLARE @CurrentAccountExpireDate smalldatetime
SELECT @CurrentAccountLevel = AccountLevel, @CurrentAccountExpireDate = AccountExpireDate FROM MEMB_INFO WHERE memb___id = [USER=162874]account[/USER]
IF (@CurrentAccountLevel <> 0 AND GETDATE() > @CurrentAccountExpireDate)
BEGIN
SET @CurrentAccountLevel = 0
UPDATE MEMB_INFO SET AccountLevel = @CurrentAccountLevel, AccountExpireDate = @CurrentAccountExpireDate WHERE memb___id = [USER=162874]account[/USER]
END
SELECT @CurrentAccountLevel as AccountLevel, @CurrentAccountExpireDate as AccountExpireDate
SET NOCOUNT OFF
SET XACT_ABORT OFF
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
here:
Code:USE [MuOnline] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER Procedure [dbo].[WZ_GetAccountLevel] [USER=162874]account[/USER] varchar(10) AS BEGIN SET NOCOUNT ON SET XACT_ABORT ON DECLARE @CurrentAccountLevel int DECLARE @CurrentAccountExpireDate smalldatetime SELECT @CurrentAccountLevel = AccountLevel, @CurrentAccountExpireDate = AccountExpireDate FROM MEMB_INFO WHERE memb___id = [USER=162874]account[/USER] IF (@CurrentAccountLevel <> 0 AND GETDATE() > @CurrentAccountExpireDate) BEGIN SET @CurrentAccountLevel = 0 UPDATE MEMB_INFO SET AccountLevel = @CurrentAccountLevel, AccountExpireDate = @CurrentAccountExpireDate WHERE memb___id = [USER=162874]account[/USER] END SELECT @CurrentAccountLevel as AccountLevel, @CurrentAccountExpireDate as AccountExpireDate SET NOCOUNT OFF SET XACT_ABORT OFF END GO SET ANSI_NULLS OFF GO SET QUOTED_IDENTIFIER OFF GO
To add VIP to the account, send to MuOnline database following query:
UPDATE MEMB_INFO SET AccountLevel = [COLOR=red]1[/COLOR], AccountExpireDate = GETDATE() + [COLOR=red]30[/COLOR] WHERE memb___id = '[COLOR=red]LOGIN[/COLOR]'
LEGEND:
[COLOR=red]1[/COLOR] - Account Level (AL0, AL1, AL2, AL3)
[COLOR=red]30[/COLOR] - VIP Days
[COLOR=red]LOGIN[/COLOR] - Account Login[/COLOR][/SIZE][SIZE=1][COLOR=black][SIZE=1][COLOR=black][SIZE=1][COLOR=black]
[h=3][/h]Code:To add VIP to the account, send to MuOnline database following query: UPDATE MEMB_INFO SET AccountLevel = [COLOR=red]1[/COLOR], AccountExpireDate = GETDATE() + [COLOR=red]30[/COLOR] WHERE memb___id = '[COLOR=red]LOGIN[/COLOR]' LEGEND: [COLOR=red]1[/COLOR] - Account Level (AL0, AL1, AL2, AL3) [COLOR=red]30[/COLOR] - VIP Days [COLOR=red]LOGIN[/COLOR] - Account Login[/COLOR][/SIZE][SIZE=1][COLOR=black][SIZE=1][COLOR=black][SIZE=1][COLOR=black]
Here you are!
[/COLOR][/SIZE][/COLOR][/SIZE]
To make VIP Account auto expire, edit stored procedure "WZ_GetAccountLevel" in database
he does not create the database .[dbo].[WZ_GetAccountLevel]
have somebody procedure for Auto expire BAN (Auto Unban)?
Run them in new Query :vany tutorial on how to put that code thanks my used season 6 epi 3
any season ithink
really =) bro you have a vid tutorial please i am new please help me =)
any tutorial on how to put that code thanks my used season 6 epi 3
here:
Code:USE [MuOnline] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER Procedure [dbo].[WZ_GetAccountLevel] @[I][B][URL="http://forum.ragezone.com/members/162874.html"]account[/URL][/B][/I] varchar(10) AS BEGIN SET NOCOUNT ON SET XACT_ABORT ON DECLARE @CurrentAccountLevel int DECLARE @CurrentAccountExpireDate smalldatetime SELECT @CurrentAccountLevel = AccountLevel, @CurrentAccountExpireDate = AccountExpireDate FROM MEMB_INFO WHERE memb___id = @[I][B][URL="http://forum.ragezone.com/members/162874.html"]account[/URL][/B][/I] IF (@CurrentAccountLevel <> 0 AND GETDATE() > @CurrentAccountExpireDate) BEGIN SET @CurrentAccountLevel = 0 UPDATE MEMB_INFO SET AccountLevel = @CurrentAccountLevel, AccountExpireDate = @CurrentAccountExpireDate WHERE memb___id = @[I][B][URL="http://forum.ragezone.com/members/162874.html"]account[/URL][/B][/I] END SELECT @CurrentAccountLevel as AccountLevel, @CurrentAccountExpireDate as AccountExpireDate SET NOCOUNT OFF SET XACT_ABORT OFF END GO SET ANSI_NULLS OFF GO SET QUOTED_IDENTIFIER OFF GO