mIRC Homepage
Posted By: learn3r experts on hash - 17/01/07 02:55 PM
I hope someone can help me on this i want an Auto channel joiner

1.)it uses hash
2.)has a menu that can add/del a channel
3.)has an interval of 1 sec before it joins to a channel(sample:20 channels)


Thanks
Posted By: learn3r Re: experts on hash - 17/01/07 08:03 PM
HELLO ANYBODY?
Posted By: qwerty Re: experts on hash - 17/01/07 09:05 PM
Posts like this only annoy people, they don't make them reply faster, so don't do it again please.
Posted By: truguce Re: experts on hash - 17/01/07 11:51 PM
plus what might help is if you try and make the script first or ask someone for direction instead of comming here and and asking people to make the sccript for you. For some direction use /help hash tables
Try to figure it out then come here for support!
Posted By: RusselB Re: experts on hash - 18/01/07 01:51 AM
In addition to the previous posts, quoting from New to the forums ??
Quote:
e) Realize YOU have to do work to solve the problem you are having. People here can offer ideas/suggestions/input and maybe even solve things entirely, but it's up to YOU to do the work.


I just wrote this up, quick and simple, and tested it with no problems
Code:
on *:connect:{
  if !$hget($network) { .hmake $network }
  if $exists($+($network,.hsh)) { .hload $network $+($network,.hsh) }
  var %a = 1, %b = $hget($network,0).item
  while %a <= %b {
    .timer 1 %a .join $hget($network,%a).item $iif($hget($network,%a).data,$v2)
    inc %a
  }
}
menu channel,nicklist {
  Auto-Join Channels
  .Add : .hadd -m $network $$input(Channel Name,e,,$chan) $?*="Key if required"
  .Remove : .hdel $network $$input(Channel Name,e,,$chan)
}

Posted By: learn3r Re: experts on hash - 18/01/07 04:59 AM
Sorry my bad..
Thanks Riamus
Posted By: Riamus2 Re: experts on hash - 18/01/07 05:10 AM
Originally Posted By: learn3r
Sorry my bad..
Thanks Riamus


Why did you thank me?
Posted By: DJ_Sol Re: experts on hash - 18/01/07 06:59 AM
On my network, you can be in a total of 5 rooms per account at the same time. I created an idle list. Each account has a total of 5 rooms in the list. Each room is seperated by a comma, so I can just say:

/join $hget(<table>,iroom. $+ <account>)

$1 = account, $2 = $chan
Rename the table.
Remove the halts for 5 rooms. Course this doesnt have a timer, but thats easy enough.

Code:
del.iroom { if ($FINDTOK($hget(SoulFly,iroom. $+ $1),$2,1,44)) hadd SoulFly iroom. $+ $1 $remtok($hget(SoulFly,iroom. $+ $1),$2,44) }

add.iroom {
  if ($2 isin $hget(SoulFly,iroom. $+ $1)) { error -e Idle List: $1 $crlf $crlf $hcd($2) - Duplicate Entry | halt }
  elseif ($numtok($hget(SoulFly,iroom. $+ $1),44) == 5) { error -e 5 Room Idle Limit. $crlf $crlf Please delete one room first. | halt }
  elseif (!$2) { hadd SoulFly iroom. $+ $1 $addtok($hget(SoulFly,iroom. $+ $1),$$?="Please Enter Room  Name",44) }
  else { hadd SoulFly iroom. $+ $1 $addtok($hget(SoulFly,iroom. $+ $1),$2,44) }
}
Posted By: learn3r Re: experts on hash - 18/01/07 11:33 AM
ohh...

Thanks RusselB
© mIRC Discussion Forums