-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWPplayer.txt
executable file
·2630 lines (2543 loc) · 79 KB
/
WPplayer.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; If this doesnt work on your machine, or
;;;;;;;;;; Script by billythekid ;;;;;;;;;; you have any questions, please don't
;;;;;;;;;; Find me in #IRCWavPlayers ;;;;;;;;;; hesitate to get in touch.
;;;;;;;;;; On PhaZeNet ;;;;;;;;;; memo billythekid in PhaZeNet or email
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; btk@the-kid.org
alias wp.ver {
return 3.0.6(beta)
}
dialog -l wpmain {
title WP MP3 Player v $+ $wp.ver
size -1 -1 299 150
option dbu notheme
icon $scriptdirwpicon.ico, 0
button "PLAY", 2, 248 125 47 11, default
button "STOP", 4, 248 137 40 11
button "Refresh", 5, 3 139 30 8
tab "MP3", 8, 3 1 242 136
list 1, 7 17 235 117, tab 8 sort size hsbar
scroll "mp3position", 66, 35 139 211 8, tab 8 range 0 100 horizontal
tab "WAV", 9
list 10, 7 17 235 117, tab 9 sort size hsbar
check "Play channel wavs played by others if file exists in list above.", 71, 40 138 205 10, tab 9
tab "WMA", 48
list 49, 7 17 235 117, tab 48 sort size hsbar
tab "ZIP", 12
list 47, 7 17 235 117, tab 12 sort size hsbar
tab "Channel", 3
list 7, 7 17 235 106, tab 3 sort size extsel hsbar
button "Remove", 21, 70 125 60 10, tab 3
button "Clear All", 22, 217 125 26 10, tab 3
button "Grab", 23, 7 125 60 10, tab 3
tab "List Maker", 39
button "Make List", 40, 6 115 150 20, tab 39
check "Folder Names", 41, 51 22 64 8, tab 39
check "Attach Message:", 44, 51 46 58 9, tab 39
edit "", 45, 7 58 235 55, tab 39 multi return autovs vsbar
check "MP3 Files", 42, 10 22 35 8, tab 39
check "WAV Files", 43, 10 30 35 8, tab 39
check "ZIP Files", 51, 10 38 35 8, tab 39
button "Advertise List", 20, 157 115 86 20, tab 39
check "File Sizes", 26, 51 30 53 8, tab 39
check "Bitrate/Rate/Mode(Very Slow)", 27, 51 38 85 8, tab 39
box "Include", 28, 7 15 135 42, tab 39
edit %wp.listnick, 34, 171 29 56 10, tab 39
text "List Nick", 36, 145 29 25 8, tab 39
check "WMA Files", 62, 10 46 35 8, tab 39
check "compress list for quicker sending?", 72, 145 45 95 10, tab 39
tab "Search", 46
list 15, 7 40 235 94, tab 46 sort size hsbar
button "Search", 14, 8 29 115 10, tab 46
edit "", 13, 7 17 235 10, tab 46
button "Perform @find", 67, 126 29 115 10, tab 46
tab "List Grabber", 54
box "Current List Being Grabbed", 55, 8 19 232 20, tab 54
text %wp.grablist, 56, 10 27 130 8, tab 54
button "SelectList", 57, 145 25 30 10, tab 54
list 58, 8 42 233 74, tab 54 size extsel hsbar
button "Remove Line", 59, 9 119 61 15, tab 54
button "Stop", 60, 190 119 26 15, tab 54
text %wp.grabchan, 63, 75 124 84 8, tab 54
button "Change", 64, 161 122 25 10, tab 54
button "Resume", 61, 217 119 26 15, tab 54
box "Channel", 32, 72 116 117 19, tab 54
button "Check list for doubles", 69, 180 25 55 10, tab 54
check "Play Messages", 16, 250 50 46 10
check "Handle Sends", 17, 250 17 44 8
check "Handle @find", 18, 250 2 44 8
check "Silent Play", 35, 252 88 41 10
link "WP", 50, 290 140 8 8
check "Random", 6, 252 99 41 10
check "Repeat", 11, 252 110 41 10
edit %wp.slots, 52, 275 25 20 10
text "Max Slots", 53, 250 25 25 10
button "Change File", 65, 254 60 35 10
button "Use Blank", 25, 254 70 35 10
box "", 29, 248 46 49 38
box "", 30, 248 84 49 38
box "", 31, 248 12 49 34
check "Send SLOTS", 33, 250 35 44 10
menu "Settings", 37
item "Folder Settings", 38, 37
item "Set On Top", 19, 37
item "Hide Spam", 68, 37
item "Show in MSN Messenger", 70, 37
item "Use OnAirNow Plugin", 73, 37
item "Stealth", 24, 37
item "About", 101, 37
}
dialog -l wpabout {
title "About The Author"
size -1 -1 326 123
option pixels notheme
icon 1, 215 10 100 100, $scriptdirBILLYsmall.jpg, 0, noborder
link "My Weblog", 2, 45 100 60 16
link "My Scripts", 3, 120 100 60 16
text "I can be found in the PhaZeNet IRC network in #IRCWavPlayers or in #billythekids-hideout. Feel free to /msg me for a chat. For more info about me and what I am doing at the moment, click one of the links below.", 4, 5 5 205 90
}
alias -l wpabout {
if $exists($scriptdirBILLYsmall.jpg) {
dialog -md wpabout wpabout
}
else run http://the-kid.org/about.html
}
on 1:dialog:wpabout:sclick:*:{
if $did == 2 run http://blog.the-kid.org
elseif $did == 3 run http://billy.the-kid.org
}
dialog -l wpupdate {
title "WP MP3 Player UPDATER"
size -1 -1 299 150
option dbu notheme
text %wp.updatetext, 1, 5 1 290 15
button "UPDATE NOW (Recommended)", 2, 5 115 240 30, ok
button "NO THANKS", 3, 250 115 45 30, cancel
list 5, 10 30 280 75, size hsbar
box "Updates", 6, 5 20 290 90
menu "", 4
}
alias msnsong {
var %wp.dll $+($scriptdir,MsnSong.dll)
.comreg %wp.dll
.comopen msn Msn.Write
if ($comerr) {
;register the DLL
comreg %wp.dll
;try to open it again
comopen msn Msn.Write
; still failed, halt the script
if ($comerr) halt
}
var %i $com(msn,WriteToMsn,1,bstr,$1-,bstr,$null,bstr,$null)
.comreg -u %wp.dll
.comclose msn
}
on 1:dialog:wpupdate:init:0:{
var %i 1
:damn
if $($+(%,wp.ud,%i),2) {
did -a wpupdate 5 $v1
inc %i
goto damn
}
did -z wpupdate 5
unset %wp.ud*
unset %wp.updatetext
unset %wp.pfound
}
on 1:dialog:wpupdate:sclick:*:{
if $did == 2 { run http://billy.the-kid.org/scripts/wpplayer.zip }
elseif $did == 3 { dialog -ve wpmain }
}
alias -l wp.checkversion {
.unset %wp.pfound
.set %wp.versionchecked $true
sockopen wpp billy.the-kid.org 80
}
on *:sockopen:wpp:{
if ($sockerr > 0) return
sockwrite -n $sockname GET /scripts/wpplayerversion.html HTTP/1.1
sockwrite -n $sockname Host: billy.the-kid.org $+ $crlf $+ $crlf
}
on 1:sockread:wpp:{
if ($sockerr > 0) return
:nextread
sockread -f %wp.data
if ($sockbr == 0) return
if (%wp.data == $null) %wp.data = -
if %wp.pfound {
set %wp.latestversion $gettok(%wp.data,2,32)
if ( $wp.ver < %wp.latestversion ) {
set %wp.updatetext $($gettok(%wp.data,3,62) , 2 )
var %u 0
goto updates
}
elseif $wp.ver > %wp.latestversion {
set %wp.updatetext You currently have WP MP3 Player v $+ $wp.ver installed $+ $chr(44) the latest legitimate version is actually v $+ %wp.latestversion $crlf $+ There may be some error... Would you like to get %wp.latestversion now?
}
elseif $wp.ver = %wp.latestversion {
goto nothing
}
goto versionfound
}
if (*WPPlayer*Current*Version* iswm %wp.data ) { set %wp.pfound $true }
goto nextread
:updates
sockread -f %wp.data
if ($sockbr == 0) goto versionfound
if (%wp.data == $null) %wp.data = -
else {
inc %u
set %wp.ud $+ %u %wp.data
goto updates
}
:versionfound
dialog -md wpupdate wpupdate
:nothing
sockclose wpp
unset %wp.data
return
}
dialog -l wpfolderset {
title "Scanning"
size -1 -1 284 185
option dbu
list 1, 2 13 280 157, sort size extsel hsbar
button "Select Folders", 2, 2 172 279 12, default
text "Hold Ctrl and click on available folders that you want to play from.", 3, 2 2 281 9, center
}
dialog -l wpwarn {
title "WP MP3 Player Stealth Information"
size -1 -1 183 52
option dbu
check "Don't show this warning again.", 1, 30 37 85 10
text "**NOTE** NOT all players are compatible with stealth searching/grabbing. If a song does not send you may need to turn off stealth. ", 2, 30 8 146 25
button "OK", 3, 139 36 37 12, default
icon 4, 6 6 15 15
}
menu channel,status {
WP MP3 Player
.$submenu($wpmenus($1))
}
alias -l wpmenus {
if $dialog(wpmain) && ( $window($active).cid == %wp.cid ) {
if ($1 == begin) return -
if ($1 == 1) return Play to $active ONLY:wp.openplayer $cid
if ($1 == 2) return $iif(!$istok(%wp.chan,$active,230),$style(2)) Stop playing to $active : wp.delchan
if ($1 == 3) return Play to ALL current $network channels:wp.addallchans
if ($1 == 4) return Stop playing to ALL selected channels:wp.delallchans
if ($1 == 5) return $iif($istok(%wp.chan,$active,230),$style(2)) Add $active as channel:wp.addchan
if ($1 == end) return -
}
elseif !$dialog(wpmain) {
if ($1 == begin) return -
if ($1 == 1) return $iif($dialog(wpmain),$style(3)) Open WP MP3 Player:wp.openplayer $cid
if ($1 == 2) return $iif($dialog(wpmain),$style(2)) Unload WP MP3 Player:wp.unload
if ($1 == end) return -
}
elseif ( $window($active).cid != %wp.cid ) {
if ($1 == begin) return -
if ($1 == 1) return WP MP3 Player active in $scid(%wp.cid).network : wpmenus
if ($1 == 2) return Click here to change to $network :wp.openplayer $cid
if ($1 == end) return -
}
}
menu @wpmenu {
.$submenu($wptoolbarmenus($1))
}
alias -l wptoolbarmenus {
if $1 == begin return -
if $1 == 1 return $iif($toolbar(wp).width == 16,use large icon:wp.largeicon,use small icon:wp.smallicon)
if ($1 == end) return -
}
alias -l wp.unload {
if $?!="Delete all WP Player settings?" {
unset %wp.*
.timer 1 16 echo -a 14,15This is the ghost of WP Player, I miss you already!
unload -rs $qt( $script(wphidespam.mrc) )
unload -rs $qt( $script )
}
else {
.timer 1 16 echo -a 14,15This is the ghost of WP Player, I miss you already!
unload -rs $qt( $script(wphidespam.mrc) )
unload -rs $qt( $script )
}
}
alias -l wp.addallchans {
var %i = 0
while %i < $chan(0) {
inc %i
set %wp.chan $addtok(%wp.chan,$chan(%i),230)
}
set %wp.chantotal $numtok(%wp.chan,230)
dialog -ve wpmain
did -v wpmain 16,17,18,25,33,35,52,53,65
}
alias -l wp.delallchans {
set %wp.chan Status Window
did -hu wpmain 16,17,18,25,33,35,52,53,65
set %wp.chantotal $numtok(%wp.chan,230)
.timerwpslotshow off
wpopen
}
alias -l wp.addchan {
set %wp.chan $addtok(%wp.chan,$active,230)
set %wp.chantotal $numtok(%wp.chan,230)
dialog -ve wpmain
did -v wpmain 16,17,18,25,33,35,52,53,65
}
on 1:UNLOAD:{
toolbar -d wpsep1
toolbar -d wpsep2
toolbar -d wp
}
on *:start:{
if $version > 6.19 {
wpstartup
}
}
alias -l wpstartup {
toolbar -as wpsep1
toolbar -az3 wp "Open WP MP3 Player" $qt($scriptdirwpicons.bmp) 0 34 16 16 "/wp.startopen" @wpmenu
if %wp.toolicon == large {
wp.largeicon
}
else wp.smallicon
toolbar -as wpsep2
}
alias -l wp.largeicon {
toolbar -p wp $qt($scriptdirwpicons.bmp) 0 0 32 32
set %wp.toolicon large
}
alias -l wp.smallicon {
toolbar -p wp $qt($scriptdirwpicons.bmp) 0 34 16 16
set %wp.toolicon small
}
alias -l wp.startopen {
wp.openplayer $activecid
}
on *:PART:#:{
if $nick == $me {
if $findtok(%wp.chan,$chan,1,230) {
set %wp.chan $remtok(%wp.chan,$chan,1,230)
set %wp.chantotal $numtok(%wp.chan,230)
}
else halt
}
}
on *:kick:#:{
if $knick == $me {
if $findtok(%wp.chan,$chan,1,230) {
set %wp.chan $remtok(%wp.chan,$chan,1,230)
set %wp.chantotal $numtok(%wp.chan,230)
}
else halt
}
}
alias -l wp.delchan {
set %wp.chan $remtok(%wp.chan,$active,1,230)
set %wp.chantotal $numtok(%wp.chan,230)
}
on 1:close:*:{
if ( $activecid == %wp.cid ) && ( $target isin status window ) && ( $dialog(wpmain) ) && ( $appactive ) {
set %wp.cid $scon(1)
var %i $input(The active connection for WP Player just closed $crlf WP Player has reset to the $scid(%wp.cid).network network.,ok5i,WP Player)
wp.openplayer %wp.cid
}
}
alias -l wp.openplayer {
if !%wp.versionchecked { wp.checkversion }
unset %wp.chan*
set %wp.chan $active
set %wp.chantotal $numtok(%wp.chan,230)
wpopen
set %wp.cid $1
set %wp.tab 1
if ( %wp.chan == Status Window ) {
did -hu wpmain 16,17,18,25,33,35,52,53,65
}
else did -v wpmain 16,17,18,25,33,35,52,53,65
}
on 1:dialog:wpmain:close:0: {
.disable #wpsends #wpfinds #wprandom #wprepeat #wpstealth
.timerwplayer off
.timerwpslotshow off
.timerwp-player off
unset %wp.chan* %wp.versionchecked
}
on *:getfail:*.mp3,*.wav,*.zip,*.wma:{
if $dialog(wpmain) {
if $nopath( $filename ) isin $did(wpmain,58,1) || $nopath( $filename ) isin $replace( $did(wpmain,58,1) , $chr(32) , $chr(95) ) {
wpgrab
}
}
}
on *:FILERCVD:*.mp3:{
if $dialog(wpmain) {
var %i 0
while %i < %wp.mp3dirtotal {
inc %i
if $nofile($filename) == $eval(% $+ wp.mp3dir $+ %i , 3 ) {
did -a wpmain 1 $nopath($filename)
}
}
if $nopath( $filename ) isin $did(wpmain,58,1) || $nopath( $filename ) isin $replace( $did(wpmain,58,1) , $chr(32) , $chr(95) ) {
set %wp.grabfile $did(wpmain,58,1).text
set %wp.delnum $read( %wp.grablist , w , * $+ %wp.grabfile $+ * )
write -dl $+ $readn %wp.grablist
did -d wpmain 58 1
wpgrab
}
}
}
on *:FILERCVD:*.wav:{
if $dialog(wpmain) {
var %i 0
while %i < %wp.wavdirtotal {
inc %i
if $nofile($filename) == $eval(% $+ wp.wavdir $+ %i , 3 ) {
did -a wpmain 10 $nopath($filename)
}
}
if $nopath( $filename ) isin $did(wpmain,58,1) || $nopath( $filename ) isin $replace( $did(wpmain,58,1) , $chr(32) , $chr(95) ) {
set %wp.grabfile $did(wpmain,58,1).text
set %wp.delnum $read( %wp.grablist , w , * $+ %wp.grabfile $+ * )
write -dl $+ $readn %wp.grablist
did -d wpmain 58 1
wpgrab
}
}
}
on *:FILERCVD:*.zip:{
if $dialog(wpmain) {
var %i 0
while %i < %wp.zipdirtotal {
inc %i
if $nofile($filename) == $eval(% $+ wp.zipdir $+ %i , 3 ) {
did -a wpmain 47 $nopath($filename)
}
}
if $nopath( $filename ) isin $did(wpmain,58,1) || $nopath( $filename ) isin $replace( $did(wpmain,58,1) , $chr(32) , $chr(95) ) {
set %wp.grabfile $did(wpmain,58,1).text
set %wp.delnum $read( %wp.grablist , w , * $+ %wp.grabfile $+ * )
write -dl $+ $readn %wp.grablist
did -d wpmain 58 1
wpgrab
}
}
}
on *:FILERCVD:*.wma:{
if $dialog(wpmain) {
var %i 0
while %i < %wp.wmadirtotal {
inc %i
if $nofile($filename) == $eval(% $+ wp.wmadir $+ %i , 3 ) {
did -a wpmain 49 $nopath($filename)
}
}
if $nopath( $filename ) isin $did(wpmain,58,1) || $nopath( $filename ) isin $replace( $did(wpmain,58,1) , $chr(32) , $chr(95) ) {
set %wp.grabfile $did(wpmain,58,1).text
set %wp.delnum $read( %wp.grablist , w , * $+ %wp.grabfile $+ * )
write -dl $+ $readn %wp.grablist
did -d wpmain 58 1
wpgrab
}
}
}
on *:load:{
set %wp.disclaimer1 Music list for pre-approval only. Please delete any tracks from your Hard Drive after 24 hours.
set %wp.disctot 1
set %wp.slots 10
write $qt($scriptdirwpplaymessages.txt) The time here is now $ $+ time(h:nn TT)
write $qt($scriptdirwpplaymessages.txt) $ $+ me waves hello to everyone
write $qt($scriptdirwpplaymessages.txt) Can you feel it?
write $qt($scriptdirwpplaymessages.txt) I Can't Stop Dancing!
write $qt($scriptdirwpplaymessages.txt) $ $+ me does it with tunes.
write $qt($scriptdirwpplaymessages.txt) $ $+ me loves to play hard!
write $qt($scriptdirwpplaymessages.txt) 4,1¸7.89·3~10^2¯12^11~6·135.4¸
write $qt($scriptdirwpplaymessages.txt) This one is fantAAAAstic!
write $qt($scriptdirwpplaymessages.txt) This thingy ROCKS!
write $qt($scriptdirwpplaymessages.txt) $ $+ server must love me ;)
write $qt($scriptdirwpplaymessages.txt) Can it really be $ $+ time(h:nn TT) already?
set %wp.messfile $qt($scriptdirwpNOplaymessage.txt)
set %wp.listnick $me
write $qt($scriptdirwpNOplaymessage.txt)
write -c $qt($scriptdirwphidespam.mrc) alias wphidespam $chr(123))
write $qt($scriptdirwphidespam.mrc) if !$ $+ did(wpmain,68).state $chr(123)
write $qt($scriptdirwphidespam.mrc) did -c wpmain 68
write $qt($scriptdirwphidespam.mrc) .enable #wphidespam
write $qt($scriptdirwphidespam.mrc) $chr(125)
write $qt($scriptdirwphidespam.mrc) else $chr(123)
write $qt($scriptdirwphidespam.mrc) did -u wpmain 68
write $qt($scriptdirwphidespam.mrc) .disable #wphidespam
write $qt($scriptdirwphidespam.mrc) $chr(125)
write $qt($scriptdirwphidespam.mrc) $chr(125)
write $qt($scriptdirwphidespam.mrc)
write $qt($scriptdirwphidespam.mrc) #wphidespam on
write $qt($scriptdirwphidespam.mrc)
write $qt($scriptdirwphidespam.mrc) on ^*:text:*:#: $chr(123)
write $qt($scriptdirwphidespam.mrc) if $ $+ dialog(wpmain) $chr(123)
write $qt($scriptdirwphidespam.mrc) if $ $+ did(wpmain,68).state $chr(123)
write $qt($scriptdirwphidespam.mrc) if ( ! $ $+ + $ $+ nick isin $ $+ 1- ) $chr(123)
write $qt($scriptdirwphidespam.mrc) haltdef
write $qt($scriptdirwphidespam.mrc) halt
write $qt($scriptdirwphidespam.mrc) $chr(125)
write $qt($scriptdirwphidespam.mrc) if ( @ $ $+ + $ $+ nick isin $ $+ 1- ) $chr(123)
write $qt($scriptdirwphidespam.mrc) haltdef
write $qt($scriptdirwphidespam.mrc) halt
write $qt($scriptdirwphidespam.mrc) $chr(125)
write $qt($scriptdirwphidespam.mrc) $chr(125)
write $qt($scriptdirwphidespam.mrc) $chr(125)
write $qt($scriptdirwphidespam.mrc) $chr(125)
write $qt($scriptdirwphidespam.mrc)
write $qt($scriptdirwphidespam.mrc) #wphidespam end
.load -rs $qt($scriptdirwphidespam.mrc))
echo -a 0,15[1private14] WP MP3 Player loaded successfully
echo -a 0,15[1private14] Play messages from %wp.messfile
echo -a 0,15[1private14] Right click in a window to begin
if $lock(decode) {
echo -a 0,15[1private14] 4Your decode ability is currently locked, decode needs to be unlocked for some parts of WP Player to work.
echo -a 0,15[1private14] 4Please see the help file for details on how to unlock this. The help file is
echo -a 0,15[1private14] 4also available at15 http://billy.the-kid.org/scripts/wphelp/_1uh0ui4m1.htm#StealthSettings
}
if $isfile($qt($findfile($nofile($mircexe),WP MP3 Player Setup.exe,1))) { .timer 1 5 .remove $qt($findfile($nofile($mircexe),WP MP3 Player Setup.exe,1)) }
if $isfile($qt($findfile($nofile($mircexe),WPPlayer.zip,1))) { .remove $qt($findfile($nofile($mircexe),WPPlayer.zip,1)) }
}
alias -l wp-player {
set %wp.pos $int( $calc( ( $insong.pos / $insong.length ) * 100 ))
did -c wpmain 66 %wp.pos
}
alias -l wpopen {
if !$dialog(wpmain) { dialog -mdv wpmain wpmain }
else dialog -v wpmain
}
alias -l wp.refresh {
did -r wpmain 1,10,47,49
var %num 0
while %num < %wp.mp3dirtotal {
inc %num
set %wp1 $findfile($eval(% $+ wp.mp3dir $+ %num,4),*.mp3,0,0,did -a wpmain 1 $nopath($1-) )
}
var %num 0
while %num < %wp.wavdirtotal {
inc %num
set %wp1 $findfile($eval(% $+ wp.wavdir $+ %num,4),*.wav,0,0,did -a wpmain 10 $nopath($1-) )
}
var %num 0
while %num < %wp.zipdirtotal {
inc %num
set %wp1 $findfile($eval(% $+ wp.zipdir $+ %num,4),*.zip,0,0,did -a wpmain 47 $nopath($1-) )
}
var %num 0
while %num < %wp.wmadirtotal {
inc %num
set %wp1 $findfile($eval(% $+ wp.wmadir $+ %num,4),*.wma,0,0,did -a wpmain 49 $nopath($1-) )
}
unset %wp1
if $insong {
if $didwm(wpmain , %wp.tab , $wpremchar($nopath($insong.fname) ) ) {
did -c wpmain %wp.tab $v1
}
}
did -z wpmain 1,10,47,49
}
on 1:dialog:wpwarn:sclick:3:{
if $did(1).state == 1 {
set %wp.hidewarn $true
}
else set %wp.hidewarn $false
dialog -x wpwarn
wpstealth2
}
on 1:dialog:wpwarn:close:*:{
if $did(1).state == 1 {
set %wp.hidewarn $true
}
else set %wp.hidewarn $false
wpstealth2
}
alias -l wpstealth {
if $did(wpmain,24).state == 0 {
if %wp.hidewarn != $true {
var %i $dialog(wpwarn,wpwarn,-4)
}
else wpstealth2
}
else {
did -u wpmain 24
.disable #wpstealth
}
}
alias -l wpstealth2 {
did -c wpmain 24
.enable #wpstealth
}
#wpstealth off
on *:INPUT:#:{
if ( @find == $1 ) || ( @locator == $1 ) {
.ctcp # search $encode($2-)
echo # 0,15[1private14] Stealth searching # for $wpremchar($2-)
haltdef
}
if ( $right($1,-1) ison # ) && ( $left($1,1) == $chr(33) ) {
.ctcp $right($1,-1) get $2-
echo # 0,15[1private14] Stealth request for $2- Sent to $right($1,-1)
haltdef
}
}
#wpstealth end
on *:INPUT:?:{
if ( $right($1,-1) == $active ) {
if ( $left($1,1) == $chr(33) ) {
haltdef
.ctcp $right($1,-1) get $2-
echo -a 0,15[1private14] Stealth request for $2- Sent to $right($1,-1)
halt
}
elseif ( $left($1,1) == $chr(64) ) {
haltdef
.ctcp $right($1,-1) list
echo -a 0,15[1private14] Stealth request for list Sent to $right($1,-1)
halt
}
}
}
on 1:dialog:wpmain:init:0: {
if $dialog(wplist) {
dialog -x wplist
.disable #wp.playlist
unset %wplist.*
.timerwplist off
}
did -c wpmain 68
wp.refresh
wpshowgrabs
var %i 0
while %i < %wp.disctot {
inc %i
did -i wpmain 45 %i $eval( % $+ wp.disclaimer $+ %i , 3 )
}
.timerwp-player -io 0 1 wp-player
if %wp.msnon { wpmsn }
if %wp.onair { wponairnow }
}
on 1:dialog:wpmain:menu:*:{
if $did == 38 { wpfolderset }
elseif $did == 19 { wpontop }
elseif $did == 24 { wpstealth }
elseif $did == 101 { wpabout }
elseif $did == 68 { wphidespam }
elseif $did == 70 { wpmsn }
elseif $did == 73 { wponairnow }
}
on 1:dialog:wpmain:scroll:66: {
wpposition
}
alias -l wpposition {
did -z wpmain 66 0 100
did -c wpmain 66 $did(66).sel
if $insong {
set %wp.pc $int( $calc( ( $sound($insong.fname).length / 100 ) * $did(66).sel ) )
splay seek %wp.pc
}
}
on 1:dialog:wpmain:sclick:*:{
if $did == 50 { run http://billy.the-kid.org/scripts/wphelp/index.htm }
elseif $did == 5 { wp.refresh }
elseif $did == 14 { wpsearch }
elseif $did == 67 { wpdofind }
elseif $did == 8 { did -t wpmain 2 | set %wp.tab 1 }
elseif $did == 9 { did -t wpmain 2 | set %wp.tab 10 }
elseif $did == 12 { did -t wpmain 2 | set %wp.tab 47 }
elseif $did == 48 { did -t wpmain 2 | set %wp.tab 49 }
elseif $did == 46 { did -t wpmain 14 | set %wp.tab 15 | did -f wpmain 13 }
elseif $did == 2 { .timerwplayer off | wp.playsong }
elseif $did == 54 { wpshowgrabs }
elseif $did == 4 { if $did(wpmain,70).state == 1 { msnsong - WP MP3 Player } | splay stop }
elseif $did == 6 { wprandsel }
elseif $did == 11 { wprepeat }
elseif $did == 35 { wpsilent }
elseif $did == 33 { wpslots }
elseif $did == 40 { wpmakelist }
elseif $did == 17 { wpsends }
elseif $did == 18 { wpfinds }
elseif $did == 65 { wpmessages }
elseif $did == 61 { set %wp.grabs on | scid %wp.cid | wpgrab }
elseif $did == 69 { wpremovedoublesfromgrablist }
elseif $did == 64 { wpgrabchan }
elseif $did == 57 { wpgrablist }
elseif $did == 59 { wplosegrab }
elseif $did == 60 { set %wp.grabs off }
elseif $did == 20 { wpadvertise }
elseif $did == 21 { wpremoveline }
elseif $did == 22 { wpclearchan }
elseif $did == 23 { wp.grabsong }
elseif $did == 25 { set %wp.messfile wpNOplaymessage.txt | write -c wpNOplaymessage.txt }
}
alias -l wpremovedoublesfromgrablist {
window -hnl @wpdouble.r
window -hnl @wpdouble.s
if !%wp.grablist {
set %wp.doublerfile $$sfile($nofile($mircexe).txt,Please Select file to check for doubles)
}
else set %wp.doublerfile %wp.grablist
filter -fw %wp.doublerfile @wpdouble.r *
set %wp.doublernum $filtered
var %i 0
while %i < $line(@wpdouble.r,0) {
inc %i
if $line(@wpdouble.r , %i ) {
aline -n @wpdouble.s $line(@wpdouble.r , %i )
}
else inc %i
}
filter -cwf @wpdouble.s %wp.doublerfile *
set %wp.doublernum2 $filtered
noop $input(Taken %wp.doublernum lines from %wp.doublerfile $crlf $+ After filtering there are %wp.doublernum2 lines remaining. $crlf $+ Total $calc( %wp.doublernum - %wp.doublernum2 ) doubles removed.,o,WP MP3 Player)
close -@wpdouble.*
dialog -ve wpmain
}
alias -l wpremoveline {
while ( $did(wpmain,7).sel ) {
did -d wpmain 7 $v1
did -z wpmain 7
}
}
alias -l wpclearchan {
did -r wpmain 7
did -z wpmain 7
}
alias -l wpadvertise {
scid %wp.cid
if %wp.list {
unset %wp.listthings
if %wp.listmp3s && %wp.totmp3 {
set %wp.listthings $addtok(%wp.listthings ,4 %wp.totmp3 MP3s,32)
}
if %wp.listwavs && %wp.totwav {
set %wp.listthings $addtok(%wp.listthings ,8 %wp.totwav WAVs,32)
}
if %wp.listwmas && %wp.totwma {
set %wp.listthings $addtok(%wp.listthings ,9 %wp.totwma WMAs,32)
}
if %wp.listzips && %wp.totzip {
set %wp.listthings $addtok(%wp.listthings ,11 %wp.totzip ZIPs,32)
}
var %i 0
while %i < %wp.chantotal {
inc %i
if ( $me ison $gettok(%wp.chan,%i,230) ) {
msg $gettok(%wp.chan,%i,230) 13,1To get my list of %wp.listthings type0 @ $+ $me 13in channel. Last updated7 %wp.musiclistmakerdate
}
}
}
else echo -a 0,15[1private14] You have not made a list yet!
}
on *:dialog:wpmain:edit:13:{
did -t wpmain 14
set %wp.tab 15
}
on *:dialog:wpmain:dclick:*:{
if ( $did == 7 ) { wp.grabsong }
elseif ( $did == 1 ) { wp.playsong }
elseif ( $did == 10 ) { wp.playsong }
elseif ( $did == 47 ) { wp.playsong }
elseif ( $did == 15 ) { wp.playsong }
elseif ( $did == 49 ) { wp.playsong }
}
alias -l wpgrab {
wpshowgrabs
:wpgrab
if !%wp.grabchan {
set %wp.warn $input( No Channel Selected , owd , Channel Error )
unset %wp.warn
dialog -v wpmain
halt
}
if !%wp.grablist {
set %wp.warn $input( No List Selected , owd , List Error )
unset %wp.warn
dialog -v wpmain
halt
}
if $me !ison %wp.grabchan {
set %wp.warn $input( Please Enter %wp.grabchan To Begin, owd , Channel Error )
unset %wp.warn
dialog -v wpmain
halt
}
if $did(wpmain,58,1) {
if %wp.grabs == on {
if $did(wpmain,24).state == 0 {
msg %wp.grabchan $gettok($did(wpmain,58,1),1,58)
}
else {
if $right($gettok($did(wpmain,58,1),1,32),-1) ison %wp.grabchan && $v1 != $me {
.ctcp $v1 GET $gettok($gettok($did(wpmain,58,1),2-,32),1,58)
}
else {
set %wp.oldnick $gettok($did(wpmain,58,1),1,32)
:nope
set %wp.newnick ! $+ $$input($v1 is not in %wp.grabchan $+ . They may have changed nick since making their list. Try another nick or cancel.,we,WP Player v $+ $wp.ver Grabber Alert)
if $right(%wp.newnick,-1) !ison %wp.grabchan || $v1 == $me { goto nope }
var %i 0
window -hnl @wp
filter -fw %wp.grablist @wp %wp.oldnick $+ $chr(32) *
while %i < $line(@wp,0) {
inc %i
write -s $+ %wp.oldnick %wp.grablist $replace($line(@wp,$fline( @wp , $gettok($did(wpmain,58,1),1,32) $+ *, %i )), %wp.oldnick $+ $chr(32) , %wp.newnick $+ $chr(32) )
}
window -c @wp
wpshowgrabs
goto wpgrab
}
}
}
}
}
alias -l wpontop {
if $did(wpmain,19).state == 0 {
did -c wpmain 19
dialog -o wpmain
}
else {
did -u wpmain 19
dialog -n wpmain
}
}
alias -l wpmsn {
if $did(wpmain,70).state == 0 {
did -c wpmain 70
set %wp.msnon $true
}
else {
did -u wpmain 70
unset %wp.msnon
}
}
alias -l wpgrabchan {
set %wp.grabchan #$$input(Please Select Channel To Grab On, ceqd, Input Channel Here with or without #)
did -a wpmain 63 %wp.grabchan
dialog -v wpmain
}
alias -l wpgrablist {
set %wp.grablist " $+ $$sfile($getdir,Please select the list you wish to grab from(.zip or .txt files only)) $+ "
did -a wpmain 56 %wp.grablist
if $right($nopath(%wp.grablist),4) == .zip {
if $isfile($+(",$left($noqt(%wp.grablist),-4),.txt,")) { .remove $+(",$left($noqt(%wp.grablist),-4),.txt,") }
run -n $scriptdir7z.exe e %wp.grablist -o $+ $qt($nofile(%wp.grablist))
set %wp.grablist2 $+(",$left($noqt(%wp.grablist),-4),.txt,")
set %wp.grablist %wp.grablist2
did -a wpmain 56 %wp.grablist
}
wpshowgrabs
dialog -v wpmain
}
alias -l wpshowgrabs {
var %i 0
:again
if $isfile(%wp.grablist) {
filter -foc %wp.grablist wpmain 58 !*
goto nomore
}
if !$filtered {
inc %i
if %i < 1000 {
goto again }
else goto nomore
:nomore
}
}
alias -l wplosegrab {
set %wp.totlines $did(wpmain,58,0).sel
var %i 0
while %i < %wp.totlines {
inc %i
set %wp.grabline $did(wpmain,58,1).sel
set %wp.grabfile $did(wpmain,58,%wp.grabline)
set %wp.delnum $read( %wp.grablist , w , * $+ %wp.grabfile $+ * )
write -dl $+ $readn %wp.grablist
did -d wpmain 58 %wp.grabline
}
}
ctcp *:ACCEPTED: {
echo -a 0,15[1private14] $nick has accepted your request for $6- and will send when ready
echo -a 0,15[1private14] You now have $4 files of $nick $+ 's $5 available slots.
haltdef
}
ctcp *:Status*: {
if ( $did(wpmain,17).state == 1 ) {
set %wp.serving ON
}
else set %wp.serving OFF
if ( $did(wpmain,18).state == 1 ) {
set %wp.finding ON
}
else set %wp.finding OFF
if ( $istok( %wp.chan , $2 , 230 ) ) {
set %wp.mode N - Normal
}
else set %wp.mode Not A Serving Channel
$iif($did(wpmain,33).state == 1, set %wp.ctcps ON,set %wp.ctcps OFF)
.ctcpreply $nick WP-Status 5,0<=-12 WP MP3 Player $wp.ver 5-=-4 Channel: $2 5-=-4 Server: %wp.serving 5-=-4 Mode: %wp.mode 5-=-4 CTCP's: %wp.ctcps 5-=-4 Priority: Normal 5-=-4 Search: %wp.finding 5-=-4 FileLimits: ON 5-=-4 SizeLimits: OFF 5-=-4 ListLimits: OFF 5-=-4 SpeedLimits: OFF 5-=-4 List Date: $asctime( %wp.listtime2 , yyyy-mm-dd ) 5-=-12 http://billy.the-kid.org 5-=>
}
#wpfinds off
ctcp *:SEARCH: {
set %wp.sendnick $nick
set %wp.fmp3 $decode($2-)
wpfindit
haltdef
}
ctcp *:LIST: {
if ( $me = $target ) {
wpsendlist
haltdef
}
}
ctcp *:QUE: {
wpsendque
haltdef
}
ctcp *:remove: {
wp-remove
haltdef
}
alias -l wpsendlist {
dcc send -n $nick %wp.list
inc %wp.listcounter
.notice $nick 13,1You are the8 $ord( %wp.listcounter ) 13person to grab my list.13,13 8,8 15,1 WP MP3 Player
}
alias -l wpsendque {
.notice $nick 13,1I do not operate a que system. I currently have8 %wp.slots 13slots.8 $send(0) 13in use leaving8 $calc( %wp.slots - $send(0) ) 13available.
.notice $nick 13,1You are grabbing8 $send( $nick , 0 ) 13files at the moment.13,13 8,8 15,1 WP MP3 Player
}
alias -l wp-remove {
close -s $nick
}
on ^*:text:*@*:*:{
if ( @ $+ $me == $1 ) {
wpsendlist
}
elseif ( @ $+ $me $+ -remove == $1 ) {
wp-remove
}
elseif ( @ $+ $me $+ -que == $1 ) {
wpsendque
}
if ( @find isin $1 ) || ( @locator isin $1 ) {
set %wp.sendnick $nick
set %wp.fmp3 $2-
wpfindit
}
}
alias -l wpfindit {
var %num 0
while %num < %wp.mp3dirtotal {
inc %num
set %wpmp3 $findfile( $eval(% $+ wp.mp3dir $+ %num,3), $wpremchar(%wp.fmp3),0,0, if ( $istok(.zip .mp3 .wav .wma, $right( $1- , 4 ) , 32 ) ) write -i wpresult.txt ! $+ $me $nopath($1-) )
unset %wpmp3
}
var %num 0
while %num < %wp.wavdirtotal {
inc %num
set %wpmp3 $findfile( $eval(% $+ wp.wavdir $+ %num,3), $wpremchar(%wp.fmp3),0,0, if ( $istok(.zip .mp3 .wav .wma, $right( $1- , 4 ) , 32 ) ) write -i wpresult.txt ! $+ $me $nopath($1-) )
unset %wpmp3
}
var %num 0
while %num < %wp.zipdirtotal {
inc %num
set %wpmp3 $findfile( $eval(% $+ wp.zipdir $+ %num,3), $wpremchar(%wp.fmp3),0,0, if ( $istok(.zip .mp3 .wav .wma, $right( $1- , 4 ) , 32 ) ) write -i wpresult.txt ! $+ $me $nopath($1-) )
unset %wpmp3
}
var %num 0
while %num < %wp.wmadirtotal {
inc %num
set %wpmp3 $findfile( $eval(% $+ wp.wmadir $+ %num,3), $wpremchar(%wp.fmp3),0,0, if ( $istok(.zip .mp3 .wav .wma, $right( $1- , 4 ) , 32 ) ) write -i wpresult.txt ! $+ $me $nopath($1-) )
unset %wpmp3
}
set %wp.findtot $lines(wpresult.txt)
if %wp.findtot != 0 {
.msg %wp.sendnick 13,1Total8 %wp.findtot 13matches for8 $wpremchar(%wp.fmp3) 15[WP MP3 Player]
if %wp.findtot <= 15 {
write -i wpresult.txt 13,1That's all I have for8 $wpremchar(%wp.fmp3)
}
else {
var %i 0
while %i < 10 {
inc %i
write -i wpresult2.txt $read(wpresult.txt,%i)
}
write -c wpresult.txt
filter -ff wpresult2.txt wpresult.txt
.remove wpresult2.txt