mIRC Home    About    Download    Register    News    Help

Print Thread
Op/Voice script ... Help? #188451 23/10/07 06:50 PM
Joined: Jun 2004
Posts: 243
G
gomp Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Jun 2004
Posts: 243
on *:op:#shamanism:{
$iif($opnick == Curious,.timer 1 2 /mode $chan +o gomp)
$iif($opnick == Curious,.mode $chan +v curious)
$iif($opnick == Curious,.timer 1 5 /mode $chan -o curious)
}

Is the script..




23 20:44:16 * Rejoined channel #shamanism
23 20:44:16 * Topic is 'Welcome to SHAMANISM! A place to talk of SHAmanism!'
23 20:44:16 * Set by Curious!~prejudice@ti211110a080-0036.bb.online.no on Tue Sep 25 15:48:44
23 20:44:18 * nugs sets mode: +o Curious
23 20:44:18 * Curious sets mode: +v Curious
23 20:44:18 * bobmarley sets mode: +o Curious
23 20:44:18 * Curious sets mode: +v Curious
23 20:44:20 * Curious sets mode: +o Gomp
23 20:44:20 * Curious sets mode: +o Gomp
23 20:44:23 * Curious sets mode: -o Curious
23 20:44:23 * Curious: you're not channel operator


Is what happens...

Those two bots give me op, but I do not want op, only for Gomp...


Anyways:
Is there anyway to make it only do it once?



I do not speak English. I speak Norwegian. So please bear with my poor English spelling and grammar.
Re: Op/Voice script ... Help? [Re: gomp] #188460 23/10/07 08:09 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Do what you did with the timers, but put all 3 items as timers, then name the timers. A named timer will reset itself when it's triggered again, so it won't do the same thing multiple times. An unnamed timer will just create new timers each time so it will repeat.

Just updating your code:
Code:
on *:op:#shamanism:{
  $iif($opnick == Curious,.timerOpGomp 1 2 mode $chan +o gomp)
  $iif($opnick == Curious,.timerVoiceMe 1 2 mode $chan +v curious)
  $iif($opnick == Curious,.timerDeopMe 1 5 mode $chan -o curious)
}


Or, an alternative:
Code:
on *:op:#shamanism:{
  if ($opnick == Curious) { .timerOpStuff 1 5 mode $chan +ov-o gomp curious curious }
}


Invision Support
#Invision on irc.irchighway.net
Re: Op/Voice script ... Help? [Re: Riamus2] #188666 27/10/07 04:53 PM
Joined: Jun 2004
Posts: 243
G
gomp Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Jun 2004
Posts: 243
Thanks a lot! You always seem to know, Riamus2!

I will test it right away!

I like you a lot! laugh


IT works! smile (As usual.)

on *:op:#shamanism:{
$iif($opnick == Curious,.timerOpGomp 1 2 mode $chan +o gomp)
$iif($opnick == Curious,.timerVoiceslicer 1 3 mode $chan +v slicer)
$iif($opnick == Curious,.timerVoicetripper 1 4 mode $chan +v tripper)
$iif($opnick == Curious,.timerVoicetripper- 1 5 mode $chan +v tripper-)
$iif($opnick == Curious,.timerVoicesnik 1 7 mode $chan +v snik)
$iif($opnick == Curious,.timerVoicefgl 1 6 mode $chan +v fgl)
$iif($opnick == Curious,.timerVoicephylote 1 8 mode $chan +v phylote)
$iif($opnick == Curious,.timerVoicef1asch 1 9 mode $chan +v f1asch)
$iif($opnick == Curious,.timerDeopMe 1 10 mode $chan -o curious)
}


Thanks!

Last edited by gomp; 27/10/07 04:59 PM.

I do not speak English. I speak Norwegian. So please bear with my poor English spelling and grammar.