Mixer 2 inputs..

cs_DeViL66 Messages postés 152 Date d'inscription lundi 28 février 2005 Statut Membre Dernière intervention 3 novembre 2006 - 31 août 2005 à 13:30
cs_DeViL66 Messages postés 152 Date d'inscription lundi 28 février 2005 Statut Membre Dernière intervention 3 novembre 2006 - 31 août 2005 à 19:25
Salut à tous,


Je souhaiterai integrer un addon couleur à mon script, mais j'utilise deja un input, me servant à changer l'apparence de l'heure, et de mon pseudo ((13:25:10) (@bouh) TEXTE , a la place de [13:25] TEXTE, ...) et il faudrai les mettre ensemble, pour ne pas que quand je tape un texte avec l'addon couleur activé, il se tape en double.... (a cause des 2 inputs)
Je fait appel à vous voici les 2 inputs, celui de l'addon d'écriture de couleur :

on 1:input:*:{
if (/ == $left($1,1)) { goto stop }
if (! == $left($1,1)) { goto stop }
if (. == $left($1,1)) { goto stop }
if (x == $left($1,1)) { goto stop }
if (c isin $chan($chan).mode) { goto stop }
if ($left($active,2) != #!) {
if (%effet == on) { goto effets } if ((%soul !1) && (%reverse 1)) { msg $active  $+ $1- | halt }
if ((%soul == 1) && (%reverse != 1)) { msg $active  $+ %ccc $+ , $+ %f $+ $1- | halt } if ((%soul 1) && (%reverse 1)) { msg $active  $+ $1- | halt }
else { goto standard }
}
else { goto officiel }
:effets
if (%effet.a == on) { var %a.t $upper($left($1-,1)) | var %s.t $mid($1-,2) | msg $active %gpl $+ %soulpl $+  $+ %prem $+ , $+ %premf $+ %a.t $+  $+ %rest $+ , $+ %restf $+ %gpl $+ %soulpl $+ %soulrest $+ %grest $+ %s.t | halt }
if (%effet.b == on) {
if ( %supercoul == 0) { msg $active 11,12 <4<8 `13` 11 $1- 13`8`4 >11> | set %supercoul 1 | halt }
{ msg $active 4,12 <11<13 `8` 4 $1- 8`13`11 >4> | set %supercoul 0 | halt }
}
if (%effet.c == on) {
if ( %supercoul == 0) { msg $active 15,1¯`°²º?æ=«.,?_ 0|14[ _13 $1- 14_ ]0| 15 _?,.»=æ?º²°`¯ | set %supercoul 1 | halt }
if ( %supercoul == 1) { msg $active 11,1¯`°²º?æ=«.,?_ 0|6[ _13 $1- 6_ ]0| 11 _?,.»=æ?º²°`¯ | set %supercoul 2 | halt }
if ( %supercoul == 2) { msg $active 8,1¯`°²º?æ=«.,?_ 7|4[ _13 $1- 4_ ]7| 8 _?,.»=æ?º²°`¯ | set %supercoul 3 | halt }
if ( %supercoul == 3) { msg $active 4,1¯`°²º?æ=«.,?_ 9|11[ _13 $1- 11_ ]9| 4 _?,.»=æ?º²°`¯ | set %supercoul 4 | halt }
if ( %supercoul == 4) { msg $active 9,1¯`°²º?æ=«.,?_ 11|10[ _13 $1- 10_ ]11| 4 _?,.»=æ?º²°`¯ | set %supercoul 5 | halt }
{ msg $active 7,1¯`°²º?æ=«.,?_ 9|8[ _13 $1- 8_ ]9| 7 _?,.»=æ?º²°`¯ | set %supercoul 0 | halt }
}
if (%effet.d == on) {
if ( %supercoul == 0) { msg $active 4,1@3}-9`3--9;3-1_8 $1- 1_3-9;3--9'3-{4@ | set %supercoul 1 | halt }
if ( %supercoul == 1) { msg $active 4,1@3}-9`3--9;3-1_11 $1- 1_3-9;3--9'3-{4@ | set %supercoul 2 | halt }
if ( %supercoul == 2) { msg $active 4,1@3}-9`3--9;3-1_13 $1- 1_3-9;3--9'3-{4@ | set %supercoul 3 | halt }
if ( %supercoul == 3) { msg $active 4,1@3}-9`3--9;3-1_15 $1- 1_3-9;3--9'3-{4@ | set %supercoul 4 | halt }
if ( %supercoul == 4) { msg $active 4,1@3}-9`3--9;3-1_9 $1- 1_3-9;3--9'3-{4@ | set %supercoul 5 | halt }
if ( %supercoul == 5) { msg $active 4,1@3}-9`3--9;3-1_0 $1- 1_3-9;3--9'3-{4@ | set %supercoul 6 | halt }
{ msg $active 4,1@3}-9`3--9;3-1_7 $1- 1_3-9;3--9'3-{4@ | set %supercoul 0 | halt }
}
if (%effet.e == on) {
if ( %supercoul == 0) { msg $active 11,1°13 o7 O 13] 7[10 $1- 7]13 [ 7 O13 o 11 ° | set %supercoul 1 | halt }
if ( %supercoul == 1) { msg $active 7,1°11 o13 O 11] 13[10 $1- 13]11 [ 13 O11 o 7 ° | set %supercoul 2 | halt }
{ msg $active 13,1°7 o11 O 7] 11[10 $1- 11]7 [ 11 O7 o 13 ° | set %supercoul 0 | halt }
}
if (%effet.f == on) {
if ( %supercoul == 0) { msg $active 11,13‡13 •••12 $1- 13••• 11‡ | set %supercoul 1 | halt }
if ( %supercoul == 1) { msg $active 11,13‡ •13••12 $1- 13••11• ‡ | set %supercoul 2 | halt }
if ( %supercoul == 2) { msg $active 11,13‡13 •11•13•12 $1- 13•11•13• 11‡ | set %supercoul 3 | halt }
if ( %supercoul == 3) { msg $active 11,13‡13 ••11•12 $1- 11•13•• 11‡ | set %supercoul 4 | halt }
if ( %supercoul == 4) { msg $active 11,13‡13 •11•13•12 $1- 13•11•13• 11‡ | set %supercoul 5 | halt }
{ msg $active 11,13‡ •13••12 $1- 13••11• ‡ | set %supercoul 0 | halt }
}
if (%effet.g == on) { msg $active %deco.g $1- %deco.d | halt }
if (%effet.h == on) {
if ( %supercoul == 0) { msg $active 8,12(¯`'·.13?8(¯`'·.13? *12_11 $1- 12_13* ?8.·'?¯)13?8.·'?¯) | set %supercoul 1 | halt }
if ( %supercoul == 1) { msg $active 13,12(¯`'·.11?13(¯`'·.11? *12_8 $1- 12_11* ?13.·'?¯)11?13.·'?¯) | set %supercoul 2 | halt }
if ( %supercoul == 2) { msg $active 11,12(¯`'·.8?11(¯`'·.8? *12_13 $1- 12_8* ?11.·'?¯)8?11.·'?¯) | set %supercoul 3 | halt }
if ( %supercoul == 3) { msg $active 13,12(¯`'·.8?13(¯`'·.8? *12_11 $1- 12_8* ?13.·'?¯)8?13.·'?¯) | set %supercoul 4 | halt }
if ( %supercoul == 4) { msg $active 11,12(¯`'·.13?11(¯`'·.13? *12_8 $1- 12_13* ?11.·'?¯)13?11.·'?¯) | set %supercoul 5 | halt }
{ msg $active 8,12(¯`'·.11?8(¯`'·.11? *12_13 $1- 12_11* ?8.·'?¯)11?8.·'?¯) | set %supercoul 0 | halt }
}
if (%effet.i == on) {
if ( %supercoul == 0) { msg $active 13,1|~~~~>1,1_8"1_11 $1- 1_8"1_13||| | set %supercoul 1 | halt }
if ( %supercoul == 1) { msg $active 13,1|~>1,1_8"1_11 $1- 1_8"1_13||| | set %supercoul 2 | halt }
if ( %supercoul == 2) { msg $active 13,1|~~>1,1_8"1_11 $1- 1_8"1_13||| | set %supercoul 3 | halt }
{ msg $active 13,1|~~~>1,1_8"1_11 $1- 1_8"1_13||| | set %supercoul 1 | halt }
}
if (%effet.j == on) {
if ( %supercoul == 0) { msg $active 7,2ø8?9°7`9°8?7ø8,7?9?8,9ø9?15 $1- 9,2?8,7ø7?8°7`9°9?8ø8,9?7?7,8ø8? | set %supercoul 1 | halt }
if ( %supercoul == 1) { msg $active 8,2ø7?8°7`9°8?9ø8,9?7?8,7ø8?15 $1- 7,2?8,9ø9?8°9`7°9?8ø7,8?9?9,7ø8? | set %supercoul 2 | halt }
if ( %supercoul == 2) { msg $active 9,2ø8?7°8`7°9?8ø9,8?9?7,8ø7?15 $1- 9,2?7,7ø8?9°8`7°8?8ø9,8?7?7,8ø9? | set %supercoul 3 | halt }
if ( %supercoul == 3) { msg $active 7,2ø9?8°7`8°7?9ø8,9?8?8,7ø8?15 $1- 7,2?8,9ø9?8°9`7°7?7ø7,8?9?9,8ø7? | set %supercoul 4 | halt }
{ msg $active 9,2ø7?9°8`7°8?7ø9,8?9?8,8ø9?15 $1- 8,2?7,8ø7?8°9`7°9?8ø9,7?7?8,7ø9? | set %supercoul 0 | halt }
}
if (%effet.k == on) {
if ( %supercoul == 0) { msg $active 2,15 † 12 $1- 2 † | set %supercoul 1 | halt }
if ( %supercoul == 1) { msg $active 11,12 † 13 $1- 11 † | set %supercoul 2 | halt }
if ( %supercoul == 2) { msg $active 0,1† 15 $1- 0 † | set %supercoul 3 | halt }
if ( %supercoul == 3) { msg $active 8,4 † 4,8 $1- 8,4 † | set %supercoul 4 | halt }
if ( %supercoul == 4) { msg $active 3,2 † 9 $1- 3 † | set %supercoul 5 | halt }
if ( %supercoul == 5) { msg $active 7,6 † 11,13 $1- 7,6 † | set %supercoul 6 | halt }
if ( %supercoul == 6) { msg $active 4,1 † 15 $1- 4 † | set %supercoul 7 | halt }
if ( %supercoul == 7) { msg $active 6,15†15_13 $1- 15_6† | set %supercoul 8 | halt }
{ msg $active 4,0 † 0,4 $1- 4,0 † | set %supercoul 0 | halt }
}
if (%effet.r == on) {
if ( %supercoul == 0) { msg $active 1,8[H0uBa]8,1 $1- 1,8[H0uBa ] | set %supercoul 1 | halt }
{ msg $active 8,1[H0uBa]1,8 $1- 8,1[H0uBa ] | set %supercoul 0 | halt }
}
if (%effet.s == on) {
if ( %supercoul == 0) { msg $active 11,12 $+ $1- | set %supercoul 1 | halt }
if ( %supercoul == 1) { msg $active 8,1 $+ $1- | set %supercoul 2 | halt }
if ( %supercoul == 2) { msg $active 11,4 $+ $1- | set %supercoul 3 | halt }
if ( %supercoul == 3) { msg $active 3,8 $+ $1- | set %supercoul 4 | halt }
if ( %supercoul == 4) { msg $active 15,1 $+ $1- | set %supercoul 5 | halt }
if ( %supercoul == 5) { msg $active 10,15 $+ $1- | set %supercoul 6 | halt }
if ( %supercoul == 6) { msg $active 7,1 $+ $1- | set %supercoul 7 | halt }
if ( %supercoul == 7) { msg $active 13,1 $+ $1- | set %supercoul 8 | halt }
if ( %supercoul == 8) { msg $active 15,2 $+ $1- | set %supercoul 9 | halt }
if ( %supercoul == 9) { msg $active 11,6 $+ $1- | set %supercoul 10 | halt }
if ( %supercoul == 10) { msg $active 0,7 $+ $1- | set %supercoul 11 | halt }
if ( %supercoul == 11) { msg $active 13,8 $+ $1- | set %supercoul 12 | halt }
if ( %supercoul == 12) { msg $active 1,9 $+ $1- | set %supercoul 13 | halt }
if ( %supercoul == 13) { msg $active 11,13 $+ $1- | set %supercoul 14 | halt }
if ( %supercoul == 14) { msg $active 4,2 $+ $1- | set %supercoul 15 | halt }
if ( %supercoul == 15) { msg $active 1,10 $+ $1- | set %supercoul 16 | halt }
if ( %supercoul == 16) { msg $active 7,15 $+ $1- | set %supercoul 17 | halt }
if ( %supercoul == 17) { msg $active 2,7 $+ $1- | set %supercoul 18 | halt }
if ( %supercoul == 18) { msg $active 1,8 $+ $1- | set %supercoul 19 | halt }
if ( %supercoul == 19) { msg $active 0,2 $+ $1- | set %supercoul 20 | halt }
if ( %supercoul == 20) { msg $active 4,11 $+ $1- | set %supercoul 21 | halt }
if ( %supercoul == 21) { msg $active 11,1 $+ $1- | set %supercoul 22 | halt }
if ( %supercoul == 22) { msg $active 8,3 $+ $1- | set %supercoul 0 | halt }
}
:officiel if ((%soul !1) && (%reverse 1)) { msg $active %g $+  $+ $1- | halt }
else { goto standard }
:standard
if (%ccc == off) { goto stop } | else { msg $active %g $+  $+ %ccc $+ , $+ %f $+ $1- | halt }
:stop
}

Et voici le INPUT pour l'apparence....

on *:INPUT:*:{
if ((/* !iswm $1-) && (!* !iswm $1-)) {
if ($me isop $chan) { echo $chan 2(1 $+ $time $+ 2)1 2(4 $+ @1 $+ $me $+ 2)1 $1- }
elseif ($me ishop $chan) { echo $chan 2(1 $+ $time $+ 2)1 2(1 $+ 7%1 $+ $me $+ 2)1 $1- }
elseif ($me isvoice $chan) { echo $chan 2(1 $+ $time $+ 2)1 2(1 $+ 3+ $+ $me $+ 2)1 $1- }
else { echo $chan 2(1 $+ $time $+ 2)1 2(1 $+ $me $+ 2)1 $1- }
.msg $target $1-
halt
}
}

Voila merci d'avance de votre aide


Thedeviltogta

3 réponses

Nolson Messages postés 216 Date d'inscription mardi 7 novembre 2000 Statut Membre Dernière intervention 16 mars 2006
31 août 2005 à 17:06
Met un haltdef au début du premier on input :

on 1:input:*:{
haltdef
if (/ == $left($1,1)) { goto stop }
.........

Je suppose aussi que tes 2 on input sont dans des remotes différents.
0
cs_DeViL66 Messages postés 152 Date d'inscription lundi 28 février 2005 Statut Membre Dernière intervention 3 novembre 2006
31 août 2005 à 17:52
oui dans 2 remotes différents :p


Merci déjà du coup de pouce


Thedeviltogta
0
cs_DeViL66 Messages postés 152 Date d'inscription lundi 28 février 2005 Statut Membre Dernière intervention 3 novembre 2006
31 août 2005 à 19:25
Ah non,

Le haltdef bloque les commandes que j'effectue..

Thedeviltogta
0
Rejoignez-nous