Lugia Mp3 Player v1.0(Dialog-based)

By Lugia on Aug 03, 2004

Yes,i know that this script is very crude. ;)

This is my first mp3 player made in dialog, it took me so long cause im stupid and couldn't figure out some of the commands, had to make it from scratch. lol, to use it just:

Right click in channel and click Mp3 Player

Type /mp3

Type /dialog -dm mp3 mp3


The script likes to mess up and give you 0 for a lot of things..if anyone knows a fix it'd be much appreciated. this is what shows up every once in a while instead of regular:

[Now Playing: 01 - Metallica - Enter Sandman][Duration: 0Seconds][Size: 0 Megabytes][Bitrate: Kbps][Mp3s Played: 245]


Basicly i just want to submit this to see what everyone thinks of it, if anyone sees an error please tell me :D

Errors: Another reason why im stupid, i dont know the command to get the mp3 to repeat, i got something on the bottom that tries to do it, but i tried to repeat $Did(13).seltext and %mp3, neither of which work, if anyone works it would be much appreciated.
```mirc alias mp3 { /dialog -dm mp3 mp3 } menu channel { - Mp3 Player:/dialog -dm mp3 mp3 } dialog mp3 { title "LuGiA Mp3 Player Beta" size -1 -1 140 210 option dbu box "Options", 1, 1 1 108 43 box "Song List", 2, 1 100 138 109 box "Info", 3, 1 44 138 56 box "Msg", 4, 110 1 29 43 button "Play", 5, 2 9 35 11 button "Stop", 6, 37 9 35 11 button "Pause", 7, 2 20 35 11 button "Resume", 8, 37 20 35 11 button "Repeat", 9, 2 31 35 11 button "No Repeat", 10, 37 31 35 11 button "Set Directory", 11, 72 9 36 33 button "Msg", 12, 111 9 27 11 button "Amsg", 14, 111 20 27 11 button "None", 15, 111 31 27 11 list 13, 2 108 136 100 text "", 16, 4 54 136 8 text "", 17, 4 62 100 8 text "", 18, 4 70 100 8 text "", 19, 4 78 100 8 text "", 20, 4 86 100 8 } ON *:DIALOG:MP3:SCLICK:*:{ if ($did == 5) { set %mp3 $Did(13).seltext set %bitrate $Sound($Insong.fname).bitrate Kbps set %size $Round($calc($lof($Insong.fname)/1000000),2) Megabytes set %duration $Replace($Duration($Calc($Sound($Insong.fname).length / 1000)),mins,Minutes,secs,Seconds) if (%msg == msg) msg $active 14[15 $+ Now Playing: %mp3 $+ 14][15 $+ Duration: %duration $+ 14][15 $+ Size: %size $+ 14][15 $+ Bitrate: %bitrate $+ 14][15 $+ Mp3s Played: %mp3.played $+ 14] if (%msg == amsg) msg $active 14[15 $+ Now Playing: %mp3 $+ 14][15 $+ Duration: %duration $+ 14][15 $+ Size: %size $+ 14][15 $+ Bitrate: %bitrate $+ 14][15 $+ Mp3s Played: %mp3.played $+ 14] splay -p %mp3dir $+ $Did(13).seltext $+ .mp3 did -ra mp3 16 Mp: $Did(13).seltext did -ra mp3 17 Duration: $Replace($Duration($Calc($Sound($Insong.fname).length / 1000)),mins,Minutes,secs,Seconds) did -ra mp3 18 Size: $round($calc($lof($Insong.fname)/1000000),2) Megabytes did -ra mp3 19 Bitrate: $Sound($Insong.fname).bitrate Kbps did -ra mp3 20 Mp Played: %mp3.played inc %mp3.played else halt } { if ($did == 6) { splay -p stop } if ($did == 7) { splay -p pause } if ($did == 8) { splay -p resume } if ($did == 9) { set %repeat on } if ($did == 10) { unset %repeat } if ($did == 11) { /set %mp3dir $sdir="Select your Mp Directory" } if ($did == 12) { set %msg msg } if ($did == 14) { set %msg amsg } if ($did == 15) { unset %msg } } } on *:DIALOG:Mp3:INIT:0:{ /Mp3List } alias Mp3List { var %mp3amt = 1 while (%mp3amt <= $findfile(%Mp3dir,*.mp3,0)) { did -a Mp3 13 $Remove($Nopath($Findfile(%mp3dir,*.mp3,%mp3amt)),.mp3) inc %mp3amt 1 } } on *:MP3END:{ if (%repeat == on) splay -p " $+ %mp3 $+ " } ```

Comments

Sign in to comment.
Chevy   -  May 09, 2007

Yeah this is awesome i mean it only announces in the active channel your in and also you have the decision to do a msg or a amsg and thats just sooooooooo cool i ain\'t never seen one look this BAD before.
First off you need to change $active to amsg (%msg == amsg) amsg
And also you might want to work on your repeat some and actually clean it up a bit cause it looks HORRIBLE.

 Respond  
corax   -  Sep 01, 2006

Menu is nice, features it has too, but to be honest this is only visuall nice eye view. When i wanna turn it on or do something nothing hapened.
`Kazuma the same here.
*/splay: no such file.
Completelly not usefull in my client too. )(

 Respond  
`Kazuma   -  Oct 23, 2005

Whenever I try to set my Directory nothing happens. Also when I open it, I can\'t really seem to click a button without my mIRC messing up. Ummmm, Some help?

 Respond  
Soxide   -  Sep 01, 2005

i cant get it to write the playlist file ?

 Respond  
stanlee_   -  May 30, 2005

on *:MP3END:{ if (%repeat == on) splay %mp3dir $+ %mp3 $+ .mp3 }

that should do it.

 Respond  
StarFirefly26   -  Feb 09, 2005

I can\'t get it to set the MP3 folder.

 Respond  
DarthReven   -  Nov 17, 2004

Its kinda scetchy just like all first scripts are but all in all nice job kodos to you sir kodos

 Respond  
KuTsuM   -  Nov 03, 2004

this is most definately one of the best mp3 snippets i\'ve seen on here, nice job :)

 Respond  
[-Superboyz-]   -  Aug 26, 2004

nice job dud...but the repeat doesn\'t work ...please edit ^_^ thanks

 Respond  
ReaperX   -  Aug 09, 2004

gasp!

 Respond  
X-FILE   -  Aug 06, 2004

me swearing?

 Respond  
ShowstoppeR   -  Aug 06, 2004

whoooooooooooooooooooooooo it doesnt work on the directory!

 Respond  
Hawkee   -  Aug 05, 2004

I\'ve noticed a lot of excessive swearing lately. You aren\'t the only one, but try not to provoke it.

 Respond  
ReaperX   -  Aug 04, 2004

there X-File lol

 Respond  
ReaperX   -  Aug 04, 2004

some shitty/ripped mp3 players i have seen here.

 Respond  
X-FILE   -  Aug 04, 2004

wheres swearing?

 Respond  
Hawkee   -  Aug 04, 2004

Xfile, can you keep the swearing down to a minimum? Thanks

 Respond  
X-FILE   -  Aug 03, 2004

stop calling yourself stupid , your mp3 player is not that bad..better than some shitty/ripped mp3 players i have seen here.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.