mIRC Home    About    Download    Register    News    Help

Print Thread
#205087 12/10/08 01:55 PM
Joined: Aug 2004
Posts: 423
C
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Aug 2004
Posts: 423
hey guys,

i'm trying to make a trigger addy and i'm hoping if some would be able to tell me if this was a proper way to do this...

Code:
On *:text:*:#Chan: {
  if ($1 == ! $+ fliters) { 
    var %i = 1 
    while (%i <= $hget(blah,0).item) {
      %Item = $hget(blah,%i).item
      %Value = $hget(blah,%Item)
      msg $nick %Value
      inc %i 
    }
  }
  if ($1 == ! $+ active) { say - Script is %switch $nick }
}




clutz1572 #205091 12/10/08 04:13 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
While that looks like it would work, if you had a lot of items in the hash table, you could find yourself being disconnected from the server for flooding.

Here's an alternative.
Code:
on *:text:*:#Chan:{
  if $1 == !fliters {
    .hsave -n blah blah.tmp
    .play -q10 $nick blah.tmp
  }
  elseif $1 == !active {
    say - Script is %switch $nick
  }
}


RusselB #205105 12/10/08 11:13 PM
Joined: Aug 2004
Posts: 423
C
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Aug 2004
Posts: 423
thanks RusselB.. laugh


Link Copied to Clipboard