mIRC Homepage
Posted By: mIRCusr How to wait in alias 1 second - 24/08/03 01:42 PM
Hi

I want to send msg to users per script. It's a tool i write myself. Often there are more than 20 lines to send to user.

That's my probblem. After a few lines the server disconnect because of flood protect.

My idea is to wait after every line.

send line
wait 1 second or a half
send line
wait
send ...

I don't know what to do. Can someone help me?!
Posted By: obsessed Re: How to wait in alias 1 second - 24/08/03 01:50 PM
Put all your text in a txt file and use /play. /help /play
Posted By: MrPeepers Re: How to wait in alias 1 second - 24/08/03 01:52 PM
If you saved the lines into a .txt you could play the files with a delay between each line I use this for my personal bot to send commands:
Lets say you wanted it sent via a remote
ON 10:text:!commands:/play $nick commands.txt 2000
the 2000 is mili seconds which equals 2 seconds between each line
Posted By: mIRCusr Re: How to wait in alias 1 second - 24/08/03 02:06 PM
Play doesnt work, because i do a querry. Not the complete textfile should be send ... only few lines.

Any idea?!
Posted By: MrPeepers Re: How to wait in alias 1 second - 24/08/03 02:21 PM
My first post was wrong
on level:text:!commands:?:/play $nick advusercmdlist.txt 100
now that will play the file from the command being issued in a query to the nick at 1 second a line, you just have to change the level of the user do you want everyone to be able to set this off? then * or a specific one like 10
Posted By: mIRCusr Re: How to wait in alias 1 second - 24/08/03 02:46 PM
I'll try this in following way now:

+ Querry the textfile
+ Write querry result into a new textfile
+ Play new textfile with delay
+ Delete new textfile

The users who are using the bot would only see lines containing 'exampletext'. Play doesn't work with this. I need a querry result of the Textfile ... and this result should be send to the user.

Thx for all answers!!
Posted By: Nem3sis Re: How to wait in alias 1 second - 24/08/03 04:39 PM
Code:
alias  /blargh {
  msg #r0ar hello
  .timer 1 1 hello again 1 second later
  .timer 1 2 hello again 2 seconds later
}
Posted By: LocutusofBorg Re: How to wait in alias 1 second - 24/08/03 05:24 PM
Although that might work, earlier suggestions of using play are superior. For one, /play allows you to queue requests so you will only be playing to one user at a time. using timers could end you up sending msgs to 10 ppl at a time and still get flooded off. It also more flexible when it comes to the number of lines needing to be sent.
Posted By: mIRCusr Re: How to wait in alias 1 second - 24/08/03 07:11 PM
YEAH thats it!!

Thank you very much!!

Timers now are activated in loop with msg. Timer name und timer set by %var (inc %var 2).

I don't need play.

Thats great!!
© mIRC Discussion Forums