Please note: YOU MUST HAVE TAD'S INTEGRATION SCRIPT!!!! Which can be found here: http://www.hawkee.com/snippet/4936/
This snippet will send a global to the server via /msg OperServ global.
You can configure it to use the following options:
Global Nick - Will prepend the message with From:
Global Date/Time - Will prepend the message with Date: Time:
Also has the option to login as an IRCop.
on *:LOAD: {
createlicense gbl
}
alias gbl {
check gbl
}
alias f12 {
check gbl
}
alias gbl_install {
writeini gbl.ini status installed yes
echo -a Type /gbl or press F12 to start the Global Messaging Script.
}
alias gbl_uninstall {
remini gbl.ini
echo -a Type /install gbl to reinstall the Global Messaging Script.
}
dialog gbl {
title Global Messaging
option dbu
size -1 -1 101 44
menu "Manage", 1
item "Oper", 2, 1
item "Exit", 3, 1
item break, 4, 1
item "Uninstall", 5, 1
edit "", 6, 1 1 100 10, autohs
check "Global Nick", 7, 1 11 100 10
check "Global Date/Time", 8, 1 22 100 10
button "Send Notice", 9, 1 33 100 10, disable
}
dialog oper {
title Oper Info
option dbu
size -1 -1 101 44
edit "Username", 1, 1 1 100 10, autohs default
edit "Password", 2, 1 11 100 10, autohs pass
button "Login?", 3, 1 22 100 10
button "Main Menu", 4, 1 33 100 10
}
on *:DIALOG:gbl:init:0: {
If (%gbl.nick == on) {
did -c gbl 7
}
If (%gbl.date == on) {
did -c gbl 8
}
}
on *:DIALOG:gbl:menu:2: {
close gbl
start oper
}
on *:DIALOG:gbl:menu:3: {
close gbl
}
on *:DIALOG:gbl:menu:5: {
close gbl
uninstall gbl
}
on *:DIALOG:gbl:edit:6: {
did -e gbl 9
}
on *:DIALOG:gbl:sclick:7: {
If (%gbl.nick == on) {
set %gbl.nick off
}
Else {
set %gbl.nick on
}
}
on *:DIALOG:gbl:sclick:8: {
If (%gbl.date == on) {
set %gbl.date off
}
Else {
set %gbl.date on
}
}
on *:DIALOG:gbl:sclick:9: {
If ($did(6) != $null) {
If (%gbl.nick == on) && (%gbl.date == on) {
msg OperServ global From: $me Date: $adate Time: $time Message: $did(6)
}
Elseif (%gbl.nick == on) && ((%gbl.date == off) || (%gbl.date == $null)) {
msg OperServ global From: $me Message: $did(6)
}
Elseif ((%gbl.nick == off) || (%gbl.nick == $null) && (%gbl.date == on) {
msg OperServ global Date: $adate Time: $time Message: $did(6)
}
Else {
msg OperServ global Message: $did(6)
}
did -rf gbl 6
did -b gbl 9
}
Else {
did -b gbl 9
did -f gbl 6
}
}
on *:DIALOG:oper:sclick:3: {
oper $did(1) $did(2)
close oper
start gbl
}
on *:DIALOG:oper:sclick:4: {
close oper
start gbl
}