Want a script in my eggdrop that does this:
When, let us say "Santa" is online and someone writes "!radio" the eggdrop says:
"(Adress) Radio is Online"
But if "Santa" is offline the eggdrop says this:
"(Adress) Radio is Offline"
Is there a easy way to do this? Or do you any scrpt that do this?
bind pub - !ison isonline
proc isonline {n u h c t} {
if {[set who [hand2nick $t]] != ""} {
puthelp "privmsg $c :$t is online with nick $who!"
} {
puthelp "privmsg $c :$t is offline..."
}
}
bind pub - !ison isonline
proc isonline {n u h c t} {
if {[set who [hand2nick $t]] != ""} {
puthelp "privmsg $c :$t is online with nick $who!"
} {
puthelp "privmsg $c :$t is offline..."
}
}
I think I explained pretty bad...sorry..
A user in the channel is sendig radio when he is online...this "Santa"...but the radio is only running when he is online. That's what I need the script for. The script is gonna check if "Santa" is online when someone writes "!Radio"
and answer with:
"(adress to the radio) Radio is Online"
and if "Santa" is offline the eggdrop is gonna say:
"(adress to the radio) Radio is Offline"
bind pub - !radio isonline
proc isonline {n u h c t} {
if {[set who [hand2nick Santa]] != ""} {
puthelp "privmsg $c :(adress to the radio) Radio is Online"
} {
puthelp "privmsg $c :(adress to the radio) Radio is Offline"
}
}