mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2006
Posts: 4
V
Valente Offline OP
Self-satisified door
OP Offline
Self-satisified door
V
Joined: Jul 2006
Posts: 4
hi, well my problem is this: i find a script that when i write in the bot /w2late he shows the song winamp is playing, but when the song finishes and the next one starts i need to re-type /w2late. what i want is when someone types !nowplaying the bot shows the song that is playing, but auto changing them so i dont have to be always typing /w2late. the script i have is this:
on *:START:{
set %2lateamp_version 1.54
if (%2lateamp_autoupd == ON) {
set %2lateamp_autoupdrun RUN
sockopen httpget xxxxxxxxxxxx 80
}
set %2lateamp_autoshow OFF
if (%2lateamp_autoshow == ON) {
%yMP3Song = $dll(2latemirc.dll,MP3Song,3)
timerstart
}
}
alias timerstart {
timer2late 0 5 showmp3song
}
alias showmp3song {
set %xMP3Song $dll(2latemirc.dll,MP3Song,3)
if (%xMP3Song != %yMP3Song) { w2late }
}
alias w2late {
if ($dll(2latemirc.dll,WinampStatus,3) == 1) || ($dll(2latemirc.dll,WinampStatus,3) == 3) {
if ($dll(2latemirc.dll,MP3Song,3) != $null) {
%MP3Song =  $+ $dll(2latemirc.dll,MP3Song,3)
%yMP3Song = $dll(2latemirc.dll,MP3Song,3)
%MP3Song = %2lateamp_c4 $+ %2lateamp_enclose1 $+  $+ %2lateamp_c1 $+ %MP3Song $+ $iif($dll(2latemirc.dll,WinampStatus,3) == 3, (PAUSED)) $+  $+ %2lateamp_c4 $+ %2lateamp_enclose2 $+  $+
;%MP3ShowTitleChange = $dll(2latemirc.dll,MP3Song,3)
%MP3Pos = $dll(2latemirc.dll,MP3Position,3) | $iif(%MP3Pos == STREAM,set %MP3Pos $null,set %MP3Pos %MP3Pos)
%MP3Lenght = $dll(2latemirc.dll,MP3Lenght,3) | $iif(%MP3Lenght == STREAM,set %MP3Lenght STREAM,set %MP3Lenght %MP3Lenght)
%MP3Lenght = %2lateamp_c4 $+ %2lateamp_enclose1 $+  $+ %2lateamp_c2 $+ Time:  $+ $iif(%2lateamp_position == ON,$+ %2lateamp_c8 $+  $+ %MP3Pos $+ /) $+ %2lateamp_c2 $+  $+ %MP3Lenght $+  $+ %2lateamp_c4 $+ %2lateamp_enclose2 $+  $+
%MP3BRate = $dll(2latemirc.dll,MP3Info,BRate)
%MP3BRate = %2lateamp_c4 $+ %2lateamp_enclose1 $+  $+ %2lateamp_c5 $+  $+ %MP3BRate $+ kbps $+  $+ %2lateamp_c4 $+ %2lateamp_enclose2 $+  $+
%MP3Samplerate = $dll(2latemirc.dll,MP3Info,SRate)
%MP3Samplerate = %2lateamp_c4 $+ %2lateamp_enclose1 $+  $+ $iif(%2lateamp_c6 != $null,%2lateamp_c6,) $+ %MP3Samplerate $+ kHz $+  $+ %2lateamp_c4 $+ %2lateamp_enclose2 $+  $+
%MP3Channels = $dll(2latemirc.dll,MP3Info,Chnl) | $iif(%MP3Channels == 2,set %MP3Channels STEREO,$iif(%MP3Channels == 1 || %MP3Channels == 0,set %MP3Channels MONO,set %MP3Channels %MP3Channels Chnl))
%MP3Channels = %2lateamp_c4 $+ %2lateamp_enclose1 $+  $+ %2lateamp_c3 $+  $+ %MP3Channels $+  $+ %2lateamp_c4 $+ %2lateamp_enclose2 $+  $+
if (%2lateamp_seperator != $null) { %Sepp = %2lateamp_c7 $+ %2lateamp_seperator }
else { unset %sepp }

%ListenString = %2lateamp_msgtxt %MP3Song $iif(%2lateamp_time == ON,%Sepp %MP3Lenght) $iif(%2lateamp_bitrate == ON,%Sepp %MP3BRate) $iif(%2lateamp_samplerate == ON,%Sepp %MP3Samplerate) $iif(%2lateamp_channels == ON,%Sepp %MP3Channels)
$iif(%2lateamp_actionmsg == ON,/me %ListenString,say %ListenString)
}
}
elseif ($dll(2latemirc.dll,WinampStatus,3) == 0) {
$iif(%2lateamp_errmsg == ON,$iif(%2lateamp_actionmsg == ON,/me Winamp is not playing,say Winamp is not playing),echo -a Winamp is not playing)
halt
}
else {
$iif(%2lateamp_errmsg == ON,$iif(%2lateamp_actionmsg == ON,/me Winamp is not running,say Winamp is not running),echo -a Winamp is not running)
halt
}
dll -u 2latemirc.dll
}

can someone help me plz? thx

Joined: Mar 2003
Posts: 612
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
why not set up a timer to activate the w2late alias every few minutes....

/timerwinampupdate 0 180 w2late

btk


billythekid
Joined: Jul 2006
Posts: 4
V
Valente Offline OP
Self-satisified door
OP Offline
Self-satisified door
V
Joined: Jul 2006
Posts: 4
no doesnt work =s

HELP PLZ frown

Last edited by Valente; 18/07/06 08:41 PM.

Link Copied to Clipboard