mIRC Home    About    Download    Register    News    Help

Print Thread
Page 3 of 3 1 2 3
Re: on text [Re: D00M] #231841 06/05/11 04:20 PM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
You might want to check if any item is in the play queue:
Code:
TEXT EVENT {
  if ($play(0)) { notice $nick I have $v1 items in my playback queue }

  YOUR CODE, e.g. /play to $nick
}


In case you want to check for a specific file, you'll have to loop all items in the play queue, for example:
Code:
TEXT EVENT {
  var %n = 1, %queued = 0
  while ($play(%n)) {
    if ($nopath($play(%n).fname) == help.db) { inc %queued }
    inc %n
  }
  if (%queued) { notice $nick I have $v1 requests for "help.db" in my playback queue }

  YOUR CODE, e.g. /play to $nick
}



Re: on text [Re: Horstl] #231870 08/05/11 05:26 PM
Joined: Oct 2005
Posts: 71
D
D00M Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: Oct 2005
Posts: 71
EDIT:

Thanks Horstl it worked great wink

Last edited by D00M; 08/05/11 06:45 PM.
Re: on text [Re: D00M] #231872 08/05/11 05:46 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
"TEXT EVENT" refers to your actual text event.

For example:

Code:
on *:TEXT:!faq*:#MY_CHAN:{


It's just saying that you use it within your text event(s).


Invision Support
#Invision on irc.irchighway.net
Re: on text [Re: Riamus2] #231873 08/05/11 06:16 PM
Joined: Oct 2005
Posts: 71
D
D00M Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: Oct 2005
Posts: 71
Originally Posted By: Riamus2
"TEXT EVENT" refers to your actual text event.

For example:

Code:
on *:TEXT:!faq*:#MY_CHAN:{


It's just saying that you use it within your text event(s).


lol oh ok my bad ,I think I get it now.I did the above suggestion and it worked great ,thanks again guys as always wink

Last edited by D00M; 08/05/11 06:43 PM.
Page 3 of 3 1 2 3