Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > 4Story
You last visited: Today at 05:01

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HowTo] Enabling Timebans on servers

Discussion on [HowTo] Enabling Timebans on servers within the 4Story forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 12
Join Date: Feb 2013
Posts: 442
Received Thanks: 246
[HowTo] Enabling Timebans on servers

Hey
Für mich hat der timeban nie funktioniert, also hab ich ein kleinen code gemacht der mir die user aus dem TUSERPROTECTED rauslöscht, wo die durantion überschritten wurde. Einträge ohne durantion(NULL) werden ignoriert.

Einfach in die tlogin funktion in tglobal das nach "SET @dwPremiumID = 0 " das einfügen:
Code:
DELETE FROM [TUSERPROTECTED] WHERE Not DATEADD(day,dwDuration,startTime) > GETDATE() and not dwDuration is NULL
Viel spass
Mfg


---english
Hey
Cause the timaban function never worked for me, i have a little snippet of code for you:
Code:
DELETE FROM [TUSERPROTECTED] WHERE Not DATEADD(day,dwDuration,startTime) > GETDATE() and not dwDuration is NULL
Just paste it after the last Set in the first block ("SET @dwPremiumID = 0 " ) and it deletes all bans where the dwduration is not NULL
Have fun
AllCowsAreBurgers is offline  
Thanks
4 Users
Old 03/22/2015, 17:09   #2
 
elite*gold: 0
Join Date: Oct 2010
Posts: 546
Received Thanks: 152
Good, this is my timeban code
Code:
SELECT TOP 1 @startTime = startTime, @dwDuration = dwDuration, @bEternal = bEternal 
	FROM TUSERPROTECTED 
	WHERE dwUserID = @dwUserID 
	AND DATEADD( DAY, dwDuration, startTime) >= GETDATE()

	SELECT dwUserID FROM TUSERPROTECTED  WHERE dwUserID = @dwUserID  AND DATEADD( DAY, dwDuration, startTime) >= GETDATE()
	IF (@@ROWCOUNT > 0)
	BEGIN
		RETURN 7
	END

	
/*BAN IP OR BAN ETERNAL*/
	SELECT dwUserID FROM TUSERPROTECTED  WHERE @szLoginIP = IP AND DATEADD( DAY, dwDuration, startTime) >= GETDATE()
	IF (@@ROWCOUNT > 0)
	BEGIN
		RETURN 7
	END

	SELECT dwUserID FROM TUSERPROTECTED 	WHERE dwUserID = @dwUserID AND	dwDuration = 0	
	IF (@@ROWCOUNT > 0)
	BEGIN
		RETURN 7
	END

	SELECT dwUserID FROM TUSERPROTECTED 	WHERE @szLoginIP = IP AND dwDuration = 0	
	IF (@@ROWCOUNT > 0)
	BEGIN
		RETURN 7
	END
/*BAN IP AND BAN ETERNAL*/

	SELECT TOP 1 @startTime = startTime, @dwDuration = dwDuration, @bEternal = bEternal 
	FROM TUSERPROTECTED 
	WHERE dwUserID = @dwUserID 
	AND DATEADD( DAY, dwDuration, startTime) >= GETDATE()

	SELECT dwUserID FROM TUSERPROTECTED  WHERE dwUserID = @dwUserID  AND DATEADD( DAY, dwDuration, startTime) >= GETDATE()
	IF @@ROWCOUNT > 0
	BEGIN
		RETURN 7
	END

	SELECT dwUserID FROM TUSERPROTECTED  WHERE @szLoginIP = IP  AND DATEADD( DAY, dwDuration, startTime) >= GETDATE()
	IF @@ROWCOUNT > 0
	BEGIN
		RETURN 7
	END
julianjl is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Timebans...immer wieder. Kein Plan warum.
03/13/2012 - Diablo 2 - 5 Replies
Hey. Ich lasse momentan Baalbots laufen und werde andauernd timebanned. Bei MF games gibts es überhaupt keine Probleme. Die Baalgames dauern ca. 5 minuten, da ich vorher noch was kille um die gametime hochzutreiben. Warte in der Lobby 30 Sekunden und komme somit auf ca. 10 Games/stunde. Nach einer Stunde kommt dann schon der Bann... und das jedes mal, ich weiß halt einfach echt nicht warum.
Need help enabling these hacks.
09/30/2009 - Dekaron - 2 Replies
Hi, I followed a few tutorials on this site and downloaded a few hack programs from here to assist me in game. Problem is... I can't get em to work. I followed alvin's youtube guild but whenever I try to open the dekaron.exe file with NO-XIGN program and try to run it, it was start. Can someone please assist me? thanks.
was tun gegen timebans??
09/25/2008 - Diablo 2 - 3 Replies
also ich bekomme atm oft und viele timebans...die dauern meist 4-5 std und das regt einen ziemlich auf...würd es was bringen die ganzen delays hochzuschrauben?
Enabling Help...
01/19/2008 - Conquer Online 2 - 1 Replies
Ive Download so much CO hacks and stuff and they all dont work :mad: could someone please help me solve this problem...
Enabling help.htm
06/01/2006 - Lineage 2 - 0 Replies
On a c3 server that i play on, help is disabled, how can i get it to show? ^^ Possible?



All times are GMT +1. The time now is 05:01.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.