Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server > Shaiya PServer Development
You last visited: Today at 11:29

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

Advertisement



[RELEASE] Ban by CharName SQL script

Discussion on [RELEASE] Ban by CharName SQL script within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
BodySalvage's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 56
Received Thanks: 501
Post [RELEASE] Ban by CharName SQL script

I'm releasing this to assist those having issues with the ban chat trigger not functioning. Its a simple script but infinitely useful on several scales. With this you can ban or unban accounts simply by inputting your desired Status and the CharName of the player in question. This includes ingoring the return on deleted toons as well. Check it out.

Code:
UPDATE [PS_UserData].[dbo].[Users_Master]
  SET [Status] = 'NewStatus'
  WHERE UserUID = (SELECT UserUID
                   FROM [PS_GameData].[dbo].[Chars]
                   WHERE Del  = 0 and CharName = 'CharacterName')
And with simple additions you can globally ban an IP listed for the registration of that account with this.

Code:
UPDATE [PS_UserData].[dbo].[Users_Master]
  SET [Status] = 'NewStatus'
  WHERE UserIp = (SELECT UserIp
                 FROM [PS_UserData].[dbo].[Users_Master]  
                 WHERE UserUID = (SELECT UserUID
                                 FROM [PS_GameData].[dbo].[Chars]
                                 WHERE Del = 0 and CharName = 'CharacterName'))
I know you can easily change your IP but this would aid in removing all accounts created at the IP of the player which can help some people.

For nubs like me, all you do is change NewStatus and CharacterName to the desired values and execute.
BodySalvage is offline  
Thanks
2 Users
Old 09/12/2011, 10:11   #2
 
elite*gold: 0
Join Date: Feb 2011
Posts: 214
Received Thanks: 205
Just want to give list of the status you can change

