help... read in plz
 

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

help... read in plz

Started by GaMeFaNaTiC, 29 October, 2003, 12:29:28

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

GaMeFaNaTiC

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

GaMeFaNaTiC

can any1 reply plz ...  :(

BlazeXxX

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

BlazeXxX

See if that helps you.. +banner , for that use another standalone bot, or ask some scripters to merge both scripts together...

GaMeFaNaTiC

thnkz for the mm.. i like this banner cse it does a nice design and hides ur name and itz quite neat thnks !!

SMF spam blocked by CleanTalk