My MP3

By Tweek on Jun 04, 2011

Screenshots

My first MIRC Script
this is not my script
this is wriths
he said i could change it and post it as mine

Alias mp3 { 
  if (!$dialog(Wmp3)) dialog -mdo Wmp3 Wmp3
  Else {
    Dialog -ie Wmp3 Wmp3
  }
}
alias Remaining {
  If ($dialog(Wmp3)) {
    did -ra Wmp3 4 $asctime($round($calc(($insong.length - $insong.pos) / 1000),0),nn:ss),none)
    Else { Halt }
  }
}
dialog Wmp3 {
  title "Tweek iRc Mp3"
  icon Icons\Prototype.icon, 0
  size -1 -1 245 95
  option dbu
  list 2, 4 4 154 90, vsbar size sort
  edit "", 3, 165 72 75 10, read autohs autovs
  edit "", 4, 190 83 24 10, read autohs autovs right
  box "", 5, 165 16 75 56
  button "Play", 6, 168 25 32 12
  button "Pause", 7, 185 39 32 12
  button "Resume", 8, 204 25 32 12
  button "Stop", 9, 168 53 32 12
  button "Directory", 14, 204 53 32 12
  text "Tweek Mp3 By WraithRIOT ", 15, 170 12 65 8
}

on *:Dialog:Wmp3:*:*:{
  if ($devent == InIt) {
)
    Did -a Wmp3 2 $findfile(%dir, *.mp3,0,did -a Wmp3 2 $nopath($1-))
    did -ra Wmp3 3 Nothing is playing
    did -ra Wmp3 4 00:00 
  }
  If ($Devent == Sclick) {
    If ($did = 6) {
      var %Playing $Remove($did(Wmp3,2).seltext,.Wmp3)
      var %song $findfile(%dir,$did(Wmp3,2).seltext,1)
      set %length $gmt($round($calc($mp3(%song).length / 1000),0),nn:ss)
      splay %song
      Did -ra $dname 3 $remove($nopath($insong.fname)$1-,.mp3) 
      Did -ra $dname 4 %length
      .timermp3 0 0 Remaining
    }
    If ($did = 7) {
      Splay Pause
    }
    If ($did = 8) {
      Splay Resume
    }
    If ($did = 9) {
      Splay stop
    }
    If ($did = 14) {
      set %dir $sdir="Mp3 Directory"
      write mp3.txt
      noop $findfile(%dir,*.mp3,0,write mp3.txt $1-)
      var %num $findfile(%dir, *.mp3,0,did -a Wmp3 2 $nopath($1-))
    }
    If ($did = 16) {
      splay stop
      set %cplay on
      set %songnum 1
      splay $read(mp3.txt,%songnum)
      set %length $gmt($round($calc($mp3($insong.fname).length / 1000),0),nn:ss)
      did -ra Wmp3 3 $remove($nopath($insong.fname)$1-,.mp3)
      .timermp3 0 0 Remaining
      spam
    }
    If ($did = 17) {
      splay stop
      splay stop
      set %cplay off
      .timermp3 off
      did -ra Wmp3 3 Nothing is playing
      did -ra Wmp3 4 00:00
    }
    If ($did = 18) {
      if (%cplay == off) { Halt }
      splay stop
      inc %songnum
      splay $read(mp3.txt,%songnum)
      set %length $gmt($round($calc($mp3($insong.fname).length / 1000),0),nn:ss)
      did -ra Wmp3 3 $remove($nopath($insong.fname)$1-,.mp3)
      .timermp3 0 0 Remaining
      spam
    }
  }
  If ($devent == Dclick) {
    If ($did = 2) { 
      var %Playing $Remove($did(Wmp3,2).seltext,.Wmp3)
      var %song $findfile(%dir,$did(Wmp3,2).seltext,1)
      set %length $gmt($round($calc($mp3(%song).length / 1000),0),nn:ss)
      splay %song
      Did -ra $dname 3 $remove($nopath($insong.fname)$1-,.mp3) 
      Did -ra $dname 4 %length
      Spam
      .timermp3 0 0 Remaining
    }
  }
}
On *:Mp3end:{
  if (%cplay == on) {
    inc %songnum
    splay $read(mp3.txt,%songnum)
    set %length $gmt($round($calc($mp3($insong.fname).length / 1000),0),nn:ss)
    did -ra Wmp3 3 $remove($nopath($insong.fname)$1-,.mp3)
    spam
  }
}
Alias Spam {
  If (%spam = 1) {
    Sconamsg 14,1(4-0 $+ 15Wraith 15M4p15,1314:0 $remove($nopath($insong.fname)$1-,.mp3)  %length $+ 4-14)
  }
  If (%spam = 2) {
    Say 14,1(4-0 $+ 15Wraith 15M4p15,1314:0 $+ $remove($nopath($insong.fname)$1-,.mp3)  %length 4-14)
  }
  If (%Spam = 3) {
    Echo -a $Timestamp 14,1(4-0Now Playing4-14) 14,1(4-0 $+ 15Wraith 15M4p15,1314:0 $remove($nopath($insong.fname)$1-,.mp3)  %length 4-14)
  }
  If (%Spam = 4) {
    Halt
  }
}

