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.

Greet specific users

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
V
ViciousPiranha
Voice
Posts: 36
Joined: Mon Dec 17, 2012 5:21 am

Greet specific users

Post by ViciousPiranha »

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
User avatar
Madalin
Master
Posts: 310
Joined: Fri Jun 24, 2005 11:36 am
Location: Constanta, Romania
Contact:

Post by Madalin »

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.
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

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!"
}
V
ViciousPiranha
Voice
Posts: 36
Joined: Mon Dec 17, 2012 5:21 am

Post by ViciousPiranha »

thank you

mind adding a code for an id of *!*leagueofl@* or *!leagueofl@*

plz?
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

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.
User avatar
Madalin
Master
Posts: 310
Joined: Fri Jun 24, 2005 11:36 am
Location: Constanta, Romania
Contact:

Post by Madalin »

I updated my version to didnt test it but it should work
V
ViciousPiranha
Voice
Posts: 36
Joined: Mon Dec 17, 2012 5:21 am

Post by ViciousPiranha »

@willyw : It does, thank you very much you make my day!!
Post Reply