Quote:
‒-1 - Connection with server has been disconnected.
‒-2 - Can't connect with the account since it's not selected as free challenger.
‒-3 - Account doesn't exit.
‒-4 - ID in process of termination following user's request.
‒-5 - Your account is blocked now. You can't log into the game.
‒-6 - Your account is blocked now. You can't log into the game.
‒-7 - Account still restricted.
‒-8 - Connection with server has been disconnected.
‒-9 - Your account is blocked now. You can't log into the game.
‒-10 - Account still restricted.
‒-11 - Account still restricted.
‒-12 - ID in process of termination following user's request.
‒-13 - Your account is blocked now. You can't log into the game.
‒-14 - Your account is blocked now. You can't log into the game.
‒-15 - Account still restricted.
‒-16 - ID in process of termination following user's request.
‒0 - Normal account
‒1 - Stop (Can't connect to the game following user's request.)
‒2 - Block (Game) (Account doesn't exit.)
‒4 - Block (Web) (Account doesn't exit.)
‒6 - Block (Game + Web) (Your account is blocked now. You can't log into the game.)
‒8 - Block (Character)
‒9 - Account still restricted.[/COLOR]
‒16 - GM permissions 1 – GM with full Operator's permissions
‒32 - GM permissions 2 – GM with less permissions than 16
‒48 - GM permissions 3 – GM with less permissions than 32
‒64 - GM permissions 4 – GM with less permissions than 48
‒80 - GM permissions 5 – GM with least Operator powers
‒128 - Withdrawal
‒256 - Withdrawal (3 days processing)
‒512 – Withdrawal 15 days
‒17~81 - GM + stop


"Credits go to me and SDG Team"
Xx.LaMin.xX is offline  
Old 09/12/2011, 13:03   #3
 
elite*gold: 0
Join Date: Jul 2009
Posts: 408
Received Thanks: 180
Hey Lamin, i know all about the Status and everything already, but do you perhaps know the exact "rights" each level of GM has?

I mean, it must be noted down somewhere in the game files.. i just havnt been able to find it atall yet xD
viper4513 is offline  
Old 09/12/2011, 14:42   #4
 
elite*gold: 0
Join Date: Aug 2010
Posts: 241
Received Thanks: 255
Try using JOINS instead of Subqueries, It will make the processing better.
zargon05 is offline  
Thanks
3 Users
Old 09/12/2011, 19:57   #5
 
elite*gold: 0
Join Date: Feb 2011
Posts: 214
Received Thanks: 205
Hey viper i havnt found anything like you said.. yea must be noted down on somewhere. anyways you can change your status and test the FULL GM stuffs? that way you will know i guess xD
Xx.LaMin.xX is offline  
Old 09/12/2011, 21:28   #6
 
elite*gold: 0
Join Date: Jul 2009
Posts: 408
Received Thanks: 180
Already tried it.. could only work out a few differences in the 80 admin status.. like they cant do any /getitem /mmake /nmake and so on..

Guess it will be a thing for me to test out and see what the differences between them all actually is.
viper4513 is offline  
Old 09/12/2011, 23:24   #7
 
[Admin]Snuggle's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 942
Received Thanks: 1,066
I'm not sure if you realize this or not but this script has already been released by Ariez in his SQL scripts and maybe others o.O
Not sure too lazy to search :P
[Admin]Snuggle is offline  
Thanks
1 User
Old 09/12/2011, 23:51   #8
 
-III-'s Avatar
 
elite*gold: 0
Join Date: Mar 2011
Posts: 212
Received Thanks: 264
Quote:
Originally Posted by viper4513 View Post
Already tried it.. could only work out a few differences in the 80 admin status.. like they cant do any /getitem /mmake /nmake and so on..

Guess it will be a thing for me to test out and see what the differences between them all actually is.


Prof updated this quite some time ago. One of the updates includes a full break down of what commands are available for each status.
-III- is offline  
Thanks
1 User
Old 09/13/2011, 08:55   #9
 
elite*gold: 0
Join Date: Jul 2009
Posts: 408
Received Thanks: 180
Ahh thank you very much for that III, i had the older version that didnt show that :P Silly me.
viper4513 is offline  
Old 09/13/2011, 09:44   #10
 
elite*gold: 0
Join Date: Feb 2011
Posts: 214
Received Thanks: 205
III, that is what i posted on here xD
Xx.LaMin.xX is offline  
Old 09/13/2011, 11:36   #11
 
elite*gold: 0
Join Date: Jul 2009
Posts: 408
Received Thanks: 180
@LaMin He aimed his message at me, the info you posted was in that guide.. but the info i was asking for wasnt in the older version of that guide. He posted saying Pro updated his guide, with the new information (about the difference of GM status)
viper4513 is offline  
Old 09/13/2011, 12:53   #12
 
elite*gold: 0
Join Date: Feb 2011
Posts: 214
Received Thanks: 205
oh oh.. my bad then :P, sorry
Xx.LaMin.xX is offline  
Reply

Tags
ban, character ban, ip ban, shaiya


Similar Threads Similar Threads
Charname? Forgot :o
04/03/2011 - Flyff Private Server - 4 Replies
Hello ppl, An half year ago I started a flyff server, and had the error while making a char... "Charactername Already in use" But I didn't made a char yet... Now I made a server again and got the same error, but idk what to do now.. Someone knows how to fix?
[Release]Give DP through CharName SQL
01/25/2011 - Shaiya PServer Guides & Releases - 11 Replies
I know this script is kind of silly, and probably badly coded, but I wanted to try. It works, so I thought I'd give it out to others. ._. USE PS_GameData DECLARE @CharName varchar(30), @UserUID int, @UserID varchar(18), @Point int, @Points int, @Point2 int
Paar Kleinigkeiten Release (GM faken; Längeren Charname)
08/19/2010 - Metin2 Private Server - 0 Replies
So ich geb das hier in die Discussions-Section da ich finde das es nicht wirklich viel von nem Release hat. Nr1 Längeren Charname fangen wir an ~~ locale_de.epk entpacken (erklär ich nicht extra) nun haben wir einen Source/locale/de/ui Ordner (bei bereits entpackten clients einfach in locale/de/ui reingehen)
[Help]Charname need to have....
02/14/2009 - Dekaron Private Server - 4 Replies
Ok i editet soem stuff and dont get the massage XXXXX and then i get the massage Charakter need to have atleast 4 charaters in it. Anyone can help me or gimme a hint how i can pass that ? ->or need i any programms like OllyDbG ? greets and thx



All times are GMT +1. The time now is 11:30.


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.