Skip to content
General Chat Talk

Help In This Code

A TG007 community discussion started by RashedHammad.

Discussion 3 posts
Page 1 of 1
Open
Topic #12892 · 3 published posts · 1,315 views
menu menubar {
  -
  SongSystem
  .Start Song addon System[2] %schan1 :/dialog -m song-sys2 song-sys2
  .Stop Song Timer
  ..Stop Song Timer[2] %schan1 :timerSong2 off | unset %schan1
  ..Stop All Song Timer:timerSong1 off | timerSong2 off | timerSong3 off | unset %schan0 | unset %schan1 | unset %schan2
  -
}
.Edit Song.txt:/run song.txt

dialog song-sys2 {
  title "¤ Rashed Advertizing Box ¤"
  size -1 -1 130 60
  option dbu
  box "Time (Seconds)", 3, 2 28 50 26
  edit "300", 4, 7 39 40 10
  button "Set", 5, 64 38 24 9
  button "UnSet", 6, 93 38 24 9
  box "Control", 7, 56 28 69 26
  button "OK", 8, 15 5 100 20, ok
}
on *:dialog:song-sys2:sclick:5:{ set %schan1 $active | set %song0 $ | set %song1 read | set %song2 song.txt | timerSong2 0 $did( $dname , 4 ).text /msg $chan  %song0 $+ %song1 %song2  | /msg $chan  $read song.txt  | }
on *:dialog:song-sys2:sclick:6:{ timerSong2 off | unset %schan1 }
}
on *:TEXT:~song http*//*.*/*.ram:#:/splay sounds\tab.wav | /write song.txt  $2 (8) added By $nick  | /amsg [(8)] $nick  Your Song  Has Been Added, thanx [(8)] 
on *:TEXT:~song http*//*.*/*.ra:#:/splay sounds\tab.wav | /write song.txt  $2 (8) added By $nick  | /amsg  [(8)] $nick  Your Song  Has Been Added, thanx [(8)]
on *:TEXT:~song http*//*.*/*.rm:#:/splay sounds\tab.wav | /write song.txt  $2 (8) added By $nick  | /amsg  [(8)] $nick  Your Song  Has Been Added, thanx [(8)]
on *:TEXT:~song http*//*.*/*.smil:#:/splay sounds\tab.wav | /write song.txt  $2 (8) added By $nick  | /amsg  [(8)] $nick  Your Song  Has Been Added, thanx [(8)]
}
.Edit Song.txt:/run song.txt

Try This

menu menubar {
  -
  SongSystem
  .Start Song addon System[2] %schan1 :/dialog -m song-sys2 song-sys2
  .Stop Song Timer
  ..Stop Song Timer[2] %schan1 :timerSong2 off | unset %schan1
  ..Stop All Song Timer:timerSong1 off | timerSong2 off | timerSong3 off | unset %schan0 | unset %schan1 | unset %schan2
  .Edit Song.txt:/run song.txt
  -
}
dialog song-sys2 {
  title "¤ Rashed Advertizing Box ¤"
  size -1 -1 130 60
  option dbu
  box "Time (Seconds)", 3, 2 28 50 26
  edit "300", 4, 7 39 40 10
  button "Set", 5, 64 38 24 9
  button "UnSet", 6, 93 38 24 9
  box "Control", 7, 56 28 69 26
  button "OK", 8, 15 5 100 20, ok
}
on *:dialog:song-sys2:sclick:5:{ set %songchan $active | set %songposttimer $did($dname,4).text  | /msg %songchan $read song.txt | timerSong2 0 %songposttimer  postsong }
on *:dialog:song-sys2:sclick:6:{ timerSong2 off | unset %songchan }
alias postsong { /msg %songchan $read song.txt }
on ^*:JOIN:#: { if ($nick == $me) && (%songchan != $null) && (%songposttimer != $null) && (!$timer(Song2)) { echo -a Song Timer Restarted | .timerSong2 0 %songposttimer postsong } }
on *:TEXT:~song http*//*.*/*.ram:#:/splay sounds\tab.wav | /write song.txt  $2 (8) added By $nick  | /amsg [(8)] $nick  Your Song  Has Been Added, thanx [(8)]
on *:TEXT:~song http*//*.*/*.ra:#:/splay sounds\tab.wav | /write song.txt  $2 (8) added By $nick  | /amsg  [(8)] $nick  Your Song  Has Been Added, thanx [(8)]
on *:TEXT:~song http*//*.*/*.rm:#:/splay sounds\tab.wav | /write song.txt  $2 (8) added By $nick  | /amsg  [(8)] $nick  Your Song  Has Been Added, thanx [(8)]
on *:TEXT:~song http*//*.*/*.smil:#:/splay sounds\tab.wav | /write song.txt  $2 (8) added By $nick  | /amsg  [(8)] $nick  Your Song  Has Been Added, thanx [(8)]

Edited Jun 2, 2009 1:41 PM by err0r

Get information about ircWx here

The gap inbetween

.Edit Song.txt:/run song.txt

 

dialog song-sys2 {

 

is the problem the code the person above me should work if it doesnt replace the - with a } enjoy