Ok not all of my op's and hop's use mIRC so they didnt have a /omsg or /msg @%&#chan...Plus its fun to have a bot that they can make talk like a /bs say command. so this is designed for a mIRC bot in your #. This will also close all pm's after it looks for the commands, So if you like to keep the PM window open or get them from people wanting to chat then take out the last line of code "Closemsg $nick". I tried to find one like this on here, but nobody seemed to have one. So here it is.
you would use it like this:
/msg BotName !say #ChanName Hello DaDealer
/msg BotName !msgall #ChanName All ops and hops need to come to the meeting!
As Always i'm not the best at scripting, but it works, and I'm sure there was a better way to do it so no need to tell me.
Oh and incase your new to this stuff...Paste it in the Remote Section. (ALT + R in mIRC)
;****************************************;
;******* Made By: DaDealer ******;
;******* Some Credit would be nice ******;
;******* If you use it. ******;
;****************************************;
on *:open:?:*: {
set %chann $2
set %doneb $address($nick,2)
if ($3 == !op) || ($3 == !hop) || ($2 == vop) || ($2 == aop) || ($2 == hop) || ($3 == !addrandom) {
cs hop %chann del $nick
cs aop %chann del $nick
cs vop %chann del $nick
notice $me ALERT!!!! $nick Issued $1- at $time
notice $me ALERT!!!! $nick Issued $1- at $time
notice $me ALERT!!!! $nick Issued $1- at $time
NOTICE & $+ @ $+ % $+ %chann ALERT!!!! $nick Issued $1- at $time and has lost all Promotions and has been added to the PBan list!!! Leave it that way!!!
inc %banned. [ $+ [ %doneb ] ] [ $+ [ %chann ] ]
ban -k %chann $address($nick,2)
kick %chann $2 $3-
closemsg $nick
unset %chann
unset doneb
halt
}
else {
if ($nick isop %chann || $nick ishop %chann) {
if ($1 == !say) {
msg $2 $3-
}
if ($1 == !act) {
describe $2 $3-
}
if ($1 == !msgop) {
msg @ $+ $2 $3-
}
if ($1 == !msghop) {
msg % $+ $2 $3-
}
if ($1 == !msgadmin) {
msg & $+ $2 $3-
}
if ($1 == !msgall) {
msg % $+ @ $+ $2 $3-
}
}
}
else {
notice $nick You dont have the power to use these commands!
}
closemsg $nick
unset %chann
unset doneb
}