ChatScape
ChatScape's Official Chat Forum.
HomePortalGalleryCalendarFAQSearchRegisterLog in
Post new topic   Reply to topic
 

Auto-Greet Script

View previous topic View next topic Go down 
AuthorMessage
Shaimus




Joined : 12 Jul 2008
Posts : 10

PostSubject: Auto-Greet Script   Sat Jul 12, 2008 6:14 pm

Just a fairly simple Auto-Greet script. I was helping a friend with it, and it worked fine, but then I wanted to make it so if you get kicked it wouldn't greet you again.

Code:

on *:kick:#GamesRoom: {
  set %kicked $knick
}
on *:join:#GamesRoom:{
  if ($nick == %kicked) {
    { halt }
    msg $chan Hi, $nick and welcome to #GamesRoom
  }
}


Note: This isn't the original I made, this is one I made after I failed to make the original do what I wanted. This one doesn't seem to work at all.
Back to top Go down
Nemesis
Admin



Age : 25
Joined : 02 Mar 2008
Posts : 69

PostSubject: Re: Auto-Greet Script   Sat Jul 12, 2008 6:43 pm

Ok i see now instead of using /write .txt data i think it would be easyer to use a variable.

;;Ok now wen some one gets kcik from that channel a UNIQUE variable is set to there nickname it will look like ;;%_NOG.Nickname 1 and each different nickname thats kick from the channel gets its own variable. %_NOG.Nickname2
;;%_NOG.Nickname 3 and so on.
Code:

on *:kick:#GamesRoom: {
  inc $+(%,_NOG,.,$knick)
}
on *:join:#GamesRoom: {
  if ($($+(%,_NOG,.,$nick),2) == 1) { halt }
  msg $chan Hi, $nick and welcome to #GamesRoom
}

;;Now on the on JOIN even the code will set the variable temp as %_NOG.Nickname and then check to see i it has data if it does have data and in this cause you increasing the var it will halt the on join msg from bein sent.So if %_NOG.Nickname3 has been kicked they wont get a message but if %_NOG.Nickname4 hasnt been kicked they will get a message.
Back to top Go down
Shaimus




Joined : 12 Jul 2008
Posts : 10

PostSubject: Re: Auto-Greet Script   Sat Jul 12, 2008 7:36 pm

-Twitch- Over my head.. Thanks again for the input. The concept of it sounds useful, as a different variable for everyone.. I can see where that would work.
Back to top Go down

Auto-Greet Script

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You can reply to topics in this forum
ChatScape :: Everything mIRC! :: mIRC Scripting Help Section.-
Post new topic   Reply to topic