mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2004
Posts: 540
A
Armada Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
on *:text:*DJ*Is Currently Playing*:#myroom: {
inc %x
var %left = $right($1-,19)
var %right = $left(%left,3)
var %final.count = $right(%right,2)
set [ %listeners. $+ [ %x $+ ] $+ ] $+ $chr(32) $+ $time $date %final.count $3
echo $chan o Listeners: %final.count
}
;DJ: RadioBot (Rated: L) Is currently Playing: Tool - The Grudge on SuprNova.Radio (29/901 Listeners)»
What im trying to do is Pull info from that string to a variable like this
%listeners.31 23:08:24 05/04/2004 21 RadioBot Tool - The Grudge
Where 21 is the listener count and RadioBot is the actual dj and after that is the song, Ive gotten this to the point of Listner count and dj but i cant pull out the song
Update:
on *:text:*DJ*Is Currently Playing*:#admin: {
var %song.title1 = $left($11-,500)
var %song.title2 = $remove(%song.title1,on suprnova.radio)
echo #admin %song.title1
echo #admin %song.title2
}
gets me close but cant seem to loose (26/901 Listeners)» those number can change so i cnat just eliminate them

Last edited by Armada; 06/04/04 05:44 AM.
#78153 06/04/04 09:25 AM
Joined: Mar 2004
Posts: 540
A
Armada Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
I figured it out


Link Copied to Clipboard