mIRC Home    About    Download    Register    News    Help

Print Thread
#204235 12/09/08 07:33 PM
Joined: Mar 2008
Posts: 33
S
starr Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Mar 2008
Posts: 33
Could someone explain the /play command? I understand you create a text file, but where do you save the txt. file so that play works? And can the file be sent to a chatters private message or does it show in channel?

Last edited by starr; 12/09/08 07:35 PM.
starr #204238 12/09/08 10:15 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
You place it where you want, then make shure to give the right path to the file:

/play C:\mirc\test.txt

or where you store it

you maybe also want to see

/help /play


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
starr #204239 12/09/08 10:50 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
You can save a text file in your mirc's directory, then type /play yourfile.txt and it will play the content of it in the main channel you're located. (I'm not certain if you can play a file through the private message.)

Alternatively, you can use your mirc popups (pressing ALT + P together) and place this little snippet in:
Code:
Play File { .play $$sfile(Please Choose a File to play,Ok) 1000 } 


Then you can right click on your nicklist to trgger it. It will play a text file content located per your selection line by line with a 1000m delay. The channel popups will work as well if you choose to place the snippet there.

Tomao #204318 15/09/08 07:47 PM
Joined: Mar 2008
Posts: 33
S
starr Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Mar 2008
Posts: 33
sorry for the repetition, but I am lost. I have a remote script that is a list with 24 items in it called bartender. I can make it work so that when the chatter types in !bartender, the list is sent to their pm. However, the only way I can do this is to put a timer on each line of the list, so basically they are getting 24 consequetive pms and if more than one chatter uses the command at a time, it floods out the bot. I thought play might be a better way to do this, but I can't seem to make play work. Does anyone have any suggestions? It needs to be something the chatter initiates and they need to receive the info via private message.

starr #204324 15/09/08 10:24 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
1) Move the items from the script to a text file, where each item is on a separate line.
2) Use a code similar to this:
Code:
on *:text:!bartender:#:{
  .play $nick bartender.txt
}

This presumes that the items have been placed in a text file called bartender.txt and that the file is located in the mIRC installation directory.


Link Copied to Clipboard