mIRC Home    About    Download    Register    News    Help

Page 2 of 2 < 1 2
Topic Options
#125604 - 20/07/05 06:16 PM Re: Save to a text file ?
Matrix301 Offline
Ameglian cow

Registered: 30/06/05
Posts: 47
wow awesome eh, everything works extremly fine now smile and i noticied the bot dont flood all the user lsit at the same time, he send one every sec (to avoid flood) thats excellent, because i have lots of other command for my bot, and people keep sending command and my bot keep disconnecting (Excess Flood) becuz my script send all commands at the same time (not every sec) this is very annoying, how could i make it send a line every sec like with the list, do i need to use timer lol ?

Top
#125605 - 20/07/05 06:36 PM Re: Save to a text file ?
MikeChat Offline
Hoopy frood

Registered: 12/12/02
Posts: 1245
Loc: California, doooood
you have the bot msg somewhere (channel is my guess) the players action and/or result.
change the way it posts the text from just msg to writing/playing a text

mIRC will queue the texts to be played thereby delaying the replys to the order in which they were received, one reply at a time.

you might have now something like:
on *:text:-action *:#channel: {
do stuff
msg #channel stuff
}

instead do it:

on *:text:-action *:#channel: {
; create or clear a text for that user
write -c $+($nick,.txt)
do stuff
write $+($nick,.txt) stuff
;play the text to channel
.play #channel $+($nick,.txt)
}

Top
#125606 - 20/07/05 08:51 PM Re: Save to a text file ?
Matrix301 Offline
Ameglian cow

Registered: 30/06/05
Posts: 47
or so basicly, it write a file called the person $nick.. and write stuff to say in the text file and play it, but lol wont it make alot of files ? i think it would be better if it delete the file at the end no ?

Top
#125607 - 20/07/05 09:00 PM Re: Save to a text file ?
MikeChat Offline
Hoopy frood

Registered: 12/12/02
Posts: 1245
Loc: California, doooood
I am guessing that you have users log in and out for the game, when they log out .remove $+($nick,.txt)
cool

Top
#125608 - 20/07/05 09:33 PM Re: Save to a text file ?
Matrix301 Offline
Ameglian cow

Registered: 30/06/05
Posts: 47
oh well no i dont have log, the game is outside irc, and hmm i mean, i have alot of other commands for other use than my tanklin game, or for example when an admin type -help, he receive all commands and it flood like 20 lines lol, i wish the bot send 1 ines every secs to avoid flood or maybe not 1 secs but hmm enuf to avoid excess flood, becuz its annoying lol, but for the script you made tis perfect

Top
#125609 - 20/07/05 09:41 PM Re: Save to a text file ?
MikeChat Offline
Hoopy frood

Registered: 12/12/02
Posts: 1245
Loc: California, doooood
since you did not post your code, I will guess you have it message the -help to whoever one line at a time rather than having the help as a text file that would be played to that nick


played in a message window
on *:TEXT:-help:*:{
.play $nick -help.txt 1500
}

Top
#125610 - 20/07/05 11:08 PM Re: Save to a text file ?
Matrix301 Offline
Ameglian cow

Registered: 30/06/05
Posts: 47
good idea ! i can even set the delay ! woot thx

Top
Page 2 of 2 < 1 2