Un petit script tout de bombe tout simple pour mIRC qui date... pour les amoureux du kick.
La version simple (2 couleurs):
Téléchargeable ici:
boumCode:
alias bomb2c {
%bomb = 1
%bombchan = $active
%bombnick = $1
%bombrand = $rand(0,1)
%bombtime = $rand(20,70)
say %bombnick $+ , tu as %bombtime secondes pour désamorcer la bombe... Alors fil 12!bleu ou fil 4!rouge? Héhé, Tic Tac !
.timer500 1 %bombtime kick %bombchan %bombnick 4<< BOOM 4>>
.timer501 1 $calc(%bombtime + 1) unset %bomb*
}
ON *:text:*:%bombchan: {
if (%bomb != 1) || ($nick != %bombnick) { halt }
elseif ($strip($1) == !bleu) {
if (%bombrand == 0) { msg %bombchan *** Bomb defused by %bombnick *** | timer50* off | unset %bomb }
if (%bombrand == 1) { kick %bombchan %bombnick 7<<4 BOOM 7>> | timer50* off | unset %bomb }
}
elseif ($strip($1) == !rouge) {
if (%bombrand == 1) { msg %bombchan *** Bomb defused by %bombnick *** | timer50* off | unset %bomb }
if (%bombrand == 0) { kick %bombchan %bombnick 7<<4 BOOM 7>> | timer50* off | unset %bomb }
}
}
menu nicklist {
Violence
.Bombe:bombe2c $$1
}
La version 4 couleurs:
Téléchargeable ici:
Boum*4Code:
alias bomb4 {
%bomb = 1
%bombchan = $active
%bombnick = $1
%bombrand = $rand(0,3)
%bombtime = $rand(20,70)
say %bombnick $+ , tu as %bombtime secondes pour désamorcer la bombe... Alors fil 12!bleu, fil 4!rouge, fil 3!vert, fil 1!noir ou 8!filkifopakoupersinoncafaittoutpeter? Héhé, Tic Tac !
.timer500 1 %bombtime kick %bombchan %bombnick 4<< BOOM 4>>
.timer501 1 $calc(%bombtime + 1) unset %bomb*
}
ON *:text:*:%bombchan: {
if (%bomb != 1) || ($nick != %bombnick) { halt }
elseif ($strip($1) == !bleu) {
if (%bombrand == 0) { msg %bombchan *** Bomb defused by %bombnick *** | timer50* off | unset %bomb* }
if (%bombrand == 1) { kick %bombchan %bombnick 4<< BOOM 4>> mauvais fil! | timer50* off | unset %bomb* }
if (%bombrand == 2) { msg %bombchan %bombnick coupe le mauvais fil ce qui lui vaut de perdre ses membres! | mode %bombchan -ohv %bombnick %bombnick % | timer50* off | unset %bomb* }
if (%bombrand == 3) { msg %bombchan %bombnick diffuse la bombe et est promu ! | mode %bombchan +v %bombnick | timer50* off | unset %bomb* }
}
elseif ($strip($1) == !rouge) {
if (%bombrand == 1) { msg %bombchan *** Bomb defused by %bombnick *** | timer50* off | unset %bomb* }
if (%bombrand == 0) { kick %bombchan %bombnick 4<< BOOM 4>> Mauvais fil! | timer50* off | unset %bomb* }
if (%bombrand == 3) { msg %bombchan %bombnick coupe le mauvais fil ce qui lui vaut de perdre ses membres! | mode %bombchan -ohv %bombnick %bombnick % | timer50* off | unset %bomb* }
if (%bombrand == 2) { msg %bombchan %bombnick diffuse la bombe et est promu ! | mode %bombchan +v %bombnick | timer50* off | unset %bomb* }
}
elseif ($strip($1) == !vert) {
if (%bombrand == 2) { msg %bombchan *** Bomb defused by %bombnick *** | timer50* off | unset %bomb* }
if (%bombrand == 3) { kick %bombchan %bombnick 4<< BOOM 4>> Mauvais fil! | timer50* off | unset %bomb* }
if (%bombrand == 1) { msg %bombchan %bombnick coupe le mauvais fil ce qui lui vaut de perdre ses membres! | mode %bombchan -ohv %bombnick %bombnick % | timer50* off | unset %bomb* }
if (%bombrand == 0) { msg %bombchan %bombnick diffuse la bombe et est promu ! | mode %bombchan +v %bombnick | timer50* off | unset %bomb* }
}
elseif ($strip($1) == !noir) {
if (%bombrand == 3) { msg %bombchan *** Bomb defused by %bombnick *** | timer50* off | unset %bomb* }
if (%bombrand == 2) { kick %bombchan %bombnick 4<< BOOM 4>> Mauvais fil! | timer50* off | unset %bomb* }
if (%bombrand == 0) { msg %bombchan %bombnick coupe le mauvais fil ce qui lui vaut de perdre ses membres! | mode %bombchan -ohv %bombnick %bombnick % | timer50* off | unset %bomb* }
if (%bombrand == 1) { msg %bombchan %bombnick diffuse la bombe et est promu ! | mode %bombchan +v %bombnick | timer50* off | unset %bomb* }
}
elseif ($strip($left($1,1)) == !) { kick %bombchan %bombnick 4<< BOOM 4>>, t'as tout fait pèter, boulet. | timer50* off | unset %bomb* }
}
menu nicklist {
Violence
.Bombe 4 couleurs:bomb4 $$1
}
Voilà, pas de bêtise.