mIRC Home    About    Download    Register    News    Help

Print Thread
help on ON command #94383 16/08/04 02:31 AM
Joined: Jun 2004
Posts: 87
B
biggem001 Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Jun 2004
Posts: 87
ok this is wat i will need but i cant find nething
like---

if in ( ) i dont no

on *:(send):?:*: {
if (sends) == 0) { (sendfile) }
else { /write C:\Mirc\queues.txt $name (file)
(when (sends) == 0 again /(get 1st line from txt) (send file to person)

its little complicated i no but its all sort of simple commands i just dont no them lol

Re: help on ON command #94384 16/08/04 02:38 AM
Joined: Nov 2003
Posts: 228
S
Seifer Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Nov 2003
Posts: 228
I'm not entirely sure what you're looking for.
Perhaps you mean on FILESENT?
Code:
on *:FILESENT:*: {
  if ($send(0) == 0) { do something }
  else { do something else }
}

This event is triggered when a DCC send is successful.

Re: help on ON command #94385 16/08/04 02:47 AM
Joined: Jun 2004
Posts: 87
B
biggem001 Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Jun 2004
Posts: 87
wat i need is when i file is about to be sent, if ther r no other send it continues and sends but if ther is a send already than put their name on the 1st line and the file on the second line of a txt, and when the 1st send is done the one on the txt will start and if ther is another send and name, the 3,6,9,12 sentence move to the 1,3,6,9 and the 4,7,10,13 will move 2 the 2,5,8,11th line

Re: help on ON command #94386 16/08/04 03:04 AM
Joined: Dec 2002
Posts: 60
C
Cyber_Axe Offline
Babel fish
Offline
Babel fish
C
Joined: Dec 2002
Posts: 60
that would be on *:notice:DCC Send*:*: { } i think

Re: help on ON command #94387 16/08/04 09:33 AM
Joined: Jun 2004
Posts: 291
W
whatsthedillio Offline
Fjord artisan
Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
maybe this helps a little
when you do the dcc send maybe you can use /set %SendSlot
example:

on *:text:!Send*:*:{
if (%sendslot) {
write queues.txt $nick $file | .notice $nick Added You To The Queue List }
elseif (!%sendslot) {
set %SendSlot $nick
dcc send $nick $file
}
halt
}


then the file has been sent unset %SendSlot
and then get the info from line 1 in queues.txt
to to send the file
"$nick" "$file"
then delete line 1 from the txt file
and the next line in queues will become line 1

hope this helped
i didnt really understand what you meant by this though:
the 3,6,9,12 sentence move to the 1,3,6,9 and the 4,7,10,13 will move 2 the 2,5,8,11th line