This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
ViciousPiranha
Voice
Posts: 36 Joined: Mon Dec 17, 2012 5:21 am
Post
by ViciousPiranha » Sat Jan 19, 2013 2:57 pm
hi, please help... i need a script that when a user with a nickname matching the wild card LOL|* joins the channel #leagueoflegends it will greet him with the message "Welcome to #leagueoflegends, NICKNAME-HERE!"
please help
Madalin
Master
Posts: 310 Joined: Fri Jun 24, 2005 11:36 am
Location: Constanta, Romania
Contact:
Post
by Madalin » Sat Jan 19, 2013 3:01 pm
Try this
Just edit "#channel" with your channel
Code: Select all
bind join - * greet:join
set lol "#leagueoflegends"
proc greet:join {nick uhost hand chan} {
if {[string match -nocase $chan $::lol]} {
if {[string match -nocase "*lol*" $nick] && [string match -nocase "leagueofl*" [lindex [split $uhost @] 0]]} {
putserv "NOTICE $nick :Welcome to $chan, $nick"
}
}
}
Last edited by
Madalin on Sat Jan 19, 2013 3:38 pm, edited 3 times in total.
willyw
Revered One
Posts: 1203 Joined: Thu Jan 15, 2009 12:55 am
Post
by willyw » Sat Jan 19, 2013 3:14 pm
Another idea:
Code: Select all
# January 19, 2012
# http://forum.egghelp.org/viewtopic.php?t=19285
bind join - "#leagueoflegends LOL|*!*@*" do_LOL_greet
proc do_LOL_greet {nick uhost handle chan} {
putserv "privmsg $chan :Welcome to $chan, $nick!"
}
ViciousPiranha
Voice
Posts: 36 Joined: Mon Dec 17, 2012 5:21 am
Post
by ViciousPiranha » Sat Jan 19, 2013 3:15 pm
thank you
mind adding a code for an id of *!*leagueofl@* or *!leagueofl@*
plz?
willyw
Revered One
Posts: 1203 Joined: Thu Jan 15, 2009 12:55 am
Post
by willyw » Sat Jan 19, 2013 3:21 pm
Go to
http://www.eggheads.org/support/egghtml ... mands.html
and scroll down to
bind join and read.
Then add binds as you please:
Code: Select all
bind join - "#leagueoflegends *!leagueofl@*" do_LOL_greet
Be sure to test after you edit and rehash bot. Don't just assume that it will work as you expect, or work at all.
I hope this helps.
Madalin
Master
Posts: 310 Joined: Fri Jun 24, 2005 11:36 am
Location: Constanta, Romania
Contact:
Post
by Madalin » Sat Jan 19, 2013 3:23 pm
I updated my version to didnt test it but it should work
ViciousPiranha
Voice
Posts: 36 Joined: Mon Dec 17, 2012 5:21 am
Post
by ViciousPiranha » Sat Jan 19, 2013 3:23 pm
@willyw : It does, thank you very much you make my day!!