Just a simple on join to show beginners

By Cheiron on Sep 01, 2008

<^> Please Note and take heed. This is for a demo purpose ONLY to show those with little scripting knowledge. further snippets like this, when made are posted in the Forum under the section " mIRC Tutorials". They do not get posted in the snippets area. <^>

The URL for the mIRC Tutorials page is http://www.hawkee.com/phpBB2/viewforum.php?f=22

I am going to go back to basics for the sole purpose of some of the new (non scripters) that have been popping up on the server. The snippet code is also commented to show what the various lines are doing.

This is a extremely basic on join snippet that checks a user to see if they have 1 or the other of the servers default assigned nicks. in this case "guest" and "anon". these nicks are assigned if you do not choose a nick. they usually have numbers after them so people can see they are different users. for example Guest3890 , Anon5687 , Guest4567

if the user has one or the other of these assigned nicks it will message them simply in channel to change their nick and tells them how to do it.

i have not assigned a channel for the script but can be added to make it channel specific by adding a name after the "hash" symbol. eg #drama

the other item here is the inclusion of the OP symbol @

that tell this snippet to only work if the bot or script this has gone on has that level of rank in the channel.

this snippet is made to go into mIRC's remotes folder. found by pressing ALT + R and clicking on remotes. once remotes is open, if the page is blank, then copy and paste. if it is already occupied with a snippet, then click the File button and select new, before copy and pasting the below code in its full into the box and clicking ok.

the only other point is that this was made and tested on the UnrealIRCd server

<^> Remember.. this is ONLY a demo and should not be used as an idea to post scripts in this format in the snippets area <^>

; this line below is the start command. in this case an on join. it will only work if you/bot have op status. 
; it is set to trigger in any room as we have not told it a particular channel after the hash sign

on @*:JOIN:#: {
; this next line is our checking to see if the nick is a server assigned guest nick. 
; if it is it will message the user in channel to change nick and tell them how to do it
  if (*guest* iswm $nick) {
    msg $chan $nick  please alter your nick by typing /nick <your nick here> (eg) /nick thomas
  }
  ; this line is a second checker. we are checking to see if the other server assigned nick anon is there.
  ; if it is then we repeat the message to the nick on how to change the nick
  elseif (*anon* iswm $nick) {
    msg $chan $nick  please alter your nick by typing /nick <your nick here> (eg) /nick Freddy
  }
}
; at the end of the script we have made sure that we have closed all brackets and there we have it.

Comments

Sign in to comment.
Zmodem   -  Sep 21, 2010

a careful warchild: You did NOT just reply to irchainscriptz's post from over 2 years ago, did you? LoL! Trolling, much? claps

:-D :-D :-D :-D

 Respond  
a careful warchild   -  Sep 18, 2010

Whats all the big deal about where it goes as cheiron said he explained why he posted it here and thats all there is ...... Post away Cheiron and its a good post and a helpful one to new people joining and learning IRC .... Like me !!

Err? Pretty sure after napas first post you agreed with napa that it should be posted in the Forums?

Ass licking much? claps

 Respond  
Cheiron   -  Sep 08, 2008

if it is ok in your books, then leave it Hawkee.

 Respond  
Hawkee   -  Sep 08, 2008

I don't see anything wrong with posting an instructional snippet here. The purpose of snippets is for people to learn how to write code. If you'd still like to remove it Cheiron let me know.

 Respond  
Zmodem   -  Sep 04, 2008

I don't see a big deal at all. In fact, I enjoy it and welcome things like this. Cheiron's also got a badäss Tai Chi computer case!

Image

Outstanding!

 Respond  
irchainscriptz   -  Sep 04, 2008

Whats all the big deal about where it goes as cheiron said he explained why he posted it here and thats all there is ...... Post away Cheiron and its a good post and a helpful one to new people joining and learning IRC .... Like me !!

 Respond  
Zmodem   -  Sep 04, 2008

lol can't be worse than this:

