mIRC Homepage
Posted By: learn3r About hash - 09/01/07 09:56 AM
Is it possible to save a name of the title on start


on start
hamake home 100
ang save a name of a channel on it...

then on connect the code will auto join a specific saved channel

and on part
if $chan == savechanonhash { rejoin }
Posted By: Riamus2 Re: About hash - 09/01/07 02:17 PM
Code:
on *:start: {
  hmake home 100
  hadd home #channel1 1
  hadd home #channel2 1
  etc.
}

on *:connect: {
  var %cnt = 1
  var %total = $hget(home,0).item
  while (%cnt <= %total) {
    join $hget(home,%cnt).data
    inc %cnt
  }
}

on *:part:#: {
  if ($hget(home,$chan)) { rejoin }
}


You basically had your entire script done.

Anyhow, you might want to use /hsave and /hload as well if you don't want to /hadd the same channels every time you start mIRC.

And, if you have enough channels listed, it may not be possible to join them all that quickly and you may have to use a timer in the join code.
Posted By: Kardafol Re: About hash - 09/01/07 04:16 PM
You should be able to join atleast 10 channels on every server (most limit this to 20+, the server should say "CHANLIMIT=20" or somthing simmular once you connect), and you can use /join #channel,#channel1,#channel2,#channel3 instead of doing /join #channel /join #channel1.
Posted By: Riamus2 Re: About hash - 09/01/07 07:27 PM
I wasn't referring to the channel limit. I was referring to the speed at which you can join channels (a flood limit) that servers often have.
© mIRC Discussion Forums