PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: patamon90 on 25 October, 2004, 07:32:34

Title: Ban after 5 kicks
Post by: patamon90 on 25 October, 2004, 07:32:34
Hello. Now I'm gonna disturb you one more time =)

I wounder if there is any script who perm ban a user who have been kicked (for example) 5 times. Not any bot who will come to userlist or anything, just a little script who adds itself to PtokaX and ban when it recordnize that a user has been kicked 5 times and auto ban him/her.

Thanks and I hope there is one of these scripts.
Title:
Post by: bolamix on 25 October, 2004, 08:06:08
Hi,
See this thread  (http://board.univ-angers.fr/thread.php?threadid=1499&boardid=11&sid=88c0faa2eab0241a7d7fc02bf856f16d)for a script which might do just what you want... enjoy ;)
Title:
Post by: nErBoS on 25 October, 2004, 14:02:45
Hi,

Mutor you are still using the wrong code that i have modified for saving tables. The erro is here...

Serialize(value, sKey, sTab.."\t");
it should be this...

sTmp = sTmp..Serialize(value, sKey, sTab.."\t");
Best regards, nErBoS
Title:
Post by: patamon90 on 25 October, 2004, 16:35:57
No it didn't work.. anything else?
please, really need this, cos there is many fakers and it's not fun to ban them self..
Title:
Post by: patamon90 on 26 October, 2004, 15:18:54
Is it able to make the command ?kick to !kick ?
just woundering, or else I have to change alot of stuff in my scripts and clients =P

Oh forgot to tell.. I use PtokaX DC Hub 0.3.3.0 build 15.25 [debug]
Title:
Post by: patamon90 on 27 October, 2004, 07:28:47
Okay thanks, now I just have to wait for someone to be kicked and (hopefully) banned after 5 times =P
Title:
Post by: patamon90 on 07 November, 2004, 13:22:31
The script doesn't seems to work..

Hub:
PtokaX DC Hub 0.3.3.0 build 15.25 [debug]


Scripts:
Autocleaner by plop
Brain-Master by nErBoS
Random Chat 1.0 by Mutor The Ugly
Deflood 4.5.3 by plop
"YourIpIs" by ???
RecordBot 0.952 by bonki 2003
ShowInfo 1.0 by latinmusic
"CurrentTime" by ???

And trying to get Ban-4X-Kick 1.0 to work (by Mutor)

please help =P
Title:
Post by: patamon90 on 08 November, 2004, 07:41:49
Err, I didn't really understand that, But I have enabled that CMDs thing and then it comes alot of:

[07:39] STONY (IP) > $ConnectToMe Sebbe IP:PORT|
[07:39] [BoT]Police (IP) > $ConnectToMe [HUN][TUX]Vector512k_UP_search IP:PORT|
[07:39] reteus (IP) > $GetINFO Time:07:39 reteus|
[07:39] jms@proth.com (IP) > $GetINFO Time:07:39 jms@proth.com|
[07:39] sumetto (IP) > $RevConnectToMe sumetto franz|


IP = IP numbers =)
PORT = Port numbers =)

Just wanted those numbers secret =P

Please try to explain more =D
Title:
Post by: patamon90 on 08 November, 2004, 14:06:24
Then I get this (My bot auto kick)

[13:30] [BoT]Police (IP) > $To: ACEDANYBOUCHT From: [BoT]Police $<[BoT]Police> You are being kicked because: Connection timeout 20 times|
[13:30] [BoT]Police (IP) > <[BoT]Police> !kick ACEDANYBOUCHT Connection timeout 20 times|
[13:30] [BoT]Police (IP) > $To: [BoT]Police From: [BoT]Police $<[BoT]Police> has been kicked ----> Connection timeout 20 times|
[13:30] x User removed: ACEDANYBOUCHT (Socket 760)
Title:
Post by: patamon90 on 10 November, 2004, 16:33:43
No it didn't work =(

After I changed it looks like this:
function DataArrival(user, data)
data=strsub(data,1,-2)
_,_,cmd,unick = strfind( data, "(%S+)%s+(%S+)" )
if cmd == "!kick" and user.bOperator then

Please help =P
Title:
Post by: patamon90 on 11 November, 2004, 11:53:45
Please help, really need this =P
Title:
Post by: VidFamne on 17 December, 2004, 14:42:35
You could try this;function DataArrival(user, data)
data=strsub(data,1,-2)
_,_,cmd,unick = strfind( data, "^%b<>%s(%S+)%s+(%S+).*" )
if cmd == "!kick" and user.bOperator then
A tiny change in reg.exp. ;)
**Edit** another little change