autojoin

By blackvenomm666 on Sep 25, 2009

i updated it made it better let me know what you think ..i know this is still a useless script but i was bored and a friend asked for it was made for use on only one site at a time. Put in remotes and add roomnames after the # and when you connect to a site it will automatically bring you to that room.

On *:Start:{ .server server ip and port here }
On *:Connect:{ if ($network == server name here ) { 
    /timer 1 1   .join # 
    /timer 1 5   .join #
    /timer 1 10  .join # 
    /timer 1 15  .join # 
    /timer 1 20  .join #
  }
}

Comments

Sign in to comment.
blackvenomm666   -  Sep 28, 2009

ty patx its just an update on my first scripting i was surprised i got it to work so fast.. i just started scripting this past week i have some other scripts i have posted as well if you wish to take a look at them

 Respond  
PATX   -  Sep 28, 2009

simple + most ppl know how to do this. however great for those who dont! good job!

 Respond  
Jethro   -  Sep 27, 2009

This is sort of enlightening when a posted snippet becomes a personal vendetta. lol

 Respond  
sunslayer   -  Sep 27, 2009

umm idk if any1 noticed but ur missing an o in the title, unless this is actually an autjoin snippet.

 Respond  
FordLawnmower   -  Sep 27, 2009

Your point is well taken Ghost-writer. Elseif will save you an evaluation if the first if is true.
It's always better to use elseif when you are positive that you don't want the second if to be evaluated when the first is true.
However, seeing that you have completely lost your mind over this, perhaps you should seek professional help!

 Respond  
blackvenomm666   -  Sep 27, 2009

and this is only an update on the first script i did the first one was worse im just learning this shit so stfu ghost

 Respond  
blackvenomm666   -  Sep 27, 2009

ghost writer the way i did it works just fine so you can take your faggot comments and shove them up you ass.

 Respond  
Ghost-writer   -  Sep 27, 2009

has no one ever heard of a else if statement? for god sakes this is total dumbness anyways :|,
on *:connect: {
if ( $network == swiftirc ) {
join chan,chan,chan,chan
echo im a faggot for using this and not the default mirc one
}
elseif ( $network == w/enetwork ) {
join chan,chan,chan,chan,chan
echo yes still a faggot.
}
}
Your welcome.

 Respond  
blackvenomm666   -  Sep 26, 2009

oh yea you meant here duh dont mind me im half asleep

 Respond  
FordLawnmower   -  Sep 26, 2009

I still see this

On *:Start:{ .server server ip and port here }
On *:Connect:{ if ($server == server name here ) { 
    /timer 1 1   .join # 
    /timer 1 5   .join #
    /timer 1 10  .join # 
    /timer 1 15  .join # 
    /timer 1 20  .join #
  }
  On *:Connect:{ if ($server == server name here ) { 
      /timer 1 1   .join #
      /timer 1 5   .join #
    }
  }
}

You still have a second On Connect nested in the first one.

 Respond  
blackvenomm666   -  Sep 26, 2009

yea already got that all fixed thanks

 Respond  
FordLawnmower   -  Sep 26, 2009

No problem blackvenomm666. You should edit the script at the top of this page though.

 Respond  
blackvenomm666   -  Sep 26, 2009

yea i relised the second on connect wouldnt work just forgot to take it out before posting it was up two days straight doing nothing but trying to learn coding haha.. thanks for the help though much appreaciated

 Respond  
FordLawnmower   -  Sep 26, 2009

@blackvenomm666 The second On :Connect: Cannot be working because you didn't close the first one. My guess is - You are getting a ON unknown command error and then the script continues joining the second set of channels.
You have 2 opening brackets in this event.

On *:Connect:{ if ($server == server name here ) { 

You need 2 closing brackets at the end of THIS event if you want mIRC to track the second event.
You have the correct number of brackets but they are in the wrong places.
In addition to this, you cannot have 2 On *:Connect: events in the same remote.
Also, using $server is a bad idea. It's better to use $network.
The code should read like this

On *:Start:{ .server server ip and port here }
On *:Connect:{
  if ($network == 1st network name here) { 
    .timer 1 1   .join # 
    .timer 1 5   .join #
    .timer 1 10  .join # 
    .timer 1 15  .join # 
    .timer 1 20  .join #
  }
  if ($network == 2nd network name here) { 
    .timer 1 1   .join #
    .timer 1 5   .join #
  }
}
 Respond  
Jethro   -  Sep 26, 2009

lol how do you accidentally delete a commentmmm...he was twiddling his fingers on the keyboard?

 Respond  
sunslayer   -  Sep 26, 2009

no jethro deleting yoru comment was an accident. lol how do you accidently delete a comment

 Respond  
blackvenomm666   -  Sep 26, 2009

i am also making my own irc script.. so far i have all the background pics the colors and the stuff i want on the status menu when its loaded but other than that its a work in progress.

 Respond  
blackvenomm666   -  Sep 26, 2009

whenever i closed it like that the other part at the end for the diff server wouldnt work maybe you can explain why? the way i have it it worked fine for me i know you prolly wont but test it out check it for yourself.. im just glad im learning finally after a year and that the stuff seems to be working even if its not the best way to do it just yet i will get there i hope. imma keep trying to improve everything i do

 Respond  
Grant-   -  Sep 26, 2009

Oh and I forgot to mention this, there's a bracket mismatch in your script

On *:Start:{ server server ip and port here }
On *:Connect:{ 
  if ($server == SERVER NAME) { 
    .timer 1 1 join # 
    .timer 1 5 join #
    .timer 1 10 join # 
    .timer 1 15 join # 
    .timer 1 20 join #
  }
}
 Respond  
blackvenomm666   -  Sep 25, 2009

no jethro deleting yoru comment was an accident.. im open to any suggestions that was only my second script and thats a fixed version of the first one haha im just now starting to learn so any sugestions are welcome. and grant i know that is impractical for most and like you i too join a lot of rooms but my friend hosts a very small site with only like 8ish rooms so it works fine for him he is the only reason i even attempted this coding i hadnt thought of it till he said he needed an auto joiner

 Respond  
Grant-   -  Sep 25, 2009

Normally that just means he dislikes being "out-scripted."

 Respond  
Jethro   -  Sep 25, 2009

I posted an example using while loop and $gettok identifier, along with a 2 second delay between each channel join, before the author updated his script. He deleted my comment. I think he didn't like people's suggestions and insisted upon his own belief.

 Respond  
Grant-   -  Sep 25, 2009

Your way of joining is impractical and pointless. I sometimes join 20+ channels, that would mean i'd have to wait 2+ minutes to join all of them at a five second interval. Mine joins them instantly, and no, there is no 'flood', it's just joining. No need for timers, use what i use..

 Respond  
Jethro   -  Sep 25, 2009

You should silence the timers instead of the join command by adding a dot to them. Unless you can't be bothered with the timer echos. Your method will require more adds of timers and that can sorta flood quit a bit...with the 'timer1 or 2 or 3 activated.." With a few channels, that won't be an issue...but with say...10 or more...you get the idea.

 Respond  
blackvenomm666   -  Sep 25, 2009

the one i made works fine i tested it out works on any site adn i had to add the timers for a certain site i use the owner asked me to make one made it and he kept flooding so i added timers

 Respond  
Grant-   -  Sep 25, 2009

mIRC has both of these functions..without scripts. There is no need for this. and if you really wanted it

on *:CONNECT:{
  if ($network == NETWORK HERE) {
    join #chan1,#chan2,#chan3,#chan4,#etc
  } 
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.