!say command
 

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

!say command

Started by sUiCiDeMAniC, 22 October, 2003, 21:31:30

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sUiCiDeMAniC

im looks for script that has the !say command just like the one in ptokax, like this:
!say nick message

and it will make it look like the "nick" said it
can somebody please make it, or is there one?

-mAnIc

pHaTTy

i wud make it.............but i dont think its a nice script to have,to me its like a spy bot, it goes beyond privacy, and being able to control what someone says, is not right, it can cause trouble, maybe i not make.................hmmmm

i will c

-War3zMantis
Resistance is futile!

Skrollster

and i don't think it is that wrong, it is already an in built command in YHub, why not make a script of it...

function DataArrival(user,data)
	if (strsub(data, 1, 1) == "<" ) and user.bOperator then
		-- remove end pipe
		data=strsub(data,1,strlen(data)-1)
		--extract command
		_,_,cmd=strfind(data, "%b<>%s+(%S+)")
		--check if cmd exist
		if not cmd then cmd = "0" end
		-- make the cmd caseinsensitive
		cmd = strlower(cmd)
		-- get the command prefix
		cmdprefix = strsub(cmd, 1,1)
		-- check if the cmd prefix is !,+,# or ?
		if cmdprefix == "!" or cmdprefix == "+" or cmdprefix == "#" or cmdprefix == "?" then
			-- Remove the prefix and check the command
			cmd = strsub(cmd, 2,strlen(cmd))
			if cmd = "say" then
				_,_,as,message = strfind(data, "%b<>%s+%S+%s+(%S+)%s+(.+)")
				SendToAll(as, message)
				return 1
			end
		end
	end
end

this can only be used by Operators...

sUiCiDeMAniC

thank you skrollster but im gettign an error, it might be cuz im usin the beta ptokax but heres the error:

Syntax Error: `then' expected;
  last token read: `=' at line 17 in string "function DataArrival(user,data)
..."

can it be fixed??? please help

and (uk-kingdom)pH?tt?: its not a SPY-BOT its a fun little script, it helps you have fun i love the little feature, bringes so much joy

-mAnIc

Skrollster

function DataArrival(user,data)
	if (strsub(data, 1, 1) == "<" ) and user.bOperator then
		-- remove end pipe
		data=strsub(data,1,strlen(data)-1)
		--extract command
		_,_,cmd=strfind(data, "%b<>%s+(%S+)")
		--check if cmd exist
		if not cmd then cmd = "0" end
		-- make the cmd caseinsensitive
		cmd = strlower(cmd)
		-- get the command prefix
		cmdprefix = strsub(cmd, 1,1)
		-- check if the cmd prefix is !,+,# or ?
		if cmdprefix == "!" or cmdprefix == "+" or cmdprefix == "#" or cmdprefix == "?" then
			-- Remove the prefix and check the command
			cmd = strsub(cmd, 2,strlen(cmd))
			if cmd == "say" then
				_,_,as,message = strfind(data, "%b<>%s+%S+%s+(%S+)%s+(.+)")
				SendToAll(as, message)
				return 1
			end
		end
	end
end

pHaTTy

QuoteOriginally posted by sUiCiDeMAniC
thank you skrollster but im gettign an error, it might be cuz im usin the beta ptokax but heres the error:

Syntax Error: `then' expected;
  last token read: `=' at line 17 in string "function DataArrival(user,data)
..."

can it be fixed??? please help

and (uk-kingdom)pH?tt?: its not a SPY-BOT its a fun little script, it helps you have fun i love the little feature, bringes so much joy

-mAnIc
i dont mean its a spy bot, what i mean is that depending on how you use it, it can cause trouble,

and yep Skrollster

i know of quite a few Mods that have been un modded because of peeps making them say stuff
and it loked funny
so they unmodded yep :(

thats why i dont think its nice depending on how you use it
Resistance is futile!

sUiCiDeMAniC

thanks skrollster  :))

plop

have 2 agree with phatty.
i got nearly banned from a chatprogram (paltalk) and that was just for finding a bug wich caused that.
i wasn't using it in a bad way.
just was speaking with a nick wich wasn't in the room.
i was asked in the past for making a command like this in crazy bot and for the same reason i didn't.
if i 1 day would add it 2 crazy bot a check if there isn't a user with that nick in the hub would be included.
it's fun 2 confuse the users with some1 speaking wich isn't in the hub but many ppl find it offensive 2 see there own nick say (weird) things.

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 <----<<

SMF spam blocked by CleanTalk