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