mIRC Home    About    Download    Register    News    Help

Topic Options
#237521 - 12/05/12 10:37 AM $read and write help
Snowderblazer Offline
Pikka bird

Registered: 02/05/12
Posts: 10
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%

Top
#237522 - 12/05/12 11:29 AM Re: $read and write help [Re: Snowderblazer]
Horstl Offline
Hoopy frood

Registered: 03/11/06
Posts: 1559
Loc: Germany
If you intend to output the complete text file, have a look at the /play command (/help /play).

Top
#237523 - 12/05/12 12:15 PM Re: $read and write help [Re: Horstl]
Snowderblazer Offline
Pikka bird

Registered: 02/05/12
Posts: 10
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

Top
#237524 - 12/05/12 02:26 PM Re: $read and write help [Re: Snowderblazer]
Horstl Offline
Hoopy frood

Registered: 03/11/06
Posts: 1559
Loc: Germany
Try
Code:
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

Top