mIRC Home    About    Download    Register    News    Help

Print Thread
How to wait in alias 1 second #43912 24/08/03 01:42 PM
Joined: Jul 2003
Posts: 32
M
mIRCusr Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jul 2003
Posts: 32
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?!

Re: How to wait in alias 1 second #43913 24/08/03 01:50 PM
Joined: Jun 2003
Posts: 130
O
obsessed Offline
Vogon poet
Offline
Vogon poet
O
Joined: Jun 2003
Posts: 130
Put all your text in a txt file and use /play. /help /play


If only women came with popup menus and online help.
Re: How to wait in alias 1 second #43914 24/08/03 01:52 PM
Joined: Aug 2003
Posts: 136
MrPeepers Offline
Vogon poet
Offline
Vogon poet
Joined: Aug 2003
Posts: 136
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


In Virginia, chickens cannot lay eggs before 8:00 a.m., and must be done before 4:00 p.m.
Re: How to wait in alias 1 second #43915 24/08/03 02:06 PM
Joined: Jul 2003
Posts: 32
M
mIRCusr Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jul 2003
Posts: 32
Play doesnt work, because i do a querry. Not the complete textfile should be send ... only few lines.

Any idea?!

Re: How to wait in alias 1 second #43916 24/08/03 02:21 PM
Joined: Aug 2003
Posts: 136
MrPeepers Offline
Vogon poet
Offline
Vogon poet
Joined: Aug 2003
Posts: 136
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


In Virginia, chickens cannot lay eggs before 8:00 a.m., and must be done before 4:00 p.m.
Re: How to wait in alias 1 second #43917 24/08/03 02:46 PM
Joined: Jul 2003
Posts: 32
M
mIRCusr Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jul 2003
Posts: 32
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!!

Re: How to wait in alias 1 second #43918 24/08/03 04:39 PM
Joined: Dec 2002
Posts: 29
N
Nem3sis Offline
Ameglian cow
Offline
Ameglian cow
N
Joined: Dec 2002
Posts: 29
Code:
alias  /blargh {
  msg #r0ar hello
  .timer 1 1 hello again 1 second later
  .timer 1 2 hello again 2 seconds later
}

Re: How to wait in alias 1 second #43919 24/08/03 05:24 PM
Joined: Mar 2003
Posts: 1,271
L
LocutusofBorg Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
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.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Re: How to wait in alias 1 second #43920 24/08/03 07:11 PM
Joined: Jul 2003
Posts: 32
M
mIRCusr Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jul 2003
Posts: 32
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!!