mIRC Homepage
Posted By: biggem001 help on ON command - 16/08/04 02:31 AM
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
Posted By: Seifer Re: help on ON command - 16/08/04 02:38 AM
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.
Posted By: biggem001 Re: help on ON command - 16/08/04 02:47 AM
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
Posted By: Cyber_Axe Re: help on ON command - 16/08/04 03:04 AM
that would be on *:notice:DCC Send*:*: { } i think
Posted By: whatsthedillio Re: help on ON command - 16/08/04 09:33 AM
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
© mIRC Discussion Forums