$submenu

By RoninWarrior on Dec 28, 2006

Press Alt+R and paste all of the code into a new remotes file and then save and exit.

Popups for the kick/bans and ignores will be in the nicklist

Just want to thank Yoinx for all of the help on $submenu(I have never had this much trouble with irc code before) also see mIRC help file /help $submenu

This code is nothing more then a working example of $submenu and thread on the help i recieved from Yoinx below.

I used the 2nd ban mask on the level of ban mask which can be changed to what ever you want just change the 2 in this part of the code $snick($active,1) 2 the address shows as this
( !@adsl-69-208-142-81.dsl.ipltin.ameritech.net ) if anyone needs a copy of the other ban mask and how thay ban just ask and ill post it for you.$active is used for the active channel that the kick,ban,ignore is being placed.$snick is used as the nick identifer for the $nick $$1 the kick,bans,ignore is being placed on .Reasons for this useing $submenu you cant use |,#,$chan,$$1,$nick in your kick / ban events just as an exsample.

http://www.hawkee.com/phpBB2/viewtopic.php?t=13381

menu nicklist { 
  k/b 
  .$submenu($k.b($1)) 
  ignores
  .$submenu($ignore.it($1))
}

alias k.b { 
  if ($1 == begin) { return - } 
  if ($1 == 1) { return kick:kick $active $snick($active,1) } 
  if ($1 == 2) { return kick(rand):kick $active $snick($active,1) $rand.kick.msg }  
  if ($1 == 3) { return kick.ban:ban -k $active $snick($active,1) 2 } 
  if ($1 == 4) { return kick.ban(3m):ban -ku180 $active $snick($active,1) 2 }
  if ($1 == 5) { return kick.ban(5m):ban -ku300 $active $snick($active,1) 2 }
  if ($1 == 6) { return kick.ban(10m):ban -ku600 $active $snick($active,1) 2 }
  if ($1 == 7) { return kick.ban(15m):ban -ku900 $active $snick($active,1) 2 }
  if ($1 == 8) { return kick.ban(30m):ban -ku1800 $active $snick($active,1) 2 }
  if ($1 == 9) { return kick.ban(60m):ban -ku3600 $active $snick($active,1) 2 }
  if ($1 == 10) { return kick.ban(24h):ban -ku86400 $active $snick($active,1) 2 }
  if ($1 == end) { return - } 
} 

alias ignore.it {
  if ($1 == begin) { return - }
  if ($1 == 1) { return private:ignore -p $snick($active,1) 2 } 
  if ($1 == 2) { return channel:ignore -c $snick($active,1) 2 }  
  if ($1 == 3) { return notice:ignore -n $snick($active,1) 2 } 
  if ($1 == 4) { return ctcp:ignore -t $snick($active,1) 2 }
  if ($1 == 5) { return invites:ignore -i $snick($active,1) 2 }
  if ($1 == 6) { return control:ignore -k $snick($active,1) 2 }
  if ($1 == 7) { return all codes:ignore $snick($active,1) 2 }
  if ($1 == 8) { return remove ignore:ignore -r $snick($active,1) 2 }
  if ($1 == 9) { return list ignores:ignore -l }
  if ($1 == end) { return - }
}

alias rand.kick.msg {
  set %kick.msg $rand(0,10)
  if (%kick.msg == 0) { return owNeD }
  if (%kick.msg == 1) { return get out }
  if (%kick.msg == 2) { return kicked by the best }
  if (%kick.msg == 3) { return my cat pawned you }
  if (%kick.msg == 4) { return im a true master }
  if (%kick.msg == 5) { return your outta here }
  if (%kick.msg == 6) { return bong! }
  if (%kick.msg == 7) { return spank me }
  if (%kick.msg == 8) { return you mom is calling }
  if (%kick.msg == 9) { return what was that? }
  if (%kick.msg == 1o) { return thank yoinx for helpping me out,with submenu for this one } 
}

Comments

Sign in to comment.
Marshtomp   -  Dec 29, 2006

Nothing important but in this you can always do alias -l for the things that only return

 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.