Basic Leave and Assign Snippet

By J4ckster on Dec 31, 2009

This is a very basic assign to channel and leave channel.

!Assign #channel - Goto the channel
!Leave - Leave the channel

------------------------------
FEEL FREE TO REMOVE THIS
Leave Channel And Assign to Channel Script
Made by: J4ckster
------------------------------
on *:TEXT:!leave:#: {
  part $chan
} 

on *:TEXT:!assign*:#: {
  join $2
} 

Comments

Sign in to comment.
Jethro   -  Jan 01, 2010
on $*:TEXT:/!(join|part)\s(.*)/Si:#: {
  if ($nick isop $chan) { $regml(1) $+($chr(35),$regml(2)) }
}

You don't even have to enter the #ChanName. Just !join ChanName and !part ChanName without #

Take blitzz's word for it so that only ops can command the client running the code to join or part.

Oh blitzz, no ! negate symbol in isop operator 'cause that will mean if a user is NOT an op...lol

 Respond  
blitzz   -  Dec 31, 2009

You may need to add if($nick !isop $chan) so only op chan can use the command.

 Respond  
sunslayer   -  Dec 31, 2009

Are you being rude? Because you can't. Your saying you don't like the script.

I'm new to both of these, scripting with mIRC and Hawkee. rofl

lol i so should learn regex http://www.regular-expressions.info is a good tutorial

if you change the syntax for the first event

on $*:text:/!(join|part) \x23.*/Si:#:$1-2
 Respond  
p0d   -  Dec 31, 2009

lol i so should learn regex

 Respond  
DarkCoder   -  Dec 31, 2009

Very good :P. Could be,

on $*:TEXT:/^[.!@](Assign|Part)/Si:#: $iif($regml(1) == part,part $chan,join $2)
 Respond  
p0d   -  Dec 31, 2009

and sunslayer wasnt being rude i belive he was just makeing a suggestion to your code. Were all here to learn :) .. and It most certainly can be combined in many fashions

on *:TEXT:*:#: { 
  if (!assign == $1) { join $2 }
  if (!leave == $1) { part # }
}
 Respond  
J4ckster   -  Dec 31, 2009

This was ment for a bot assigning channel. If someone wants that bot in there channel thwy say !assign #myxhannel in the #BotAssigningChan and if they don't want to bot in there channel, in there channel, #MyChannel, they say !leave - Easy as pie.

 Respond  
p0d   -  Dec 31, 2009

*agrees with that needs have access levels or some sort of protection to keep from being abused

 Respond  
bugboy1028   -  Dec 31, 2009

I will agree with sunslayer. Also, if people find out that you are using script to join and part channel. They will probably send you to bad channel or send you to channel which cause you to part all of the channels

 Respond  
J4ckster   -  Dec 31, 2009

Are you being rude? Because you can't. Your saying you don't like the script.

I'm new to both of these, scripting with mIRC and Hawkee.

 Respond  
sunslayer   -  Dec 31, 2009

I'd combine the two events

 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.