• Home
  • Servers
  • Chat
  • Channels
  • Commands
  • Forum
  • FAQ
  • Software
  • Quotes
Topic Options
Rate This Topic
#5573 - 08/09/09 12:20 AM Fix my script?
tplack Offline
n00b

Registered: 08/26/08
Posts: 14
Loc: usa
menu nicklist {
.Moderate ( $+ $$1 $+ ):{ var %reason = $$?="For what reason is the room moderated?"
.Moderate ( $+ $$1 $+ ):{ var %time = $$?="How long is it modded?"
.timer 1 1 /mode $active +m | /msg $active The room has been moderated because: $calc(%reason). Only voiced users can talk at this time (+v in front of name). The room will go back to normal in %minutes.
.timer 1 $calc(%time * 60) /mode $active -m | .timer 1 $calc(%time * 60) /msg $active The room has been unmodded. Thank you for your cooperation and allow this to be a lesson learned.
}
}



Why doesn't this script work? Basically what I'm trying to make it do is add +m to the room, say that it was modded and why, and how long, and then after the moderation is finished it says that the +m is done.

Thanks and I could use some help!

Top
Sponsored Links
Sponsored Links
Member
*****

Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
Top
#5642 - 08/14/09 08:23 PM Re: Fix my script? [Re: tplack]
bradjoe96 Offline
newbie

Registered: 11/27/08
Posts: 36
Loc: United States
Very simple. So simple, you can do it in 3 lines of code smile
Thanks for the idea, by the way. I'm using it smile

Code:
menu nicklist {
  Moderate:set %mtime $?="How long is it modded (in minutes)?" | set %mreason $?="For what reason is the room moderated?" | /mode $active +m | /msg $active The room has been moderated because: %mreason $+ . Only voiced users can talk at this time (+v in front of name). The room will go back to normal in %mtime minutes. | .timer 1 $calc(%mtime * 60) /mode $active -m | .timer 1 $calc(%mtime * 60) /msg $active The room has been unmodded. Thank you for your cooperation and allow this to be a lesson learned.
}

Top


Moderator:  Jeff, mandy, usrbingeek