NickChanger by Phatty
 

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

NickChanger by Phatty

Started by pHaTTy, 16 April, 2004, 06:46:07

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pHaTTy

brrr boriiiing loong nights;

ok *thinks* right ok *fills out thread name*

u know when ya use !say command, i bet alot of ya make mistakes, well no longer just use

!nick

and it will change ya nick for any chat messages, i will add reset name and save to table soon

--//NickChanger 0.01 by Phatty
--//Under development lol (bored)

Nick = {}

function DataArrival(user,data)
	if strsub(data, 1, 1) == "<" then local data=strsub(data,1,strlen(data)-1) 
		local s,e,cmd = strfind(data, "%b<>%s+(%S+)") local s,e,msg = strfind(data, "%b<>%s+(.+)")
		if cmd == "!nick" and user.bOperator then local s,e,newnick = strfind(data, "%b<>%s+%S+%s+(%S+)")
			if newnick then Nick[user.sName] = newnick;
				user:SendData(".D.R.","You have changed your chat nick to "..newnick)
			return 1; end;
		end; local sName = Nick[user.sName]
		if sName then SendToAll(sName,msg)
return 1; end; end; end;
Resistance is futile!

pHaTTy

changed a little and added !clear to clear ya fake nick

--//NickChanger 0.02 by Phatty
--//Under development lol (bored)

--//Globals
BOT = ".D.R."; Command1 = "!nick"; Command2 = "!clear";

function Main() Nick = {} end;

function DataArrival(user,data)
	if strsub(data, 1, 1) == "<" then local data=strsub(data,1,strlen(data)-1) 
		local s,e,cmd = strfind(data, "%b<>%s+(%S+)") local s,e,msg = strfind(data, "%b<>%s+(.+)")
		if strlower(cmd) == Command1 and user.bOperator then local s,e,newnick = strfind(data, "%b<>%s+%S+%s+(%S+)")
			if newnick then Nick[user.sName] = newnick;
				user:SendData(BOT,"You have changed your chat nick to "..newnick)
			return 1; end;
		elseif strlower(cmd) == Command2 and user.bOperator then Nick[user.sName] = nil;
			user:SendData(BOT,"You have cleared your fake nick!")
		return 1; end; local sName = Nick[user.sName]
		if sName then SendToAll(sName,msg)
return 1; end; end; end;
Resistance is futile!

SMF spam blocked by CleanTalk