Stopping file playback on request

Paste Your code(s) here, and state your problem.

Stopping file playback on request

Postby trigger » Sun Sep 08, 2013 5:24 pm

I have a bot script that plays back files line by line in a delay, when a user requests to view a certain file. However, many times they decide its not the file they want, however, the bot will continue to play back that file until end of file is reached. How do i work it so that the file will halt when the user requests it to stop play back? Here is the code that I have:

Code: Select all
on *:TEXT:!book1:?:{ 

  .play $nick scripts\book1.txt 7000
  close -m $nick

This plays back to them in a pm window.

Also, I notice that the bot will only respond to one user at a time, so I end up having to create multiple bots to keep everyone happy. IS there a way to get one bot to respond to more that one request at a time?

Thank you;
Posts: 2
Joined: Sun Sep 08, 2013 4:24 pm
Authnick: trigger

Re: Stopping file playback on request

Postby zNigel- » Tue Jun 17, 2014 12:15 pm

how about you set a variable for their nick or host? and halt it by unsetting the variable
Posts: 5
Joined: Sun Feb 10, 2013 12:08 am
Authnick: zNigel-

Return to Mirc Scripting Help

Who is online

Users browsing this forum: No registered users and 3 guests