Freestyles Script
 

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

Freestyles Script

Started by Ma?t?r_JO, 13 April, 2005, 21:33:10

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ma?t?r_JO

Mozambique is a country with very good Rappers (but the world doesent know it)
Allmost every evening we make freestyles in the main chat, but when someone is rappin all the ppl get exited an talk in the main.
I need a script that lets me tchoose the ones that I want to see talking on the mainchat. Its no like a gag...

Plz help me out

bastya_elvtars

What about using a message board like CodeBoard for this purpose?
Everything could have been anything else and it would have just as much meaning.

??????Hawk??????

hi m8  


maby one of the  Chat room  scripts  would be better  ...


try this


??????Hawk??????

bastya_elvtars

I thought that he wants freestylers to be seeable but not interruptable. He might want a freestyle-mode when only people in a certain list are allowed to use main, and preferably anyone can be added.
Everything could have been anything else and it would have just as much meaning.

??????Hawk??????

Hi m8  ..  


Something like this  ...  

untested  ..  but looks like it will work  :P


--  By ??????Hawk?????? 14/04/2005
	Chatters = {}
	BOTName = "Freestyles"
	Fs = 0

function ChatArrival(curUser, data) 
	data = string.sub(data,1,string.len(data)-1)
	local _,_,tCmd,tUser = string.find( data, "%b<>%s+(%S+)%s+(%S+).*" )
		if tUser == nil then
			 _,_,tCmd = string.find( data, "%b<>%s+(%S+).*" )
		 end
	if curUser.bOperator then 
		if (tCmd=="!fson") then 
			SendToAll(BOTName, curUser.sName.." Has Activated "..BOTName.." Only Invited Users will have use of main chat . PM and op to be invited.") 
			Fs = 1
			return 1
		elseif (tCmd == "!fsoff") then 
			SendToAll(BOTName, curUser.sName.." Has Disabled "..BOTName.." All Users have Use of main chat.") 
			Fs = 0
			Chatters = {}
			return 1
		elseif (tCmd == "!invite") and tUser then 
			Chatters[tUser] = 1
			SendToAll(BOTName, tUser.." Has Been Invited to take part in "..BOTName) 
			return 1
		elseif (tCmd == "!remove") and tUser then 
			Chatters[tUser] = nil
			SendToAll(BOTName, tUser.." Has Been removed from taking part in "..BOTName) 
			return 1
		end
	elseif curUser.bOperator == nil and not Chatters[curUser.sName] and Fs == 1 then
	 	curUser:SendData(BOTName,"Main Chat has Been temporarily  Been Disabled for a "..BOTName.." Session.")
		return 1
	end
end


function OpConnected(curUser) 
	curUser:SendData("$UserCommand 255 |") -- clear
	curUser:SendData("$UserCommand 1 3 "..BOTName.."\\ON$<%[mynick]> !fson||")
	curUser:SendData("$UserCommand 1 3 "..BOTName.."\\OFF$<%[mynick]> !fsoff||")
	curUser:SendData("$UserCommand 1 3 "..BOTName.."\\Invite$<%[mynick]> !invite %[nick]||")
	curUser:SendData("$UserCommand 1 3 "..BOTName.."\\Remove$<%[mynick]> !remove %[nick]||")
end


??????Hawk??????

jiten

From what I understood, he wants a script that would allow him to see only the lines written by certain users (those Rappers) and at the same time letting everyone else speak freely.
Guess something like a custom nick's written text finder without main disabler for the others (yikes, where did I get that?) :D  

Cheers

Ma?t?r_JO

I hope that will work...

If you did not get it, the most important thing is that<<< THE OPS CAN SELECT THE ONLY USER THAT WILL TALK>>>

Thanks Hawk for the code... I'll try it now...

Ma?t?r_JO

I've tested it, and it WORKS !!!!
Its just fine Hawk !!!
Thanks !!!!!!

SMF spam blocked by CleanTalk