A Timed Mass Message Script
 

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

A Timed Mass Message Script

Started by SomeShine, 25 March, 2004, 20:29:36

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SomeShine

Can anyone help me??

im searching a script that automaticly sends a mass message f.eks every 30 minutes..

ive tried to make one myself but 1st of all im a girl 2nd of all im a total 110% scripting newbie..


Bot = "TU-Girl"

sec = 1000
min = 60 * sec

function SendPmToAll()
   SetTimer(2 * min)
   StartTimer()
   message = "To Register At This Hub PM SomeShine With Username And Password"
   border = "?????????????????????????????????????????????????????????????????"
       border1 = "?????????????????????????????????????????????????????????????????"
      tosend = "\r\n"..border.."\r\n"..message.."\r\n"..border1.."\r\n"
      
      SendPmToAll(sBot, tosend)
end

This is my try to make it.. dont tell its a mess i know that.. i just took something from some different scripts i have.. please someone make this so-called script work, or make on for me..

thanks in advance - SomeShine

plop

QuoteOriginally posted by SomeShine
Can anyone help me??

im searching a script that automaticly sends a mass message f.eks every 30 minutes..

ive tried to make one myself but 1st of all im a girl 2nd of all im a total 110% scripting newbie..


Bot = "TU-Girl"

sec = 1000
min = 60 * sec

function SendPmToAll()
   SetTimer(2 * min)
   StartTimer()
   message = "To Register At This Hub PM SomeShine With Username And Password"
   border = "?????????????????????????????????????????????????????????????????"
       border1 = "?????????????????????????????????????????????????????????????????"
      tosend = "\r\n"..border.."\r\n"..message.."\r\n"..border1.."\r\n"
      
      SendPmToAll(sBot, tosend)
end

This is my try to make it.. dont tell its a mess i know that.. i just took something from some different scripts i have.. please someone make this so-called script work, or make on for me..

thanks in advance - SomeShine
girl or not you have a start and your gone finish it yourself. lol
if you look in the scripting.txt from the docs folder you can find this.
QuoteSendPmToAll(from, data) - Sends private message to all users
  from - nick of sending user or bot or anything
  data - message to send
that means it's reserved so you can't have a function which has the same name.
Quote--// This function is fired at the serving start
function Main()
  -- TODO your code here
end
in this function your gone start and set the timer.
QuoteTo respond on timer event write your response code into OnTimer function:
function OnTimer()
  //TODO: your code here
end
this is the place where your gone do the stuff which you want 2 trigger on the timer (the SendPmToAll).

good luck
plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

TiMeTrAVelleR

This is it

BotName = "TH-Girl"

sek = 1000
min = sek*60
hour = min*60
days = hour*24

time = 1*min

function Main()
   SetTimer(time)
   StartTimer()
end

   line = "\r\n\r\n.\r\n"
   line = line.."?================================================================?\r\n"
   line = line.."To Register At This Hub PM SomeShine With Username And Password\r\n"   
   line = line.."?================================================================?\r\n"
   line = line..".\r\n|"

function OnTimer()
   SendPmToAll(BotName, line)
end


Thanks  plop  :D

plop

http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

JackTheRipper2002

Hi.. Im not very well in english.. so i hope you could understand what's my problem.. and i hope you could help me..
I work with scripts since 3 days.. so excuse me if my question seem to be stupid.. ( im searchd a lot but i could find annother hint wich could help me..)
Ich changed the script a bit.. so it's not send as an Pm..

It work.. if I start the script.. but it don't acting automaticly.. just to test I set the time 5*sek.. but after 5 seconds it doesn't come on main..do I have to make a file "time" and what shell I do in this file.. ??

---------------------------------------------------------------------
BotName = "Bot"

sek = 1000
min = sek*60
hour = min*60
days = hour*24

time = 5*sek

function Main()
SetTimer(time)
StartTimer()
end

SendToAll"\r\n\r\n.\r\n"
SendToAll";?================================================================?\r\n "
SendToAll"To Register At This Hub PM SomeShine With Username And Password\r\n"
SendToAll";?================================================================?\r\n "
SendToAll"\r\n|"

function OnTimer()
SendToAll(BotName, SendToAll)
end

Hope you understand what I mean..

Bye Jack
------------------------------------------------------------------------------------
 |------<:::::==---+([DME])=-=([JackTheRipper??])+---==:::::>------|
------------------------------------------------------------------------------------


TiMeTrAVelleR

time = 1*min    that has  to be there  put amount off minutes  in there what you want

 :]

JackTheRipper2002

Ok... but I don't have to create any file or text file or anything else.. ok.. thx again..
bye Jack
------------------------------------------------------------------------------------
 |------<:::::==---+([DME])=-=([JackTheRipper??])+---==:::::>------|
------------------------------------------------------------------------------------


