mIRC Home    About    Download    Register    News    Help

Print Thread
#84733 31/05/04 02:18 PM
Joined: May 2004
Posts: 132
N
NoPleX Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: May 2004
Posts: 132
whats wrong with this script? it wont stop the timer!

on @*:text:*#*:#XpressioN:{
if ($nick isvoice $chan) { mode $chan -v $nick {
/msg $chan Stop med at advertise på #XpressioN, (5m -v) {
timerdevoice 0 10 mode $chan +v $nick
}
}
}
}

#84734 31/05/04 02:24 PM
Joined: Jun 2003
Posts: 4,670
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 4,670
If you specify '0' that means it will keep doing it until you manually stop the timer. If you want the command to be executed once in 10 seconds, use /timer 1 10 mode $chan +v $nick.

Also see /help /timer.

Regards,

#84735 31/05/04 02:34 PM
Joined: May 2004
Posts: 132
N
NoPleX Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: May 2004
Posts: 132
okay thanks

But if i use timer 1 10 then it will trigger the script every 10 sec or will it only trigger the script when some one gets -v ?

#84736 31/05/04 03:02 PM
Joined: Jun 2003
Posts: 4,670
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 4,670
In your case it should voice someone once after ten seconds of being devoiced when they say '#' in the channel.

Just an FYI, you don't need to put / before commands in scripting. So /msg can just be msg.

Regards,

#84737 31/05/04 03:02 PM
Joined: Mar 2004
Posts: 108
X
Vogon poet
Offline
Vogon poet
X
Joined: Mar 2004
Posts: 108
it will only trigger on *#* im assuming a channel invite or spam prevention script.. so everytime someone types for example #something it will devoice them for 10 seconds.

#84738 31/05/04 03:51 PM
Joined: May 2004
Posts: 132
N
NoPleX Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: May 2004
Posts: 132
ok thanks guys it works great laugh

#84739 31/05/04 08:59 PM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
Hi,

you're starting to get better at scripting, nice smile

There are some unnecessary braces in your code though:
Code:
 
on @*:text:*#*:#XpressioN:{ 
  if ($nick isvoice $chan) { mode $chan -v $nick }
  msg $chan Stop med at advertise på #XpressioN, (5m -v) 
  .timerdevoice 1 10 mode $chan +v $nick
}


Last edited by FiberOPtics; 31/05/04 09:00 PM.
#84740 31/05/04 09:09 PM
Joined: May 2004
Posts: 132
N
NoPleX Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: May 2004
Posts: 132
Thanks.. Well i made alot of protection scripts but its just some commands i just dont know what means and then im all lost confused

BTW are you watching me ? :tongue:


Link Copied to Clipboard