Simple script that will alert staff in a channel.
Things you need to edit:
- Remove the <> #Channel - Change to your chan name. *Enter Alert Text here* - Change to what you would like a user to type for it to alert the staff ------------------------------------------------------------------------------------------------------------------------------------------------------ Updates: Fix Bug Replaced #Channel with $chan ------------------------------------------------------------------------------------------------------------------------------------------------------ ```mirc |-------------------------------------| @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | Simple channel staff alert script. | @ Things to change: @ | By: Callumlord | @ - Remove the <> @ |-------------------------------------| @ #Channel - Change to your chan name. @ @ *Enter Alert Text here* - Change to @ @ what you would like as a trigger to @ @ alert the staff. @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ on *:text:*Enter Alert Text here*:#Channel: { $chan .notice 4!! Alert !!0 Your attention is needed in $chan called by $nick .notice 4!! Alert !!0 Your attention is needed in $chan called by $nick .notice 4!! Alert !!0 Your attention is needed in $chan called by $nick .notice 4!! Alert !!0 Your attention is needed in $chan called by $nick .notice 4!! Alert !!0 Your attention is needed in $chan called by $nick .notice 4!! Alert !!0 Your attention is needed in $chan called by $nick .notice 4!! Alert !!0 Your attention is needed in $chan called by $nick } ```if you read what i said on my post Callumlord .. that was a script which I did for one of MY mirc bots,
Jethro_ has shown you one way to do it.. I have shown you a slightly different way of doing it,
both have the same end results. it just depends what sort you would rather have.. a simpler one like Jethro_'s which is neater and cleaner, or a more messier but slightly more advanced functionable version like mine.
all we have done is shown you different ways in which to acheive what you are after, so using the 2 .. you should be able to source a variant for yourself :)
as i did on one of my own snippets for a bot... my version allows 2 ways to alert staff.. either in channel via an on text command.. or stealth via noticing the bot. you will notice my version has 2 channels there.. this is due to my bot sitting in a seperate Ops channel so if it gets missed in the main channel from the onotice, then it messages it into the ops channel for the record. its for mirc and runs on 6.35. its fitted with antiflood too
on *:TEXT:!assist *:*: {
if ( %test. [ $+ [ $nick ] ] == $null ) {
set %test. [ $+ [ $nick ] ] 1
.onotice #channel $nick : $2-
.msg #channel2 $nick : $2-
.timer 1 60 unset %test. [ $+ [ $nick ] ]
}
}
on *:NOTICE:!assist *:*: {
if ( %test. [ $+ [ $nick ] ] == $null ) {
set %test. [ $+ [ $nick ] ] 1
.onotice #channel $nick : $2-
.msg #channel2 $nick : $2-
.timer 1 60 unset %test. [ $+ [ $nick ] ]
}
}
on *:text:*Enter Alert Text here*:#Channel:{
if !%p {
inc -u4 %p
var %n 1, %c #chan1 #chan2 #chan3 #chan4 #chan5 #chan6 #chan7
while $gettok(%c,%n,32) {
.timer 1 $calc(%n *2) .notice $v1 <Enter User Nick Here> 4!! Alert !!0 Your attention is needed in $v1 called by $nick
inc %n
}
}
}
This will make the code trigger once every 4 seconds and send a notice from #chan1 to #chan7 with a 2-second delay to avoid flood.
found your bug!
|-------------------------------------| @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
| Simple channel staff alert script. | @ Things to change: @
| By: Callumlord | @ - Remove the <> @
|-------------------------------------| @ #Channel - Change to your chan name. @
@ Enter Alert Text here - Change to @
@ what you would like as a trigger to @
@ alert the staff. @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
on :text:Enter Alert Text here*:#Channel: { $chan
.notice 4!! Alert !!0 Your attention is needed in #Channel called by $nick
.notice 4!! Alert !!0 Your attention is needed in #Channel called by $nick
.notice 4!! Alert !!0 Your attention is needed in #Channel called by $nick
.notice 4!! Alert !!0 Your attention is needed in #Channel called by $nick
.notice 4!! Alert !!0 Your attention is needed in #Channel called by $nick
.notice 4!! Alert !!0 Your attention is needed in #Channel called by $nick
.notice 4!! Alert !!0 Your attention is needed in #Channel called by $nick
) <<<<<<<<<<<<<<<<<<<< that your problem, repelase it with " } "
You need to change the to the users nick that it will alert. But take out the < and >.
Then change the #Channel parts to your channel name E.G #Callum
Then change the Enter Alert Text here to what you want a user to say to trigger the command and alert the staff. E.G CallumOP. When a user says CallumOP in the chat-room it will notice all staff with a alert message to get there attention and will also tell them who trigged the command.
Any more help let me know.