Fake name ( !fn <Nick> <message> )
 

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

Fake name ( !fn )

Started by Janhouse, 24 April, 2004, 13:35:44

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Janhouse

I have seen script with who you can change your name.
If you type !fn  then in main chat wont show your real name but that name you wrote.
Can somebody give me that script?

Thanx...  ;)

plop

QuoteOriginally posted by Janhouse
I have seen script with who you can change your name.
If you type !fn  then in main chat wont show your real name but that name you wrote.
Can somebody give me that script?

Thanx...  ;)
crazy bot can speak like that but only has the option 2 pick between 2 preset nicks.

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

nErBoS

#2
Hi,

Hope it helps...

--Requested by Janhouse
--Made by nErBoS

sBot = "Fake-Talker"

function Main()
	frmHub:RegBot(sBot)
end

function DataArrival(user, data)
	if(strsub(data,1,1) == "<" or strsub(data,1,5+strlen(sBot)) == "$To: "..sBot) then
		data = strsub(data,1,strlen(data)-1)
		s,e,cmd = strfind(data, "%b<>%s+(%S+)")
		if (cmd == "!fn") then
			local s,e,fnick,talk = strfind(data, "%b<>%s+%S+%s+(%S+)%s+(.*)")
			if (fnick == nil or talk == "") then
				user:SendPM(sBot, "Syntax Error, !fn  , you must write a nick and a message.")
			else
				SendToAll(sBot, talk)
			end
			return 1
		end
	end
end

Best regards, nErBoS
--## nErBoS Spot ##--

nErBoS

#3
Hi,

Little bug corrected, thanks to plop.

Best regards, nErBoS
--## nErBoS Spot ##--

Janhouse

Thanks again nerbos!

plop

QuoteOriginally posted by nErBoS
Hi,

Little bug corrected, thanks to plop.

Best regards, nErBoS
yw.

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

Janhouse

There is one problem.
When I type !fn Message
if don't shows that but it shows bot name.

When I write:
Quote!fn Hi, what's up?
it shows:
Hi, what's up?

What is wrong in that script?  ?(

plop

was 1 more tiny error.
--Requested by Janhouse
--Made by nErBoS

sBot = "Fake-Talker"

function Main()
   frmHub:RegBot(sBot)
end

function DataArrival(user, data)
   if(strsub(data,1,1) == "<" or strsub(data,1,5+strlen(sBot)) == "$To: "..sBot) then
      data = strsub(data,1,strlen(data)-1)
      s,e,cmd = strfind(data, "%b<>%s+(%S+)")
      if (cmd == "!fn") then
         local s,e,fnick,talk = strfind(data, "%b<>%s+%S+%s+(%S+)%s+(.*)")
         if (fnick == nil or talk == "") then
            user:SendPM(sBot, "Syntax Error, !fn  , you must write a nick and a message.")
         else
            SendToAll(fnick, talk)
         end
         return 1
      end
   end
end
remember that has to be replaced for a nick, don't write the < > when you trigger the command.
< > -- a must give option
[ ] -- a option which doesn't have to be given to make it work.

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

nErBoS

Hi,

Baa was realy bad yesterday, thanks plop.

Best regards, nErBoS
--## nErBoS Spot ##--

pHaTTy

hmm look in finsihed scripts and u'll see NickChanger =)
Resistance is futile!

SMF spam blocked by CleanTalk