Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 26.11.2005, 08:49   #1
SubSonic
Архивный участник
 
Join Date: Oct 2005
Posts: 22
Default Banning players

Hey,

first of all, i am sry if this question sounds stupid somehow but is there a way to ban a player from within the game? Maybe with a time until the ban should exist?

Actually i am banning people through the database. But querying the databse while players are online causes hughe lags so i am curious if there's another way.

Thanks in advance,
Sub
SubSonic is offline  
Old 26.11.2005, 09:03   #2
GMan
Архивный участник
 
Join Date: Sep 2005
Posts: 198
Default

As far as i know, you cant from with in the game but you can telnet to the cacheD server and send

Ban
Code:
39<tab>charName<tab>banHour<enter>
Delete Char
Code:
34<tab>charName<enter>
hope this helps you
GMan is offline  
Old 26.11.2005, 09:13   #3
SubSonic
Архивный участник
 
Join Date: Oct 2005
Posts: 22
Default

Will try it Thanks alot
SubSonic is offline  
Old 26.11.2005, 17:39   #4
eXcursion
Архивный участник
 
Join Date: Jun 2005
Posts: 49
Default

try peer guardian on ur server it blocks ips from seeing the server just debug character u wish to ban write down ip add to peer guardian and use the regular l2admin to ban they will have to change ip to see server again
eXcursion is offline  
Old 26.11.2005, 18:05   #5
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

thats probably why proxy servers were invented XD
however i find this info quite useful.
thx
toolpunk is offline  
Old 27.11.2005, 07:53   #6
elsedar
Архивный участник
 
Join Date: Nov 2005
Posts: 12
Default

Good idea to use l2admin or l2zsystem(Zachar's edition)
l2zsystem is more interesting and usefull that corean l2admin.
so use search to find links on l2zsystem.
it's on PHP
elsedar is offline  
Old 27.11.2005, 19:20   #7
SubSonic
Архивный участник
 
Join Date: Oct 2005
Posts: 22
Default

Hmm .... search won't bring up any result for l2zsytem nor google do.

Do you have any link for us?

Thanks in advance,
Sub
SubSonic is offline  
Old 26.06.2007, 16:15   #8
Muroff
Архивный участник
 
Join Date: Nov 2005
Posts: 9
Default

yea? pleees links? or where by it?
Muroff is offline  
Old 26.06.2007, 23:46   #9
l2serverfull
Архивный участник
 
Join Date: Sep 2006
Posts: 64
Default

i have full system l2zsytem for server off
l2serverfull is offline  
Old 27.06.2007, 01:36   #10
LethaL
Архивный участник
 
Join Date: Nov 2006
Posts: 86
Default

I'm pretty sure //stoplogin works to ban a player from ingame, Don't think it works for permanent bans, Not sure if it only bans the char or the whole account. Don't really have any experience from that command but it's worth a try imo.
LethaL is offline  
Old 27.06.2007, 10:34   #11
Drag
Архивный участник
 
Join Date: Mar 2006
Posts: 241
Default

Thats what I use to ban (using character name)

Code:
$name=$_POST['name'];
$char_id=GetCharID($name); //function to get char_id using nick
echo 'Kicking character <b>'.$name.'</b>:'.KickCharacterPacket($char_id).'<br>'; //cached function
$result=mssql_query("SELECT account_name FROM user_data WHERE char_id='$char_id'");
$r=mssql_fetch_array($result);
if($r[account_name]){
$account=$r[account_name];
echo'Ban account <b>'.$account.'</b>.';
mssql_select_db ($mssql_lin2db);
mssql_query("UPDATE user_account SET block_flag2='1' WHERE account='$account'");
mssql_select_db ($mssql_lin2world);}
It doesnt make any lags at all... cant.
Drag is offline  
Old 27.06.2007, 14:42   #12
Guaresnay
Архивный участник
 
Join Date: Oct 2005
Posts: 113
Default

PHP Code:
<?
function DisableCharacterPacket($char_id, $status){
    include(
"config.php"); // which include cached info
    
$buf=pack("cVV",20,$char_id,$status).tounicode("admin");
    
$cachedsocket=@fsockopen($cached['host'],$cached['port'],$errno,$errstr,1) or die($notconnected);
    
fwrite($cachedsocket,pack("s",(strlen($buf)+2)).$buf);
    
$len=unpack("v",fread($cachedsocket,2));
    
$rid=unpack("c",fread($cachedsocket,1));
        for(
$i=0;$i<(($len[1]-4)/4);$i++){
            
$read=unpack("i",fread($cachedsocket,4));$rs.=$read[1];
        }
    
fclose($cachedsocket);
    return 
GetError($rs); // GetError func is the errors array
}
?>
Guaresnay is offline  
Old 28.06.2007, 10:03   #13
rayovac
Архивный участник
 
Join Date: Apr 2007
Posts: 17
Default

You need command for Ban in MSSQL server?


Open Lin2World and:

BAN
update lin2db.dbo.user_account set warn_flag = 1, block_flag = 1, block_flag2 = 1, block_end_date = '2029-08-12 19:49:xx.xx0'where account = 'ACC';

UNBAN
update lin2db.dbo.user_account set warn_flag = 0, block_flag = 0, block_flag2 = 0, block_end_date = null
where account = 'ACC';
rayovac is offline  
Old 01.07.2007, 12:13   #14
Drag
Архивный участник
 
Join Date: Mar 2006
Posts: 241
Default

block_flag - ban without confirm
block_flag2 - ownage
warn_flag - nothing?

You can also use pay_stat xD This may be used with editing client .dat as email confirmation.
Drag is offline  
Old 01.07.2007, 12:55   #15
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

different block_flag == different client side message
You can like that ban for a reason
m4rk is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:05.