mIRC Homepage

on text stuff

Posted By: clutz1572

on text stuff - 12/10/08 01:55 PM

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 }
}



Posted By: RusselB

Re: on text stuff - 12/10/08 04:13 PM

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
  }
}

Posted By: clutz1572

Re: on text stuff - 12/10/08 11:13 PM

thanks RusselB.. laugh
© 2020 mIRC Discussion Forums