JackTheRipper2002

hmm.. :O(
I tired... meybe I should lern the bases of scripting.. but this is my complet script and i don't work.. Do I have to put in a "1" or...

BotName = "TH-Girl" 

sek = 1000 
min = sek*60 
hour = min*60 
days = hour*24 

time = 1*min

function Main() 
SetTimer(time) [do i have to put in something els??]
StartTimer()     [or here??]
end 

SendToAll(".") 
SendToAll("?=========================================================================================================================?") 
SendToAll("                                                                Bitte beachtet, dass am Sonntag den 04.04.2004 um 15Uhr Hablaber ist!!")
SendToAll("                                                                                            !!also seid bitte alle anwesend!!") 
SendToAll("?=========================================================================================================================?") 
SendToAll(".") 

function OnTimer() 
SendToAll(BotName, SendToAll) 
end

thx in advance Jack
------------------------------------------------------------------------------------
 |------<:::::==---+([DME])=-=([JackTheRipper??])+---==:::::>------|
------------------------------------------------------------------------------------


[NL]trucker

JackTheRipper2002

first of all if you add a script you have to do a scriptrestart in ptotax otherwise it will never work.

========================================
BotName = "TH-Girl"

sek = 1000
min = sek*60
hour = min*60
days = hour*24

time = 1*min

function Main()
frmHub:RegBot(BotName)-- hier sorgst du dafur das deinen bot im userlist kommt wenn du nicht willst das den botname im userlist kommt dan setze  --  dafur.
SetTimer(1)
StartTimer()  
end

SendToAll(".")
SendToAll("?===================================================?")
SendToAll("    Bitte beachtet, dass am Sonntag den 04.04.2004 ")
SendToAll("                um 15Uhr Hablaber ist!!")
SendToAll("            !!also seid bitte alle anwesend!!")
SendToAll("?===================================================?")
SendToAll(".")

function OnTimer()
SendToAll(BotName, SendToAll)
end
--------------------------------------------------------------------------------

hmmmm

i restarted scripts and when i do so it shows once in main but after that ....nothing happens.

and it doesnt matter if i put something

SetTimer(1)  

inhere or not .
Owner of FunnyHub
 
Funyhub.no-ip.info
       Forum Master of


JackTheRipper2002

#9
oki.. fine.. I've changed nearly the hole and combiened some script and modified them.. now it work.. *smile

Of course if someone want's to use or change to make it better.. Here it is...

( ok I know.. it's just a kind of combination.. but I'm a bit proud that it work.. I've first seen anything like a script last Weekend*gggg)

(axo...sind hier noch mehr, die deutsch sprechen???)

-----------------------------------------
------made by T?M??r?V?ll?R------
-----------------------------------------
---Modi by JackTheRipper2002---
-----------------------------------------
current = date("%H:%M:%S")
sec = 1000
min = sec*60

--------------------------------------------------------
function Main() 
	--frmHub:RegBot("---" ..current .."---")--
	SetTimer(min) 
	StartTimer() 
end 
--------------------------------------------------------
function OnTimer() 

	frmHub:UnregBot("---" ..current .."---")
	time = date("%H:%M:%S")
	current = time
			if (date("%M") == "00" ) then
			SendToAll(line)

				elseif (date("%M") == "30" ) then
				SendToAll(line)
line=SendToAll(".")
line=SendToAll("................................................................................................"..".--==::[".."Es ist--"..time.."--UHR".."]::==--.".."................................................................................................") 
line=SendToAll("<[FP]-Timeticker>")
line=SendToAll("?=========================================================================================================================?") 
line=SendToAll("                                                                 Bitte beachtet, dass am Sonntag den 04.04.2004 um 15Uhr Hablaber ist!!")
line=SendToAll("                                                                                                 !!also seid bitte alle anwesend!!") 
line=SendToAll("?=========================================================================================================================?") 
line=SendToAll(".")
	end
			end
				

			
--------------------------------------------------------
function OnExit()
frmHub:UnregBot("---" ..current .."---")
end
--------------------------------------------------------

Thx @ all Jack
------------------------------------------------------------------------------------
 |------<:::::==---+([DME])=-=([JackTheRipper??])+---==:::::>------|
------------------------------------------------------------------------------------


mau108

how bout a timed mass message for specific users??

like a command to set which user gets a specific message every few minutes...

is that possible? :rolleyes:

JackTheRipper2002

#11
So.. I have changed again... That's a shorter version an will work better with secondary start time..means [=="00"], [=="30]...

Could I change anything els to make the script shorter??

-----------------------------------------
------made by T?M??r?V?ll?R------
-----------------------------------------
---Modi by JackTheRipper2002---
-----------------------------------------


current = date("%H:%M:%S")
sec = 1000
min = sec*60

--------------------------------------------------------
function Main() 
	--frmHub:RegBot("---" ..current .."---")--
	SetTimer(min) 
	StartTimer() 
end 
--------------------------------------------------------
function OnTimer() 

	frmHub:UnregBot("---" ..current .."---")
	time = date("%H:%M:%S")
	current = time
			if (date("%M") == "00" ) or (date("%M") == "30" ) then
			SendToAll(line)

				
			
line=SendToAll(".")
line=SendToAll("................................................................................................"..".--==::[".."Es ist--"..time.."--UHR".."]::==--.".."................................................................................................") 
line=SendToAll("<[FP]-Timeticker>")
line=SendToAll("?=========================================================================================================================?") 
line=SendToAll("                                                                 Bitte beachtet, dass am Sonntag den 04.04.2004 um 15Uhr Hablaber ist!!")
line=SendToAll("                                                                                                 !!also seid bitte alle anwesend!!") 
line=SendToAll("?=========================================================================================================================?") 
line=SendToAll(".")
	end
			end
				

			
--------------------------------------------------------
function OnExit()
frmHub:UnregBot("---" ..current .."---")
end
--------------------------------------------------------

@mau108 I'm just a newbi in scripting and on this Board.. But I belive there is somthing possible to this.. but  I think that's the wrong Thread.. or isn't it??

Bye Jack
------------------------------------------------------------------------------------
 |------<:::::==---+([DME])=-=([JackTheRipper??])+---==:::::>------|
------------------------------------------------------------------------------------


plop

@JackTheRipper2002
pls add a comment 2 your script version that it was made by T?M??r?V?ll?R, he deserves the credits.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

JackTheRipper2002

Sorry Plop.. I forgot... I've changed.. Ok now?? or did I have to change anything else?
------------------------------------------------------------------------------------
 |------<:::::==---+([DME])=-=([JackTheRipper??])+---==:::::>------|
------------------------------------------------------------------------------------


[NL]trucker

hai first of all i,m a neby to this also but

Quote--------------------------------------------------------
function Main()
   --frmHub:RegBot("---" ..current .."---")--
   SetTimer(min)
   StartTimer()
end
--------------------------------------------------------
function OnTimer()

   frmHub:UnregBot("---" ..current .."---")
   time = date("%H:%M:%S")
   current = time

it seems to me this is doublle

with this line  you do nothing
--frmHub:RegBot("---" ..current .."---")--

cause all with [--] infront is ignored by the script

then you unreg the bot from script ontimer ??
frmHub:UnregBot("---" ..current .."---")

so question?

why unreg a bot on a timer?
whats the use for that ?

if you put

BotName = ("---" ..current .."---")

and dont reg the bot it will still show the name of the bot in front of the message if i,m right .

so that way you wont have to reg and unreg the bot thus saving mem.

if one of the masterscripter think i,m wrong please correct me
Owner of FunnyHub
 
Funyhub.no-ip.info
       Forum Master of


JackTheRipper2002

hmmm.. I thought that (--) only is that the bot is not regist. in the user list.. so the bot not always show the time.. only when its 30 or 00 ??
When I delet this line.. the bot do not work.. don't know if I have to change enything else, if i delet the line..


Another question.. could it be that the board has been down??? I'd tried the last time but no reachable page..

If there is someone how I can ask if this happen again.. e-mail oder ICQ or Sono.. so that I'll find the board again??
------------------------------------------------------------------------------------
 |------<:::::==---+([DME])=-=([JackTheRipper??])+---==:::::>------|
------------------------------------------------------------------------------------


plop

QuoteOriginally posted by JackTheRipper2002
hmmm.. I thought that (--) only is that the bot is not regist. in the user list.. so the bot not always show the time.. only when its 30 or 00 ??
When I delet this line.. the bot do not work.. don't know if I have to change enything else, if i delet the line..


Another question.. could it be that the board has been down??? I'd tried the last time but no reachable page..

If there is someone how I can ask if this happen again.. e-mail oder ICQ or Sono.. so that I'll find the board again??
the board has indeed been offline, but during that there was a temp board.
as soon as things like that happen and i find out about it you can find the links on my website (//www.plop.nl).

about the script, before you continue i suggest you take a close look @ the scripting.txt which you can find in the docs folder from ptokax.
SendToAll is a ptokax function, that means you can't use that for anything else.

trucker is right about registering the bot, what i can see from how your trying 2 use it you don't need 2 register it, and so there is absolutly no need 2 unregister it.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Tuben

I like your website Plop :D
-Dark-Mind-[ DOWNLOAD ]

JackTheRipper2002

ok I've changed it.. and thanks for the help and your page.. she's nice... :O)
------------------------------------------------------------------------------------
 |------<:::::==---+([DME])=-=([JackTheRipper??])+---==:::::>------|
------------------------------------------------------------------------------------


SMF spam blocked by CleanTalk