mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
#125604 20/07/05 05:16 PM
Joined: Jun 2005
Posts: 47
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jun 2005
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 ?

#125605 20/07/05 05:36 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
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)
}

#125606 20/07/05 07:51 PM
Joined: Jun 2005
Posts: 47
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jun 2005
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 ?

#125607 20/07/05 08:00 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
I am guessing that you have users log in and out for the game, when they log out .remove $+($nick,.txt)
cool

#125608 20/07/05 08:33 PM
Joined: Jun 2005
Posts: 47
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jun 2005
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

#125609 20/07/05 08:41 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
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
}

#125610 20/07/05 10:08 PM
Joined: Jun 2005
Posts: 47
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jun 2005
Posts: 47
good idea ! i can even set the delay ! woot thx

Page 2 of 2 1 2

Link Copied to Clipboard