- MassMessage To Unregisterd_Users
 

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

- MassMessage To Unregisterd_Users

Started by Optimus, 08 December, 2003, 12:49:36

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Optimus

This 1 i made for some 1 else, but wanted to share it with you all.
It's a Mass_Message system, To send messages to Only Unregisterd users that are in the hub...

* WILL ONLY WORK CORRECTLY WHEN HUB IS RESTARTED...

Enjoy!

- DOWNLOAD HERE -

 ;)

Cp6uja

Optimus why you build this script !

Sorry 4 my ENGLISH  ;)

blackwings

QuoteOriginally posted by Cp6uja
Optimus why you build this script !

Sorry 4 my ENGLISH  ;)

So ops can sends mass message to unregged people and the already regged user, vips and ops doesn't need to see it.


Cid

any chance to make a script that sends a massmessage:

1. only to unregged users (or selectable profile)
2. timed, like every 60 minutes
3. reads message to send from a .txt file

???

piglja

Optimus, is there a chance that you put that script somewhere where it can be downloaded?
On the existing URL it says that it is not available :(
Nice, Pink Piglet:))
:))  (I am a newbie here, so, plz be kind and soft to me ) :))  
And be carefull, I am haywire  :rolleyes:

??????Hawk??????

heya peeps  


Click Here


 :))  :))  :))  :))

piglja

Nice, Pink Piglet:))
:))  (I am a newbie here, so, plz be kind and soft to me ) :))  
And be carefull, I am haywire  :rolleyes:

Optimus

Hi Piglja girl  :D

Well that 1 was rather old hehe, wrote me a new 1 quickly. Only None regged users need to be added so be my guest.

This 1 is based on profiles, enjoy!

-- Mass-Message based on Profiles
-- Made by Optimus 8-1-2005

sBot = "-=Mass#System=-"

sCommands = {}

CmdPrefix = { ["!"]=1, ["?"]=1, ["+"]=1 }

Main = function()
	frmHub:RegBot(sBot)
end

sCommands["massp"] = function(user, data)
	local s,e,cmd,profile,message = strfind(data, "%b<>%s+(%S+)%s+(%S+)%s+(.+)")
	if user.bOperator then
		if profile and message then
			local GetProfile = GetUsersByProfile(profile)
			if GetProfileIdx(profile) ~= -1 then
				local text = CreateMassText(user, message)
				for a,b in GetProfile do
					if b then
						local vUser = GetItemByName(b)
						if vUser then
							vUser:SendPM(sBot, text)
						end
					end
				end
			else
				user:SendMessage(sBot, "*** Profile is not available!")
			end
		else
			user:SendMessage(sBot, "*** Usage: !massp profile message (profiles: netfounder, master, moderator, operator, vip, reg)")
		end
	end
	return 1
end

CreateMassText = function(user, message)
	if (strlen (message)*2/3+2) < 76 then
		border = strrep ("-", strlen (message)*2/3+2)
	else
		border = strrep ("-", 75)
	end
	return "*** Mass-Message # From: "..user.sName.."\r\n\r\n"..border.."\r\n"..message.."\r\n"..border.."\r\n"
end

DataArrival = function(user, data)
	if (strsub(data, 1, 1) == "<" ) then
		user.SendMessage = user.SendData return GetCommands(user, data)
	elseif (strsub(data, 1, 5) == "$To: ") then
		user.SendMessage = user.SendPM return GetCommands(user, data)
	end
end

GetCommands = function(user, data, cmd)
	data=strsub(data,1,strlen(data)-1)
	local s,e,prefix,cmd=strfind(data, "%b<>%s*(%S)(%S+)")
	if prefix and CmdPrefix[prefix] then
		if sCommands[cmd] then
			return sCommands[cmd](user, data)
		end
	end
end

Optimus

Feel free to add more...

1. timed, like every 60 minutes
2. reads message to send from a .txt file

Cid

:)

so it can send massmessages now to all profiles except unregged users... lol. thats exactly the opposite of what i wanted :P

i just wanted a script that sends a massmessage to unregged users bugging them like all the time to reg for the hub.

Optimus


SMF spam blocked by CleanTalk