client checker
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

client checker

Started by Leun, 16 September, 2005, 14:01:27

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Leun

I'm trying modify a script, but i'm stok with this

it is the script from filechecker


-- kick user
if match and not client.bOperator then 
if client:Kick() = nill then
client:Kick() = 0
end
if client:Kick() = 3 then
client:SendData(Bot, "You are been banned for 3 kicks.")
client:TimeBan(48*60)
client:Kick() = 0

function DataArrival(client, data)

if string.find(data,"is kicking") then
	local _,_, name = string.find(data,"%b<>%s*%S+%sis%skicking%s(%S+)%sbecause:%s")
	kick[client] = kick[client] + 1
end
end

Why doesn't it work I get this message:

\scripts\checker.lua:186: `then' expected near `='

Hopefully someone can help me

Myers

Change this:

if client:Kick() = nill then


To:

if client:Kick() = nil then

I hope this will help you.

Leun

thnx for your fast reply,

but is doesn't work. I get the same fault.

\scripts\checker.lua:186: `then' expected near `='

it is in this rule:
if client:Kick() = nill then

effgjamis

QuoteOriginally posted by Leun

it is in this rule:
if client:Kick() = nill then

I think what Myers is saying.. you have a mispelled
word..

" nill  "  should be " nil  "

and I am no LUA scripter.. but that is what I read..
<<<--- Eff --->>>
Curious Mind would like to know..

Leun

sorry my fault,

I typed it wrong second time.
 
it has to be;

but is doesn't work. I get the same fault.

\scripts\checker.lua:186: `then' expected near `='

it is in this rule:
if client:Kick() = nil then

mateci

if client:Kick() = nill then

if client:Kick() = 3 then

must be

if client:Kick() == nil then

if client:Kick() == 3 then

Leun

Thnx Mateci,

It works :D

Only I got a new problem with that script:

I have this atm:

-- disconnect user 
	if match and not client.bOperator then 
		client:SendData( "<"..botName.."> You are temporarily banned for 5 min! Fix your share.." )

if client:Kick() == nil then
client:Kick()
end
if client:Kick() == "3" then
client:SendData(Bot, "You are been banned for 3 kicks.")
client:TimeBan(48*60)
client:Kick()

function DataArrival(client, data)

if string.find(data,"is kicking") then
	local _,_, name = string.find(data,"%b<>%s*%S+%sis%skicking%s(%S+)%sbecause:%s")
	client:Kick() == client:Kick() + 1
end
end

With this message:

\checker.lua:17: unexpected symbol near `=='

I think it's the Kick() +1 ,but I dont know where how change it.

Dessamator

This :

client:Kick() == client:Kick() + 1


is wrong, it should be like this :

client:Kick() = client:Kick() + 1
Ignorance is Bliss.

Leun

thnx for your help Dessamator,
but I can't get it work....

Dessamator

well, for starters that script doesnt seem complete, and from what i can see it seems to be for lua4, there are quite a few scripts with the features u want from that, maybe if u search ull find what u need .
Ignorance is Bliss.

Leun

you're right....

thnx for your help

LiqUiD~TrolL

hello m8 ,why you don t just use DCDM++ it s really great client and it auto checks and kicks users with all stuff you want to add it as forbiten


or just try robocop ,it is auto kick after 2 warnings and auto bann after 3 kicks ;-)

Have A look :
DCDM++
________<>________


            -=@_ psydream-land.no-ip.org _@=-


             
http://www.psychedelicdreams.bravehost.com

bastya_elvtars

QuoteOriginally posted by LiqUiD~TrolL
hello m8 ,why you don t just use DCDM++ it s really great client and it auto checks and kicks users with all stuff you want to add it as forbiten


or just try robocop ,it is auto kick after 2 warnings and auto bann after 3 kicks ;-)

Have A look :
DCDM++

I think the autodetection of fake tags serverside is a good idea since it avoids a lot of bandwidth usage.
Everything could have been anything else and it would have just as much meaning.

Leun

Thnx for your help m8s

My script is done now :D
I use now the adls search
and the Ban-4X-Kick 1.0 LUA 5 script

Thnx for your help,
greetz

SMF spam blocked by CleanTalk