mIRC Home    About    Download    Register    News    Help

Print Thread
#62793 04/12/03 02:33 AM
Joined: Oct 2003
Posts: 14
P
Pikka bird
OP Offline
Pikka bird
P
Joined: Oct 2003
Posts: 14
I need to make a script that relays the bot's status window msgs to me through dcc chat. Any help?

#62794 04/12/03 06:26 AM
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
I can't see any good way to monitor the actual window, but you can just add events to relay the messages to the dcc chat like:

raw *:*:{
if ($chat(0)) {
var %x = $ifmatch
while (%x) {
.msg = $+ $chat(%x) $numeric $1-
dec %x
}
}
}
that would relay all raws to all dcc chat windows.
you would just have to add other events.

#62795 04/12/03 07:03 PM
Joined: Oct 2003
Posts: 14
P
Pikka bird
OP Offline
Pikka bird
P
Joined: Oct 2003
Posts: 14
This would relay all of the status window? If its not too much could you explain each line of that?

#62796 05/12/03 03:35 AM
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
It would just relay all raw numerics from the server to any open dcc chat windows.

I used that as an example because most of these numerics are echoed to mirc status window.

raw *:*:{
;this is the event for any raw numerics comming from the server
if ($chat(0)) { ; are there any dcc chat windows open?
var %x = $ifmatch
; puts the number of chat windows to %x
while (%x) { ; do all commands while %x does not = 0
msg = $+ $chat(%x) $numeric $1-
; will msg the dcc chat window the raw numeric number and the text that comes with it too, the = means dcc chat
dec %x ; same as var %x = %x - 1

you might want to have something the same on snotice and on wallops, I don't know what other things echo to your status window, but you will need to add a similar script for all of them.


Link Copied to Clipboard