Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Server Modifications ONLY! (https://postpacific.mmorpg-game.online/forumdisplay.php?f=28)
-   -   [share] autocensor/stopsay (https://postpacific.mmorpg-game.online/showthread.php?t=5977)

astrid 09.10.2006 09:21

[share] autocensor/stopsay
 
monitor basic, trade and shout channels.
punishment: chatblock to user

cached_ip - IP of your cached
dictonary - "bad words" dictonary, 1 word (regular expression pattern) per line
chat_log_dir - path to server chat logs, it monitor log files by last access time
punish - on|off you can test new dictonary with this
punish_time - time to block, minutes

be careful with dictonary, matches is simple regexp on whole string.

tested on 200 online average, .NET required.

hope it will help :)

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
antimatbyastrid.rar — 5126 байт

TuMBLer 09.10.2006 09:37

astrid, thanks!
will test it!

hater 09.10.2006 10:53

astrid, thnx for sharing.
Mm, I run it, but nothing happened :(
May be because
Quote:

.NET required
?
But I already have Microsoft .NET Framework(x64)..
May be it doesnt work because my server is already running?

Xari0n 09.10.2006 11:01

Wow спасибо Астрид :)

hel 09.10.2006 17:14

Thanks astrid.
Maybe my, from now, players will stop insulting other players on server. :)

hater 09.10.2006 18:23

//ru
Кто-нибудь добился нормальной работы? :(
У меня не реагирует на мат никак.. Коннектов к CacheD'у нет.
ХЗ, в чем дело может быть..

Dmytro 09.10.2006 19:14

Quote:

Originally Posted by hater (Post 69742)
//ru
Кто-нибудь добился нормальной работы? :(
У меня не реагирует на мат никак.. Коннектов к CacheD'у нет.
ХЗ, в чем дело может быть..

На сколько я понял она по логам рубит, а вот не у всех в логах пишет наверняка по русски (одни вопросики). =)

m4rk 09.10.2006 19:18

Thx a lot, I'll test :D

PS: mmmh ¿could you add a feature to freeze the character? Would be helpful for some idiots saying really haaard insults XD

hater 09.10.2006 19:24

Все, допер =)
Забыл про директорию с логами, думал что не те логи.
Все, работает супер.
Автору респект.

FidoW 09.10.2006 20:13

Quote:

Originally Posted by m4rk (Post 69745)
Thx a lot, I'll test :D

PS: mmmh ¿could you add a feature to freeze the character? Would be helpful for some idiots saying really haaard insults XD

Would be interesting can add owns cached functions... like teleport (to jail) .. etc... what packet are u using to mute character ? maybe #18 PunishCharPacket("ddd") ¿???

I have a good CP write in PHP ... to teleport... ban... make announces... but this tool is definitive the best... not more bad words ingame hahaha, i have your tool running right now and works very well. Thx a lot!

Shawnmb 09.10.2006 20:40

A useful feature suggestion would be to prevent spamming (ie people that sign in on walker and spam channels) using this method. Just a suggestion, maybe it could be implimented.

hex0id 10.10.2006 06:02

Quote:

Originally Posted by Shawnmb (Post 69760)
A useful feature suggestion would be to prevent spamming (ie people that sign in on walker and spam channels) using this method. Just a suggestion, maybe it could be implimented.

It can be done with AmpeDx64 though.

2astrid, your antimat looking mats in nicknames also! I think that such check is not needed ;)

Code:

user: 3336->xer
10/10/2006 13:11:xx.xx0, 1,3336,0,-42654,159208,1360,я бы сходил на рейда,XEROX,


Charis 10.10.2006 06:56

Quote:

Originally Posted by hex0id (Post 69786)
Code:

user: 3336->xer
10/10/2006 13:11:xx.xx0, 1,3336,0,-42654,159208,1360,я бы сходил на рейда,XEROX,


//ru
Можно вопрос- как ты добился что в логи ложаться нормально русские буквы? у меня там ??????
:(

//eng
Question - how to make log russian letters correctly, not with "?" signs?

Thanks

Stazis 10.10.2006 07:54

that's why i was not angry when you shared those geos =)
respect for this work
keep up!

astrid 10.10.2006 08:09

Quote:

Originally Posted by Stazis (Post 69797)
that's why i was not angry when you shared those geos =)
respect for this work
keep up!

Glad to hear it :) thank you Stazis

Stazis 10.10.2006 09:09

ok - have some suggestions
whould be great and think not difficult to include in .ini option like

[Channel]
Shout=true
General=true
Private=false
Trade=true
Clan=false
Ally=false
Hero=true

mentioned option on
[Punishment]
chatban=true
teleport=true
bantime=60
tel_coordX=
tel_coordY=
tel_coordZ=

another possible option - lets say - GM should have possibility to Add words to dictionary - e.g. if GM says in TradeChannel +++fuck word is being added to dictionary.txt
[GMList]
List=HeadGM;AntiMatGM

indeed this is greate idea about total access to administering through chat-commands =) 1 thing is dangerous - exploits we can make with it.=)

hater 10.10.2006 10:38

//rus
хотелось бы также, поддержку не только регекспов, но и отдельных слов.
Например, как-нибудь чтобы можно было выделить слово отдельное, например, поставив # перед словом.
пример: б*я
также были бы полезны маски, к примеру: х**сос

hel 10.10.2006 12:12

hater:
//ru
Слово "потреблять", "сабля"? :P

hater 10.10.2006 15:39

hel:
//ru
Можно было бы указать, что фильтровать только те слова, которые начинаются на "б*я".

Zuko 10.10.2006 15:50

Really problem in russian language :)

seraphii 10.10.2006 18:10

