Anti Clone
 

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

Anti Clone

Started by ?[-?Genius?-]?, 08 March, 2007, 03:25:36

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

?[-?Genius?-]?

Hi ppl

I have problems in this script


fAntiClone = {
	fOnOff = 1,				-- 1 = On , 0 = Off
	fPermitDifShare = 1,			-- 1 = On , 0 = Off
	fPmOps = 1,				-- 1 = On , 0 = Off
	fExcepcoes = {
		["[PT]?Genius??"] = 1, 		-- Nick da excep??o, apagar s? esta linha se n?o desejado / Exception nick, erase only this line if not wanted
		[""] = 1,  	-- Nick da excep??o, apagar s? esta linha se n?o desejado / Exception nick, erase only this line if not wanted
		[""] = 1,  	-- Nick da excep??o, apagar s? esta linha se n?o desejado / Exception nick, erase only this line if not wanted
		[""] = 1,  	-- Nick da excep??o, apagar s? esta linha se n?o desejado / Exception nick, erase only this line if not wanted
	},
}
OpChatName = "![ PT??w?s ]"

function NewUserConnected(oUser, Data) 
	if fAntiClone.fOnOff == 1 then
		for _,Nick in frmHub:GetOnlineUsers() do
			if (fAntiClone.fExcepcoes[oUser.sName] == nil) then
				if oUser.sIP == Nick.sIP and not (oUser.bOperator or Nick.bOperator) then
					if oUser.iShare ~= Nick.iShare then
						if fAntiClone.fPermitDifShare == 1 then
							if fAntiClone.fPmOps == 1 then
								SendPmToOps(OpChatName, "\r\n\r\n\tO Utilizador "..oUser.sName.." era um clone de "..Nick.sName.." \r\n")
								SendPmToOps(OpChatName, "\r\n\r\n\tO Utilizador  "..oUser.sName.." tem o mesmo IP de "..Nick.sName.." mas com um share diferente. \r\n")					
							end
						else
							if fAntiClone.fPmOps == 1 then
								SendPmToOps(OpChatName, "\r\n\r\n\tO Utilizador "..oUser.sName.." era um clone de "..Nick.sName.." com um share diferente. O user foi reenviado.\r\n")
							end
							oUser:SendPM(sBot,"\r\n\r\n\tO Utilizador J? est?s conectado com o nick "..Nick.sName.." e o mesmo IP. Usa apenas 1 user por IP\r\n")
							oUser:Redirect("127.0.0.1")
						end
					end
					if oUser.iShare == Nick.iShare then
						if fAntiClone.fPmOps == 1 then
							SendPmToOps(OpChatName, "\r\n\r\n\tO Utilizador "..oUser.sName.." era um clone de "..Nick.sName.." com o mesmo share. O user foi reenviado.\r\n")
						end
						oUser:SendPM(sBot,"\r\n\r\n\tO Utilizador J? est?s conectado com o nick "..Nick.sName.." e o mesmo IP. Usa apenas 1 user por IP")
						oUser:Redirect("127.0.0.1")
					end
				end
			end 
		end
	end
end


The error is

[02:18] Syntax ...] [Ptokax 0.3.5.2]\scripts\[PT ??w?s] Anti Clone.lua:16: attempt to call a table value

?[-?Genius?-]?


bastya_elvtars

This is a clonealert ripoff by the way, we would like to see the credits.
Everything could have been anything else and it would have just as much meaning.

?[-?Genius?-]?

Hi

I have another problem.

Script Redirect user but don?t send message.

ex:

[12:06] *** Connecting to LocalHost...
[12:06] *** Connected
[12:06] <![ PT??w?s ]> This hub is running PtokaX DC Hub 0.3.5.2 (UpTime: 0 days, 9 hours, 36 minutes)
[12:06] *** Disconnected


I want this

[12:06] *** Connecting to LocalHost...
[12:06] *** Connected
[12:06] <![ PT??w?s ]> This hub is running PtokaX DC Hub 0.3.5.2 (UpTime: 0 days, 9 hours, 36 minutes)
[12:06] <![ PT??w?s ]> Ja tavas ligado no hub com outro nick [PT]?Genius??.
[12:06] *** Disconnected


PS: I change redirect to disconnect a think is not a problem

Sory about my bad inglish
Quote from: bastya_elvtars on 08 March, 2007, 12:48:19
This is a clonealert ripoff by the way, we would like to see the credits.

Ok men. Sory about that

Cêñoßy†ê

Quote from: ?[-?Genius?-]? on 08 March, 2007, 13:16:14
Hi

I have another problem.

Script Redirect user but don?t send message.
change
Code:  geshi
oUser:Redirect("127.0.0.1")

to
Code: geshi
oUser:Redirect("127.0.0.1","You have been redirected ....")
Powered By Leviathan™ 2nd Generation v. 1.9

?[-?Genius?-]?

Hi

The mensage not send by bot is:  You are already connectd in the hub whit "..nick.."

Tankx

Cêñoßy†ê

Quote from: ?[-?Genius?-]? on 08 March, 2007, 13:44:30
Hi

The mensage not send by bot is:  You are already connectd in the hub whit "..nick.."

Tankx

If you try it with your own hub.. it tryes to redirect back ;) 127.0.0.1 & localhost are both your own pc  :P
Powered By Leviathan™ 2nd Generation v. 1.9

?[-?Genius?-]?

The preoblem is not redirect our disconnect. The problem is a message.

User are redirectd our disconectd and don?t noo whi :S

SMF spam blocked by CleanTalk