Kitchen sink
 

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

Kitchen sink

Started by Madman, 28 February, 2006, 05:19:44

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Madman

Quote1) Some of these boards will redirect you to the homepage/forum of the script, so we can support the authors by making users directly post to their forums.
2) If you have an AIO and want a forum for it (even if it's a redirector), please post into this parent board directly.
3) Please do not open posts if they don't have anything to do with note #2.

I know this breaks rule 3. But i just had to... ;p

-- Kitchen Sink made by Madman, 28.02.06
--[[--
Made beacuse of bastya_elvtars comment on the board
quote: These scripts contain everything but the kitchen sink. :)
But now this board does ;)
Warning! Use with caution!
This script will disconnect a random number of users when a Op use the cmd !sink

How? How the hell did i came up with the idea of this script?
If you figured it out, please let me know
--]]--

function ChatArrival(curUser, data)
	local data = string.sub(data, 1, -2)
	local s,e,cmd = string.find(data, "%b<>%s+[%!%+%#](%S+)")
	if curUser.bOperator then
		if cmd == "sink" then
			Sink(curUser) return 1
		end
	end
end

function Sink(user)
	local TmpTable,WhileTable,Dissed = {}, {0,}, ""
	if frmHub:GetUsersCount() == 1 then
		user:SendData("*** We need more users before we pull the plug") return 1
	end
	for _,oUser in frmHub:GetOnlineUsers() do
		if oUser.sName == user.sName then
			-- Don't add user that used the cmd
		else
			table.insert(TmpTable, oUser.sName)
		end
	end
	SinkNr = math.random(0, (frmHub:GetUsersCount()-1))
	if SinkNr == 0 then
		SendToAll(user.sName.. " pulled the plug in the kitchen sink, but no user went down the drain") return 1
	end
	WhileTable[1] = SinkNr
	while WhileTable[1] > 0 do
		UserDis = TmpTable[math.random(table.getn(TmpTable))]
		DisconnectByName(UserDis)
		WhileTable[1] = WhileTable[1] - 1
		Dissed = Dissed..UserDis..", "
	end
	Msg = user.sName.. " pulled the plug and the following users went down the drain " ..Dissed
	SendToAll(Msg)
end


I doubt this topic will stay in this section very long
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Typhoon

you should know better than that Madman :p ..

Typhoon?




Northwind

lmao, awesome dude... nice one :) this could be script of the year...


Madman

#4
Quote from: Typhoon™ on 28 February, 2006, 08:54:20
you should know better than that Madman :p ..

Typhoon™

I do, but i was bored and needed some entertaiment 4 a whille... =)
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

bastya_elvtars

Everything could have been anything else and it would have just as much meaning.

Troubadour

Regards,

Troubadour

** Guardian Forum **

hubaddy:   nederfun.no-ip.com

plop

how about cleaning the sink when done???
this is not how your mother raised you madman. lol

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Mikey

LOL nice script.......Got a funny request. I got a Op in my hub that says all the time can u make these script run the dishwasher. Any way of making a script that would have right clicks for load wash and put up with a ascii pic in main of a dishwasher?
Mikey

**Friends Unlimited Network**
    Network Founder

Madman

Quote from: Mikey on 09 March, 2006, 04:42:47
LOL nice script.......Got a funny request. I got a Op in my hub that says all the time can u make these script run the dishwasher. Any way of making a script that would have right clicks for load wash and put up with a ascii pic in main of a dishwasher?

If, you can get the ascII pics requird... i guess i can do it...
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

SMF spam blocked by CleanTalk