mIRC Home    About    Download    Register    News    Help

Print Thread
About hash #168497 09/01/07 09:56 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
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 }


learn learn learn
Re: About hash [Re: learn3r] #168504 09/01/07 02:17 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
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.


Invision Support
#Invision on irc.irchighway.net
Re: About hash [Re: Riamus2] #168514 09/01/07 04:16 PM
Joined: Jan 2007
Posts: 259
K
Kardafol Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
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.


Those who can, cannot. Those who cannot, can.
Re: About hash [Re: Kardafol] #168524 09/01/07 07:27 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
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.


Invision Support
#Invision on irc.irchighway.net