alias sconamsg {
  var %x = 1
  var %chans = $chan(0)
  var %scid = $scon(0)
  var %scon = 1
  :started
  scon %scon
  if (!$server) && (%scon != scid) { inc %scon | goto started }
  if (!$server) && (%scon == %scid) { goto end }
  if ($chan(1)) amsg $1-
  if (!$chan(1)) && (%scon != %scid) { inc %scon | goto started }
  if (!$chan(1)) && (%scon == %scid) { goto end }
  if (%scid <= %scon) {
    goto end
  }
  inc %scon
  goto started
  :end
  haltdef 
}
alias mdx { return DLL\mdx.dll }
alias hos { return DLL\hos.dll }
alias views { return DLL\views.mdx }
alias bars { return DLL\bars.mdx }
alias custom { return DLL\mircustom.dll }
alias ctl { return DLL\ctl_gen.mdx }
alias dmdx { return DLL\dialog.mdx }
alias views { return DLL\views.mdx }
alias mdxin { dll $mdx SetMircVersion $version | dll $mdx MarkDialog $dname }
alias popupsd { return DLL\POPUPS.DLL }
alias de { return $dll(DLL\darkenginex.dll,$1,_) }

Menu * {
  Mp3: Mp3
}

Comments

Sign in to comment.
[i]concur   -  Jun 11, 2011

xD
^ that's all i have to say.

 Respond  
napa182   -  Jun 05, 2011

^^heh

 Respond  
Jethro   -  Jun 05, 2011

Scott's gonna get his finger busy 'cause there are many of 'em needin' to be deleted...

I think I'm gonna sound like a diсk: anyone want a deanroll to nibble on? :p

 Respond  
napa182   -  Jun 05, 2011

D34th the only ones that don't follow that rule are people that try to get away with ripping. an if you don't state it in ur Description then Hawkee will delete it.

 Respond  
Scakk   -  Jun 05, 2011

Scakk take a look at his number of posts resounding 1 newbie be a little nicer to the newbies :P

They are the ones that are making this site look bad due to ripping and codes that barely meant the requirements.

 Respond  
Jethro   -  Jun 05, 2011

He's done it. 2+ Yay! lol

 Respond  
napa182   -  Jun 05, 2011

yes i do come off as an asshole, but idc..

 Respond  
D34th   -  Jun 05, 2011

Deffenatally agree with you Ryan.
napa no one follows that rule

 Respond  
blackvenomm666   -  Jun 05, 2011

napa is never overly joyful. he comes off as an ass allllll the time mmhmm

 Respond  
napa182   -  Jun 05, 2011

why would i be overly joyful? anyways they should have stated it in the Description as the rules state.

At least 25% of the code must be written by you.
If you used somebody else's snippet you must include a URL to the original.

 Respond  
D34th   -  Jun 05, 2011

Scakk take a look at his number of posts resounding 1 newbie be a little nicer to the newbies :P
napa im not butt hurt ive just never found your comments to be too overly joyful especially tonight :P

 Respond  
napa182   -  Jun 05, 2011

D34th why so butt hurt?
anyways the snippet has alot of repetitiveness in it as well as Dll's not included.

 Respond  
Scakk   -  Jun 05, 2011

I do not have the time to ask every single person if their snippet is theirs or not or if they were given permission to do so. Also as I stated previously he could have saved the trouble if he had mentioned in the Description he was given permission to repost it. The simple solutions can prevent issues.

 Respond  
D34th   -  Jun 05, 2011

napa the same can be said about yourself bud :D

 Respond  
napa182   -  Jun 05, 2011

Tweek Wrote:

shut the fark up man he said i could use it so i did if you have a !@#$ problum then dont !@#$ look at it

Tweek you should really take ur own advice an STFU......

anyways 2/10

 Respond  
D34th   -  Jun 05, 2011

If you payed close attention to the code it says "Tweek's mp3 by wraithriot" wraithriot being my old sn

Also if u ask me you should ask the original creator if they had permissions before assuming the code is a rip.
If you had done that you would have saved yourself the time it took you to post the last few comments.
As well as not disrupting my gaming so i have to come on here and post regarding if this script is a rip or not when it is obviously not a rip =]

 Respond  
Tweek   -  Jun 05, 2011

shut the fuck up man he said i could use it so i did if you have a fucking problum then dont fucking look at it

 Respond  
Scakk   -  Jun 05, 2011

That is well and good but there is no mention that I can see that you said he could , until your post , and there is nothing in his description stating as such either.

 Respond  
D34th   -  Jun 05, 2011

Scakk
Way to steal this from http://www.hawkee.com/snippet/7662/

I have given him permission to post this script as he has given me credit for the actual coding of the sclick functions (buttons) not the dialog itself he has some credit to it and it is not a rip as ive told him he could post it

 Respond  
Tweek   -  Jun 05, 2011

he said i could post it and say its mine as long as pple know he helped me

 Respond  
Jethro   -  Jun 04, 2011

I'm just a little amazed at how some people can be shameless enough to submit something that doesn't belong to him or her and call it mine. Some even get defensive to come up with a variety of excuses when busted.

 Respond  
GrimReaper   -  Jun 04, 2011

It even says " text "Tweek Mp3 By WraithRIOT ", 15, 170 12 65 8" within the dialog. lol So it's obviously not Tweeks.

 Respond  
blackvenomm666   -  Jun 04, 2011

well wraithriot does know his dialogs. he's helped me a couple times im pretty sure he did his

 Respond  
Jethro   -  Jun 04, 2011

Why does stealing and ripping keep happening? lol Worse yet, the title say, "My MP3" Also, we have no way of knowing if the link to the original author made it himself.

 Respond  
Scakk   -  Jun 04, 2011

Way to steal this from http://www.hawkee.com/snippet/7662/

 Respond  
blackvenomm666   -  Jun 04, 2011

you should have a screen shot

 Respond  
Sorasyn   -  Jun 04, 2011

If you're going to utilize DLL's you need to post the associated files so we can.. you know.. USE it.

 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.