I test and does´nt work my ini is:
[config]
cached_ip=127.0.0.1
dictonary=dictonary.txt
chat_log_dir=D:\Server C4\CacheD\log\chat
punish=on
punish_time=10

I Try this:
[config]
cached_ip=127.0.0.1
dictonary=dictonary.txt
chat_log_dir=D:\Server C4\CacheD\log\chat
punish=true
punish_time=10

Log in the game writte the forbiden word, say it e nothing happen anybody help?

Stazis 10.10.2006 18:54

think he need a
chat_log_dir="D:\Server C4\CacheD\log\chat\"

since he have a space in folder name

TheOrder 10.10.2006 19:21

Great Share bro ! Will come in handy ;)

Stazis get on MSN pl0x :D !

Charis 10.10.2006 19:34

//rus
Повторю вопрос.

Помогите пожалуста заставить сервер ложить в логи русские буквы вместо вопросиков...
Я так и не поняла, как это сделать :(

Русский шрифт установлен на машине... а вот толку... :(

TuMBLer 10.10.2006 19:41

Quote:

Originally Posted by Charis (Post 69878)
//rus
Повторю вопрос.

Помогите пожалуста заставить сервер ложить в логи русские буквы вместо вопросиков...
Я так и не поняла, как это сделать :(

Русский шрифт установлен на машине... а вот толку... :(

/rus/
collation должен быть cirllic в mssql
меняется в свойствах

Xari0n 11.10.2006 00:07

Спасибо Астрид
у меня есть идея
добавить в опции, возможность замены мата на другое слово, символ
а так же, добавить словать исключений

paul 11.10.2006 00:45

I thought this was the english part of the forums?

seraphii 11.10.2006 00:53

I run all sugestions and dont work why...
chat_log_dir="D:\Server C4\CacheD\log\chat\" this show me error
chat_log_dir=D:\Server C4\CacheD\log\chat\ this not show nothing

what is wrong...

paul 11.10.2006 00:56

could easily be the space in your folder name.

s00r_ 11.10.2006 01:50

Quote:

Originally Posted by seraphii (Post 69897)
I run all sugestions and dont work why...
chat_log_dir="D:\Server C4\CacheD\log\chat\" this show me error
chat_log_dir=D:\Server C4\CacheD\log\chat\ this not show nothing

what is wrong...

try
chat_log_dir=D:\Server C4\..(your_log_name)..\log\chat\

paul 11.10.2006 02:26

also i just realized somethin - point it towards your L2Server folder not cached that worked fine for me.

forsage 11.10.2006 08:37

Quote:

Originally Posted by TuMBLer (Post 69880)
/rus/
collation должен быть cirllic в mssql
меняется в свойствах

Не работает ... :( Проставил на всех базах CYRILLIC_CI_AS -
В логах пишет все равно вопросами....

/ENG
not work for me . :( Change collation to CYRILLIC_CI_AS for all
databases ... only ??? in the log...

hr 11.10.2006 10:33

text logs contain right symbols?

Stazis 11.10.2006 13:36

mssql collation has nothing to do with text logfiles
try to make this changes in registry

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Nls\CodePage]
"ACP"="1251"
"OEMCP"="1251"

and don't forget to restert windows after that

another place is chat_data.fmt file in LogD folder

8.0
10
1 SQLCHAR 0 50 "," 1 act_time ""
2 SQLCHAR 0 50 "," 2 log_id ""
3 SQLCHAR 0 50 "," 3 actor ""
4 SQLCHAR 0 50 "," 4 target ""
5 SQLCHAR 0 50 "," 5 location_x ""
6 SQLCHAR 0 50 "," 6 location_y ""
7 SQLCHAR 0 50 "," 7 location_z ""
8 SQLCHAR 0 50 "," 8 say SQL_Latin1_General_CP1251_CI_AS
9 SQLCHAR 0 50 "," 9 STR_actor SQL_Latin1_General_CP1251_CI_AS
10 SQLCHAR 0 50 "\r\n" 10 STR_target SQL_Latin1_General_CP1251_CI_AS

Stazis 11.10.2006 13:41

Quote:

Originally Posted by s00r_ (Post 69900)
try
chat_log_dir=D:\Server C4\..(your_log_name)..\log\chat\

yep just wondering why are you using CacheD logs instead of LogD - or if you are not running one - then L2Server\log\chat\

hr 11.10.2006 17:20

Quote:

try to make this changes in registry
or simply Control Panel->Regional Settings->Advanced

Quote:

another place is chat_data.fmt file in LogD folder
actually not - there difined collations for columns, not codepages, it's simple format file ;) btw seems it is not used by logD

http://msdn2.microsoft.com/en-us/library/aa337558.aspx
http://msdn2.microsoft.com/en-us/library/ms191516.aspx

another real place for codepage in sql is CODEPAGE option for BULK INSERT statement
http://msdn2.microsoft.com/en-us/library/ms188365.aspx
(look @ lin_BulkInsert)

mastery 11.10.2006 20:14

great tool! works great! big thanks.
if possible, more options to configure like was suggested in 1 page..

astrid 11.10.2006 21:02

Quote:

Originally Posted by mastery (Post 69996)
great tool! works great! big thanks.
if possible, more options to configure like was suggested in 1 page..

thank you. i will make update when i got more free time.

forsage 12.10.2006 02:23

Quote:

Originally Posted by Stazis (Post 69956)
mssql collation has nothing to do with text logfiles
try to make this changes in registry

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Nls\CodePage]
"ACP"="1251"
"OEMCP"="1251"

Tnank you :)
Now all work fine !

hel 12.10.2006 03:50

Russian badword "бля", those letters must be first, not middle or last! (because it's letters can be used in "good" words)
How I can do it?


All times are GMT. The time now is 22:58.