mIRC Home    About    Download    Register    News    Help

Print Thread
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?!

Joined: Jun 2003
Posts: 130
O
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.
Joined: Aug 2003
Posts: 136
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.
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?!

Joined: Aug 2003
Posts: 136
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.
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!!

Joined: Dec 2002
Posts: 29
N
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
}

Joined: Mar 2003
Posts: 1,271
L
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
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!!


Link Copied to Clipboard