mIRC Home    About    Download    Register    News    Help

Print Thread
#237521 12/05/12 09:37 AM
Joined: May 2012
Posts: 10
S
Pikka bird
OP Offline
Pikka bird
S
Joined: May 2012
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%

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
If you intend to output the complete text file, have a look at the /play command (/help /play).

Joined: May 2012
Posts: 10
S
Pikka bird
OP Offline
Pikka bird
S
Joined: May 2012
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

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
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


Link Copied to Clipboard