![]() |
|
|
#1 |
|
Архивный участник
Join Date: Oct 2005
Posts: 22
|
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 |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Sep 2005
Posts: 198
|
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> Code:
34<tab>charName<enter> |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Oct 2005
Posts: 22
|
Will try it
Thanks alot
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Jun 2005
Posts: 49
|
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
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
thats probably why proxy servers were invented XD
however i find this info quite useful. thx
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Nov 2005
Posts: 12
|
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 |
|
|
|
|
#7 |
|
Архивный участник
Join Date: Oct 2005
Posts: 22
|
Hmm .... search won't bring up any result for l2zsytem nor google do.
Do you have any link for us? Thanks in advance, Sub |
|
|
|
|
#8 |
|
Архивный участник
Join Date: Nov 2005
Posts: 9
|
yea? pleees links? or where by it?
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Sep 2006
Posts: 64
|
i have full system l2zsytem for server off
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Nov 2006
Posts: 86
|
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.
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Mar 2006
Posts: 241
|
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);}
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Oct 2005
Posts: 113
|
PHP Code:
|
|
|
|
|
#13 |
|
Архивный участник
Join Date: Apr 2007
Posts: 17
|
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'; |
|
|
|
|
#14 |
|
Архивный участник
Join Date: Mar 2006
Posts: 241
|
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. |
|
|
|
|
#15 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
different block_flag == different client side message
You can like that ban for a reason
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|