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
}
}
}
}


if ($me != geek) { $life is $false }
else { $life is $true }
NoPleX
#84734 31/05/04 02:24 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
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,


Mentality/Chris
#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 ?


if ($me != geek) { $life is $false }
else { $life is $true }
NoPleX
#84736 31/05/04 03:02 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
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,


Mentality/Chris
#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.


sometimes these are as bad as quit messages :tongue:
#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


if ($me != geek) { $life is $false }
else { $life is $true }
NoPleX
#84739 31/05/04 08:59 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
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.

Gone.
#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:


if ($me != geek) { $life is $false }
else { $life is $true }
NoPleX

Link Copied to Clipboard