on {join:#:} { printf("Welcome!\n");}
 Respond  
EL   -  Sep 04, 2008

Pfft horse shiit its fine where it is.Still pwns some of the n00bs recent scripts nothing to be ashamed of least your makin a effort even postin it here instead of there you really think some of these ppl use the forum? think not they google mirc scipts crap they need an want to try an rip or butcher or in rare cases learn from these will be seen before the forum section sorry to say.`-.-´

 Respond  
Cheiron   -  Sep 04, 2008

wasnt pointing at you specifically napa. look at some of the comments i have been given here. that is why i said that last. and i did at least clean the intro up to state "why" i have put this type of snippet in here and where they can be found in future and also where they should be posted.

 Respond  
EL   -  Sep 04, 2008

Rofl@makin money offa mIRC gtfo only one whos is makin anything is Khaled;p.mIRC is as far as im concerned is a useless coding language as far as money is concerned but hands down the funnest language.I support mirc fully.`-.-´

 Respond  
Zmodem   -  Sep 04, 2008

LoL Tutorials.

1.) Go to the Scripts Editor (ALT+R, or TOOLS->Script Editor)
2.) Script something
3.) Submit to http://www.hawkee.com/
4.) Make money
5.) Retire

:-D

 Respond  
napa182   -  Sep 04, 2008

i didnt rip you for posting it here. i just asked why you didnt post it in the mIRC Tutorials. ;x

 Respond  
Zmodem   -  Sep 04, 2008

LoL insane! But, it's okay, nonetheless. Just throwin' my 2 cents in ;)

 Respond  
Cheiron   -  Sep 04, 2008

that is for a bit more advanced level scripters or those with at least more of an understanding of some of the recent n00bs we have had on. a good fix though nonetheless.

if and when i do post another one. it will on that sort of line but i will have to give it serious thought as to where i post it seeing as i got ripped for this this one

 Respond  
Zmodem   -  Sep 04, 2008

How's about:

ON @*:JOIN:#: {
  if (($nick != $me) && (*guest* iswm $nick) || (*anon* iswm $nick)) {
    msg $chan $nick  Please alter your nick by typing /nick <your nick here> (eg) /nick thomas. An anonymous or guest nickname is not appropriate.
  }
}
 Respond  
EL   -  Sep 04, 2008

Ahh i c well its a still a good post man im sure some one will get use outta it.`-.-´

 Respond  
Cheiron   -  Sep 04, 2008

many thanks for the advice EL. i will keep this one then. i wont be posting for a while though

 Respond  
EL   -  Sep 04, 2008

Have to pm hawkee wit the snippet link also i dont see what you should delete its IS in fact a workin code snippet and isnt much different then one of these newbie's on EVENT simple post that ppl slaughter them for DIFFERENCE is: you post is SHOWING what is happenin with the event and properly i see no reason to delete it think about it really some one searches for a on join event snippet for like a ''learn by example'' type thing they come arcoss this and its hel of alot more helpful then jsut a simple snippet.Well dont cherion you choice to delete i wouldnt tho.`-.-´

 Respond  
Cheiron   -  Sep 04, 2008

tell me how to delete it then and i will.

 Respond  
DangerOfFate   -  Sep 04, 2008

I would post this in forums.... Hawkee is being overloaded with senseless snippets such as this and the forums are deserted because people post these 'demos' here.

 Respond  
Cheiron   -  Sep 02, 2008

i have edited the description now to clarify the purpose of this snippet and where these instructive guides can be found on the site. that should clarify things a bit better

 Respond  
napa182   -  Sep 02, 2008

well still all this will do is make them think it's ok to post stuff like they have been in here rather then the forum.

 Respond  
Eugenio   -  Sep 02, 2008

ugh /help on join
-.-

 Respond  
Cheiron   -  Sep 02, 2008

this was done in light of some of what we have had posted recently napa. bringing something with this level of explaination into this snippets area was a vague attempt at trying to show these "non scripters that we have so loved" how it is done rather then bunging it in forum for it not to be seen

 Respond  
irchainscriptz   -  Sep 01, 2008

was going to suggest the same thing napa182

 Respond  
napa182   -  Sep 01, 2008

then why not post this in the forum under mIRC Tutorials instead of the snippet section =/

 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.