Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Dekaron > Dekaron Private Server
You last visited: Today at 22:33

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

Advertisement



2 SQL SCRIPTS TO BAN HACKERS!

Discussion on 2 SQL SCRIPTS TO BAN HACKERS! within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
҉ THT ҉'s Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 912
Received Thanks: 250
2 SQL SCRIPTS TO BAN HACKERS!

FIRST SCRIPT
Lets ban the ppl that has to many stats
Its a BAN script not a simple delete from user_character.. it will ban the whole account..
Its not a stored procedure its just a "job".
Replace the MAX STATS with a stats that players can have at max reborn/lvl.
Replace the GM CHARACTER NOs with character no's for gms that can have offer the limit

PHP Code:
UPDATE                                        account.dbo.user_profile
SET                                            login_tag
='N'            
WHERE user_no IN(
SELECT user_no FROM character.dbo.user_character WHERE character_no IN(
SELECT DISTINCT character_no FROM character.dbo.user_character WHERE 

                                            wstr 
wdex wcon wspr MAX STATS

AND            character_no NOT LIKE 'GM CHARACTER NOs'
AND            character_no NOT LIKE 'GM CHARACTER NOs'
AND            character_no NOT LIKE 'GM CHARACTER NOs'
)) 
SECOND SCRIPT
Lets ban the ppl that has GM/ILLIGAL item in hes inventory
Its a BAN script not a simple delete from user_character.. it will ban the whole account....
Replace GM ITEM INDEX with index that are forbidden to have.
Replace CHARACTER NO with gm character_no that can have/wear that index.

PHP Code:
UPDATE                                        account.dbo.user_profile
SET                                            login_tag
='N'            
WHERE user_no IN(
SELECT user_no FROM character.dbo.user_character WHERE character_no IN(
SELECT DISTINCT character_no FROM character.dbo.user_bag WHERE 

                                            windex 
'GM ITEM INDEX'

AND        character_no NOT LIKE 'GM CHARACTER NO'
AND        character_no NOT LIKE 'GM CHARACTER NO'
AND        character_no NOT LIKE 'GM CHARACTER NO'
)) 

If you just play a lil with this script you can make more ban scripts with it..

Its just a simple script, if you dont love it, it doesnt mean you can flame my, cuz you didnt pay my anything for it
҉ THT ҉ is offline  
Thanks
4 Users
Old 10/07/2010, 14:09   #2
 
*JayKay*'s Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 472
Received Thanks: 276
a question here put the index of prohibited items?
windex = 'GM ITEM INDEX'

and here the name of the GM can have the items?
AND character_no NOT LIKE 'GM CHARACTER NO'

have to create a job to run this?

f you can answer my questions thank you.
*JayKay* is offline  
Old 10/07/2010, 14:24   #3
 
҉ THT ҉'s Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 912
Received Thanks: 250
Quote:
Originally Posted by arthurvalenca View Post
a question here put the index of prohibited items?
windex = 'GM ITEM INDEX'

and here the name of the GM can have the items?
AND character_no NOT LIKE 'GM CHARACTER NO'

have to create a job to run this?

f you can answer my questions thank you.
First question: YES
Second question: You must put this in a job,
step 1 is the script
second step is wait
҉ THT ҉ is offline  
Thanks
1 User
Old 10/07/2010, 14:26   #4
 
*JayKay*'s Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 472
Received Thanks: 276
thanks for help
*JayKay* is offline  
Old 10/07/2010, 23:20   #5
 
pieter's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 568
Received Thanks: 176
that max stats job will lag the **** out of your server once it grows abit..

u should avoid looping jobs where u can and find alternative ways
pieter is offline  
Old 10/07/2010, 23:52   #6
 
*JayKay*'s Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 472
Received Thanks: 276
to add two more items in the script and so?

windex = 'XXXX' AND Windex = 'XXXXX' AND Windex = 'XXXX'

correct me if I'm wrong please
*JayKay* is offline  
Old 10/08/2010, 00:05   #7
 
҉ THT ҉'s Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 912
Received Thanks: 250
Quote:
Originally Posted by pieter View Post
that max stats job will lag the **** out of your server once it grows abit..

u should avoid looping jobs where u can and find alternative ways
uuh yes ofc,, it must be used like stored procedure



no use

AND WHERE windex = 'INDEX'
҉ THT ҉ is offline  
Old 10/08/2010, 00:51   #8
 
*JayKay*'s Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 472
Received Thanks: 276
anyone can help I'm not getting add more items to delete as I put more stuff to not accept someone please help i put the script to put more items
*JayKay* is offline  
Old 10/08/2010, 12:09   #9
 
pieter's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 568
Received Thanks: 176
its pretty basic SQL

for 1 item

WHERE wIndex=1234

for more items

WHERE wIndex=1234 OR wIndex=4321 OR wIndex=4132 OR (wIndex BETWEEN 64989 AND 65000)

to ignore GM chars add

AND character_no NOT IN (select character_no from user_character where character_name like '[GM]%')

its basic programming language

google for a basig TSQL tutorial...
pieter is offline  
Thanks
1 User
Old 10/08/2010, 15:35   #10
 
draegon71's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 284
Received Thanks: 614
Nice
draegon71 is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 22:34.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.