--------- Mass Message ---------
function SendMassMessage(user,data,lvlcomd,action)
botreplye = nil
lvl = CheckUserLevel(user)
local levelcmd=LevelFunction(lvlcomd)
if levelcmd ~= 0 then
if levelcmd <= lvl then
arg = GetLongArgRemnantsML(data)
if arg ~= nil then
if action == "op" then
dostring("report="..LANGUAGE.."From")
SendPmToOps("PmOp", report.." "..user.sName..".. "..arg)
elseif action == "mm" then
SendPmToAll("PmAll", arg.."\r\n"..user.sName..".")
elseif prefix == "banner" then
SendToAll("***","******************************************************** <***>")
SendToAll("***",arg)
SendToAll("***","******************************************************** <***>")
end
else
dostring("confirmreport="..UserLanguage[user.sName].."insufficientinformation")
dostring("report="..UserLanguage[user.sName].."adminhelp")
botreplye = confirmreport.." "..report
end
else
dostring("report="..UserLanguage[user.sName].."cmdrights")
botreplye = report
end
else
dostring("report="..UserLanguage[user.sName].."cmddisable")
botreplye = report
end
return botreplye
end
this is a bit of a script from channel bot but i wna jus add a line which does commands nxt to it cse it doesnt wrk on the hub wen i press !mm or !banner so can sme1 make cmds lines smewher ??
can any1 reply plz ... :(
-- Date: 22-10-2003
--
-- code from klownietklowniet
-- network: [ > DC - UniteD < ]
--
-- Request by GaMeFaNaTiC
--
-- +mm (mass message script only for OPs)
--
cmd = "+mm"
function Main()
frmHub:RegBot(BotName)
end
function DataArrival(curUser, data)
if curUser.bOperator then
local s,e,cmd2 = strfind(data,"%b<>%s+(%S+)")
local s,e,arg = strfind(data,"%b<>%s+%S+%s+(.+)")
if cmd2 == cmd then
SendPmToAll("HubMassMessage", arg)
end
end
end
See if that helps you.. +banner , for that use another standalone bot, or ask some scripters to merge both scripts together...
thnkz for the mm.. i like this banner cse it does a nice design and hides ur name and itz quite neat thnks !!