cs_Apoc
Messages postés16Date d'inscriptiondimanche 20 octobre 2002StatutMembreDernière intervention18 mai 2003
-
24 oct. 2002 à 17:38
buste
Messages postés1Date d'inscriptionmardi 11 mai 2004StatutMembreDernière intervention11 mai 2004
-
11 mai 2004 à 12:58
Pour commencer, voici l'etendue de mon probleme.
on 1*:TEXT:!get %getmp3:*: {
/dcc send $nick ( " $+ $dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, TRACKFILENAME)),.mp3),_,$chr(32)) $+ $chr(34) $+ $chr(32) $+ )
}
Ca ne marche que si la personne fait !get %getmp3
J'ai pourtant mis ca : /Set %getmp3 $me
J'ai essayé des centaines de methodes, ca a pas marché.
Je vous met tout mon code, s'il vous plait, aidez moi !!!
;/load -rs ampstatus/ampstatus.mrc
on *:LOAD: {
echo -a Vous avez chargé le Script Winamp Status
echo -a Utilisable avec toutes les version de mIRC depuis la 5.91. (compatible Fate Script)
echo -a Utilisez les Menus ou la commande /wa pour afficher votre Status Winamp
}
menu query,nicklist,menubar,channel {
Statistiques Winamp: wa
}
alias wa {
if ($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, INSTALLED) == $false) { say $ampnoinstal | halt }
if ($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, RUNNING) == $false) { say $ampquit | halt }
if ($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, STATE) == Playing) { /ampplaying | halt }
if ($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, STATE) == Paused) { say $amppaused | halt }
if ($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, STATE) == Stopped) { say $ampstopped | halt }
}
on *:DIALOG:mp3setup:*:*: {
if ( $devent == init ) {
didtok mp3setup 13 59 0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;none
didtok mp3setup 14 59 0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;none
if ( b isin $gettok( %switches, 1, 32 ) ) did -c mp3setup 3
if ( e isin $gettok( %switches, 1, 32 ) ) did -c mp3setup 4
if ( f isin $gettok( %switches, 1, 32 ) ) did -c mp3setup 5
if ( m isin $gettok( %switches, 1, 32 ) ) did -c mp3setup 6
if ( p isin $gettok( %switches, 1, 32 ) ) did -c mp3setup 7
if ( r isin $gettok( %switches, 1, 32 ) ) did -c mp3setup 8
if ( s isin $gettok( %switches, 1, 32 ) ) did -c mp3setup 9
if ( t isin $gettok( %switches, 1, 32 ) ) did -c mp3setup 10
if ( z isin $gettok( %switches, 1, 32 ) ) did -c mp3setup 11
if ( a isin $gettok( %switches, 1, 32 ) ) did -c mp3setup 15
if ( u isin $gettok( %switches, 1, 32 ) ) did -c mp3setup 16
if ( c isin $gettok( %switches, 1, 32 ) ) {
did -c mp3setup 12
}
if ( ($gettok( %switches, 2, 32 ) isnum 0-15) && ($gettok( %switches, 3, 32 ) isnum 0-15) ) {
did -c mp3setup 13 $calc( $gettok( %switches, 2, 32 ) + 1 )
did -c mp3setup 14 $calc( $gettok( %switches, 3, 32 ) + 1 )
}
else {
did -c mp3setup 13 17
did -c mp3setup 14 17
}
}
if ( ($did 1) && ($devent sclick) ) {
var %mp3s.temp
if ( $did( mp3setup, 3 ).state ) %mp3s.temp = $+( %mp3s.temp, b )
if ( $did( mp3setup, 4 ).state ) %mp3s.temp = $+( %mp3s.temp, e )
if ( $did( mp3setup, 5 ).state ) %mp3s.temp = $+( %mp3s.temp, f )
if ( $did( mp3setup, 6 ).state ) %mp3s.temp = $+( %mp3s.temp, m )
if ( $did( mp3setup, 7 ).state ) %mp3s.temp = $+( %mp3s.temp, p )
if ( $did( mp3setup, 8 ).state ) %mp3s.temp = $+( %mp3s.temp, r )
if ( $did( mp3setup, 9 ).state ) %mp3s.temp = $+( %mp3s.temp, s )
if ( $did( mp3setup, 10 ).state ) %mp3s.temp = $+( %mp3s.temp, t )
if ( $did( mp3setup, 11 ).state ) %mp3s.temp = $+( %mp3s.temp, z )
if ( $did( mp3setup, 15 ).state ) %mp3s.temp = $+( %mp3s.temp, a )
if ( $did( mp3setup, 16 ).state ) %mp3s.temp = $+( %mp3s.temp, u )
if ( $did( mp3setup, 12 ).state ) {
%mp3s.temp = $+( %mp3s.temp, c )
if ( ($did( mp3setup, 13 ).text != none) && ($did( mp3setup, 14 ).text != none) ) {
%mp3s.temp = %mp3s.temp $did( mp3setup, 13 ).text $did( mp3setup, 14 ).text
}
}
set %switches $+( -, %mp3s.temp )
dialog -x mp3setup
} if ( ($did 16) && ($devent sclick) ) {
did -u $dname 10
}
}
alias prcbar {
set %procent $1
if %procent <= 10 { set %output 12[14||||||||||12] }
if %procent >= 10 { set %output 12[4|14|||||||||12] }
if %procent >= 20 { set %output 12[4||14||||||||12] }
if %procent >= 30 { set %output 12[4|||14|||||||12] }
if %procent >= 40 { set %output 12[4||||14||||||12] }
if %procent >= 50 { set %output 12[4|||||14|||||12] }
if %procent >= 60 { set %output 12[4||||||14||||12] }
if %procent >= 70 { set %output 12[4|||||||14|||12] }
if %procent >= 80 { set %output 12[4||||||||14||12] }
if %procent >= 90 { set %output 12[4|||||||||14|12] }
if %procent >= 95 { set %output 12[4||||||||||12] }
return %output
unset %procent
unset %output
}
Kerrigan
Messages postés708Date d'inscriptionlundi 15 juillet 2002StatutMembreDernière intervention17 mars 2005 25 oct. 2002 à 12:10
moi j'aurais coder ça comme ça
on *:text:!get*:*: {
if ( $2 = %getmp3 ) {
ton bloc de commande
}
}
ou alors c un truc dans le genre en tout cas je code tjs ems evenement texte de cette açon et je n'ai jamais eu de probleme ente et dit moi si ça passe
plusssssss