Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server
You last visited: Today at 04:09

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

Advertisement



[Release]How to Ban Player By CharName (100% Work)

Discussion on [Release]How to Ban Player By CharName (100% Work) within the SRO Private Server forum part of the Silkroad Online category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: May 2012
Posts: 37
Received Thanks: 7
[Release]How to Ban Player By CharName (100% Work)

It took almost three hours doing it!
but worth it
works 100%
You only need to enter the name of the char
time of the ban (I recommend leaving like this)
Ban reason

Quote:
--By Leandro ( nukertube ) --
USE [SRO_VT_SHARD]
GO
--------------------------------
DECLARE @ChrID INT;
DECLARE @CharName VARCHAR(64);
DECLARE @AccJID INT;
---------------------------------
SET @CharName = 'CharNameHere'---
---------------------------------
SET @ChrID=(SELECT CharID FROM _Char WHERE CharName16=@CharName)
SET @AccJID=(SELECT UserJID FROM _User WHERE CharID=@ChrID)
-----------------------------------------------------------------
USE SRO_VT_ACCOUNT
DECLARE @ID VARCHAR (64)
DECLARE @Reason VARCHAR(128)
DECLARE @Begin DATETIME
DECLARE @End DATETIME
SET @ID = (Select STRuserID FROM TB_User Where JID = @AccJID)

---------------------------------
SET @Reason = 'Ban Reason Here'
SET @Begin = '2012-05-01 00:00:00.000' -- Time Begin --
SET @End = '2040-01-01 00:00:00.000' -- Time End --
---------------------------------
---------------------------

INSERT [dbo].[_Punishment]
(
[UserJID],
[Type],
[Executor],
[Shard],
[CharName],
[CharInfo],
[PosInfo] ,
[Guide],
[Description],
[RaiseTime],
[BlockStartTime],
[BlockEndTime],
[PunishTime],
[Status]
)
VALUES
(
@AccJID,
1,
1,
0,
@CharName,
1,
1,
@Reason,
@Reason,
@Begin,
@Begin,
@End,
@End,
0);
----------------------------------------------------------
DECLARE @ReasonID INT
SET @ReasonID =
(Select SerialNo FROM _Punishment Where UserJID = @AccJID)
----------------------------------------------------------
INSERT [dbo].[_BlockedUser]
(
[UserJID],
[UserID],
[Type],
[SerialNo],
[TimeBegin],
[TimeEnd])
VALUES
(
@AccJID,
@ID,
1,
@ReasonID,
@Begin,
@End);

-----------------------------------------------------------------
SELECT StrUserID FROM TB_User WHERE JID = @AccJID
-----------------------------------------------------------------
--By Leandro ( nukertube ) --
Query To Unban Acc By CharName

Quote:
--By Leandro ( nukertube ) --
USE [SRO_VT_SHARD]
GO
--------------------------------
DECLARE @ChrID INT;
DECLARE @CharName VARCHAR(64);
DECLARE @AccJID INT;
---------------------------------
SET @CharName = 'CharNameHere'---
---------------------------------
SET @ChrID=(SELECT CharID FROM _Char WHERE CharName16=@CharName)
SET @AccJID=(SELECT UserJID FROM _User WHERE CharID=@ChrID)
--------------------------------
USE [SRO_VT_ACCOUNT]
--------------------------------
DELETE FROM [dbo].[_BlockedUser]
WHERE UserJID = @AccJID
DELETE FROM [dbo].[_Punishment]
WHERE UserJID = @AccJID

--By Leandro ( nukertube ) --

-----------------------------------------------------------------
SELECT StrUserID FROM TB_User WHERE JID = @AccJID
-----------------------------------------------------------------

the results box will appear banned player ID to facilitate the Disconect

copyrights from rage.zone from nukertube thanks .
Imagine* is offline  
Old 05/13/2012, 01:54   #2



 
Disco Teka's Avatar
 
elite*gold: 325
Join Date: Dec 2008
Posts: 14,543
Received Thanks: 8,717
Wrong section and already released by nukertube



#closed
Disco Teka is offline  
Thanks
1 User
Closed Thread


Similar Threads Similar Threads
[Release]How to Ban Player By CharName (100% Work)
03/26/2015 - SRO PServer Guides & Releases - 5 Replies
It took almost three hours doing it! but worth it works 100% You only need to enter the name of the char time of the ban (I recommend leaving like this) Ban reason hey, please Click --By Leandro ( nukertube ) -- USE
[RELEASE] Ban by CharName SQL script
09/13/2011 - Shaiya PServer Development - 11 Replies
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. UPDATE .. SET = 'NewStatus' WHERE UserUID = (SELECT UserUID FROM .. WHERE Del = 0 and CharName...
[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)



All times are GMT +2. The time now is 04:09.


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