Timed Message!

By PoiXon on Jan 09, 2005

Just a simple timed message that u can have a timed message in a channel u want or u cah have it in every channel u are in just click in the nicklist click on Timed message

dialog timed {
  title "Timed Messages!"
  size -1 -1 175 90
  option dbu
  text "timed message:" 1, 5 6 50 10
  edit "" 2, 45 5 120 10, 
  text "Time inbetween each message" 4, 5 18 80 15
  edit "" 5, 5 27 80 10
  button "START" 6, 90 18 40 20
  button "STOP" 7, 132 18 40 20 
  text "in which channels?" 8, 5 40 90 15
  text "In Single Channel" 9, 5 53 90 15
  edit "" 10, 50 50 90 10
  text "OR......." 12, 5 70 70 15
  radio "OR ... In All Channels!" 11, 50 67 70 15
}
on *:dialog:timed:sclick:6: {
  if ($did(2) == $null) || ($did(5) == $null) { 
    echo -s Error: Message or time not set! 
    halt 
  }
  if ($did(timed,11).state == 1) {
    set %timed on
    set %time $did(5)
    set %message $did(2)
    timer1 0 %time amsg %message
  }
  if ($did(10) != $null) {
    set %chan $did(10)
    set %timed on
    set %time $did(5)
    set %message $did(2)
    timer1 0 %time msg %chan %message
  }
}
on *:dialog:timed:sclick:7: {
  if (%timed != on) { 
    echo -a Timed Message Is Not On! 
    halt
  }
  else {
    timer1 off
    echo -a Timed Message Halted!
  }
}
menu nicklist {
  Timed Message! { dialog -m timed timed }
}

Comments

Sign in to comment.
Kentaro Kurosaki   -  Feb 03, 2012

@Cheekyminx See above comments about changing the dialog size
I retract my earlier comment,
Can you explain?

 Respond  
Cheekyminx   -  Feb 03, 2012

Oops I mean to say Is there a way to increase the message field to include a longer message *without increasing the window size itself?

 Respond  
Cheekyminx   -  Feb 03, 2012

I know this post is ages old.. but Im working on a project and this is almost exactly what I need.

Is there a way to increase the message field to include a longer message? I cant seem to figure this one out when I break the script down, but then Im not great with scripts...

 Respond  
Gummo   -  Feb 12, 2010

Way to comment 2.5 years later... -.-

On another note, this script won't actually work if you already have a generic timer present. It calls its timer '1' which is the default name for any timer.

 Respond  
Stefke   -  Feb 12, 2010

Yes, if you can increase the field for the message ...

 Respond  
Pangaea   -  Sep 07, 2007

ahhh... so so silly me.. nice one gummo

/me pokes gummo

Best Regards Pan

 Respond  
Gummo   -  Sep 07, 2007

Pangaea, see the code:

menu nicklist {
Timed Message! { dialog -m timed timed }
}

That means that an option called \'Timed Message!\' is what you click, after right clicking on a nickname. The on *:dialog:timed:sclick:6: is just a way for the script to react to you pressing button number 6 in the dialog.

 Respond  
Pangaea   -  Sep 07, 2007

on *:dialog:timed:sclick:6: { whats this?

must i click my mouse button 6 times to bring the menu up?

im totaly confused here

 Respond  
Pangaea   -  Sep 07, 2007

huh?? wheres the menu?
where the channel triggers?

ive put this into my remotes.. loaded
but i cant see any popup mens anywhere regarding this
and ive looked in the code itself, so where the hell are the triggers??

its like buidling a car, perfectly functioning.. but there no doors or windows to get in?

I think somwhere along the line, u forgot to either make triggers
to set the msg, or u totaly left out the popup menu dialougs?

best of luck with it

 Respond  
Punny   -  Aug 03, 2007

yo i\'m really new at this and i really dont know what i am doing. can someone fill me in on how to work this snippet? such as where to put the message, time, channel and how to set the start and stop button. Thanks for the help.

 Respond  
Zaine   -  Mar 12, 2007

I have found a way to extend it to where you can make your messages longer.
on this line here, size -1 -1 175 90, change the 175 to a higher number. that will extend the window wider. Then on this line here, edit \"\" 2, 45 5 120 10, change the 120 to a higher number, but not to exced the first number you increased on the first number you changed.. then you should be able to create a longer message..

 Respond  
CoNvIcT   -  Jan 20, 2005

you mean vvvvvv Lucifer1 lmao :)

 Respond  
Lucifer1   -  Jan 15, 2005

i was thinking the same as ^^^^

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.