Lance Evol v1.00
 

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

Lance Evol v1.00

Started by 6Marilyn6Manson6, 09 October, 2005, 15:05:44

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

6Marilyn6Manson6

--Lance Evol v1.00 Lua 5
--Hider Bot, this one does not give the nick taken error ;)
--Written by Phatty 12th December 2k3
--Need to table.sort the Logged in LogedIn not work neither any ideas?
--Reminded by tezlo thanx, fixed $Hello
--//Converted by 6Marilyn6Manson6 by 10/09/2005
-- Added Registration of Bot in UserList6Marilyn6Manson6
-- Small buf fixed with commands by 6Marilyn6Manson6

Bot = "?????R" 
Hidden = {}

function Main()
	frmHub:RegBot(Bot)
end

function NewUserConnected(user)
	if Hidden == nil then
		return 1
	else
		for i,v in Hidden do
			user:SendData( "$Quit "..i ) 
		end
	end
end

function OpConnected(user)
	if Hidden == nil then
		return 1
	else
		for i,v in Hidden do
			user:SendData( "$Quit "..i ) 
		end
	end
end

function ChatArrival(user, data) 
	if(string.sub(data, 1, 4) == "$Quit ") then
		if Hidden[user.sName] == 1 then
			Hidden[user.sName] = nil
		end
	end	
	if string.sub(data, 1, 1) == "<" then
		data=string.sub(data,1,string.len(data)-1)
		s,e,cmd = string.find(data,"%b<>%s+(%S+)")
		if cmd == "!hide" then
			if user.bOperator then				
				SendToAll( "$Quit "..user.sName )
				Hidden[user.sName] = 1
			end
	elseif cmd == "!unhide" then
			if user.bOperator then
				SendToAll( "$Hello "..user.sName )
				Hidden[user.sName] = nil
			end
		end
	end
end

C ya

Thor

I have a  little problem with this great script: when i "go back" to the userlist, my nick is on the bottom of the userlist. But when i refresh the userlist, it takes me back to up. So if it's possible, take a command to in, which is refresh the userlist for all. Thx

6Marilyn6Manson6

#2
Try this:

--Lance Evol v1.1
--Converted by 6Marilyn6Manson6 by 10/09/2005
--Rewrite all code by 6Marilyn6Manson6
--Added Registration of Bot in UserList by 6Marilyn6Manson6
--Small buf fixed with refresh userlist by 6Marilyn6Manson6 (tnk Hungarista)
--Commands1: !hide   		-- for Hide nick in userlist
--Commands2: !unhide   	-- for unHide nick in userlist

Bot = "?????R"

function Main()
	frmHub:RegBot(Bot)
end

ChatArrival = function(user, data)
	local s, e, cmd,victim = string.find( data, "%b<>%s+(%S+)%s+(.*)")
	if cmd == "!hide" then	
		if (user.iProfile == 0) then
				SendToAll("*** Ghost mode activated to "..victim)
				SendToAll("$Quit "..victim)		
			end
		return 1
	end
	local s, e, cmd,victim = string.find( data, "%b<>%s+(%S+)%s+(.*)")
	if cmd == "!unhide" then
		if (user.iProfile == 0) then
				SendToAll("*** Ghost mode disabled from "..victim)
				SendToAll("$OpList "..victim)
			end
		return 1
	end
end

c ya

SMF spam blocked by CleanTalk