mIRC Homepage

$read and write help

Posted By: Snowderblazer

$read and write help - 12/05/12 09:37 AM

i have the remote script

on @*:TEXT:!orders*:#Legija.udor: {
write D:\LegijaStrike\orders.txt orders: $2- } { msg $chan $nick : Orders Updated }

on *:TEXT:!do:#Legija.udor: {
msg $chan $read(D:\LegijaStrike\orders.txt)

the only issue i have is $read

nicks type !do and nothing appears
!orders work 100%
Posted By: Horstl

Re: $read and write help - 12/05/12 10:29 AM

If you intend to output the complete text file, have a look at the /play command (/help /play).
Posted By: Snowderblazer

Re: $read and write help - 12/05/12 11:15 AM

on *:TEXT:!do:#Legija.udor: {
msg $chan play D:\LegijaStrike\orders.txt

i tried the above with play
does not work, however when i do

/play D:\LegijaStrike\orders.txt

it outputs the file
Posted By: Horstl

Re: $read and write help - 12/05/12 01:26 PM

on *:text:!do:#Legija.udor: {
  play -m1 $chan D:\LegijaStrike\orders.txt 1500
-m1 prevents building a playback queue; 1500 is the line delay in milliseconds
© 2019 mIRC Discussion Forums