This is an updated version of my old greet manager. Pros: It's much smaller, it now uses .ini so you can store more nicks and chans and you can now remove nicks and chans from the list. Cons: You can't use colors like you could with the old one :| so just copy and paste into your remotes and remember to enable the greets.
menu channel {
Greet Manager: { dialog -dm greet greet }
}
dialog Greet {
title "Greet Manager v1.1"
size -1 -1 155 168
option dbu
tab "Nick Greet Manager", 1, 0 3 155 187
list 3, 0 32 50 137, tab 1 size hsbar vsbar
button "Add Nick", 4, 83 32 37 12, tab 1
button "Remove Nick", 5, 83 64 37 12, tab 1
button "Enable", 6, 56 96 37 12, tab 1
button "Disable", 10, 111 96 37 12, tab 1
button "Ok", 11, 83 144 37 12, tab 1
text " Usable Prefixes: $nick $me $chan", 15, 58 120 89 8, tab 1
tab "Chan Greet manager", 2
list 7, 0 32 50 137, tab 2 size hsbar vsbar
button "Add Chan", 8, 83 32 37 12, tab 2
button "Remove Chan", 9, 83 64 37 12, tab 2
button "Enable", 12, 56 96 37 12, tab 2
button "Disable", 13, 111 96 37 12, tab 2
button "Ok", 14, 83 144 37 12, tab 2
text " Usable Prefixes: $nick $chan $me", 16, 58 120 89 8, tab 2
menu "Method", 17
item "Msg", 18, 17
item "Notice", 19, 17
item "Describe", 20, 17
}
alias greet { dialog -dm greet greet }
on *:DIALOG:greet:sclick:4: {
var %i = $$input(Enter nick.,e)
var %j = $$input(Enter Msg.,e)
did -a greet 3 %i - %j
writeini nicklist.ini %i msg %j
echo -a 4Greet For %i Set As: %j
}
on *:DIALOG:greet:sclick:8: {
var %i = $$input(Enter chan.,e)
var %j = $$input(Enter Msg.,e)
did -a greet 7 %i - %j
writeini chanlist.ini %i msg %j
echo -a 4Greet For %i Set As: %j
}
ON *:DIALOG:greet:sclick:5: {
var %i = $$input(Enter Nick To Be Removed.,e)
remini nicklist.ini %i
remini nicklist.ini %i msg
echo -a 4 $+ %i Now Removed From List
unset %i
}
ON *:DIALOG:greet:sclick:9: {
var %i = $$input(Enter Chan To Be Removed.,e)
remini chanlist.ini %i
remini chanlist.ini %i msg
echo -a 4 $+ %i Now Removed From List
unset %i
}
on *:DIALOG:greet:sclick:6: {
set %nickgreet on
msg $active Nick Greet Now Enabled
}
on *:DIALOG:greet:sclick:10: {
set %nickgreet off
msg $active Nick Greet Now Disabled
}
on *:DIALOG:greet:sclick:12: {
set %changreet on
msg $active Chan Greet Now Enabled
}
on *:DIALOG:greet:sclick:13: {
set %changreet off
msg $active Chan Greet Now Disabled
}
on *:DIALOG:greet:menu:18: {
set %method msg
echo -a Method Changed To: %method
}
on *:DIALOG:greet:menu:19: {
set %method notice
echo -a Method Changed To: %method
}
on *:DIALOG:greet:menu:20: {
set %method describe
echo -a Method CHanged To: %method
}
on *:DIALOG:greet:sclick:11: {
dialog -x greet greet
}
on *:DIALOG:greet:sclick:14: {
dialog -x greet greet
}
on *:DIALOG:greet:init:0: {
/loadbuf -ot greet 3 nicklist.ini
/loadbuf -ot greet 7 chanlist.ini
did -z greet 3
did -z greet 7
}
on *:JOIN:#: {
if (%nickgreet == on) {
.timer 1 2 %method $nick $$readini(nicklist.ini,$nick,msg)
}
if (%changreet == on) {
.timer 1 2 %method $nick $$readini(chanlist.ini,#,msg)
}
}
on *:LOAD: {
set %method msg
write nicklist.ini [nicklist]
write nicklist.ini ----------
write chanlist.ini [chanlist]
write chanlist.ini ----------
}
well first of all its a dialog greet manager. it has a enable feature and disable feature.
dialog Greet {
title "Greet Manager v1.1"
size -1 -1 155 168
option dbu
tab "Nick Greet Manager", 1, 0 3 155 187
list 3, 0 32 50 137, tab 1 size hsbar vsbar
button "Add Nick", 4, 83 32 37 12, tab 1 <-------add nick
button "Remove Nick", 5, 83 64 37 12, tab 1 <-------remove nick
button "Enable", 6, 56 96 37 12, tab 1
button "Disable", 10, 111 96 37 12, tab 1
button "Ok", 11, 83 144 37 12, tab 1
text " Usable Prefixes: $nick $me $chan", 15, 58 120 89 8, tab 1
tab "Chan Greet manager", 2
list 7, 0 32 50 137, tab 2 size hsbar vsbar
button "Add Chan", 8, 83 32 37 12, tab 2
button "Remove Chan", 9, 83 64 37 12, tab 2
button "Enable", 12, 56 96 37 12, tab 2 ( same goes for the channel your in, add and remove)
button "Disable", 13, 111 96 37 12, tab 2
button "Ok", 14, 83 144 37 12, tab 2
text " Usable Prefixes: $nick $chan $me", 16, 58 120 89 8, tab 2
menu "Method", 17
item "Msg", 18, 17 <---( this gives you the choice msg room or notice the room )
item "Notice", 19, 17
item "Describe", 20, 17
Pretty self explanatory!!
after i add a group fro greeting and close the window. when i reopen the window its gone. how do i edit it if i want to edit msg.