egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Greet specific users

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
ViciousPiranha
Voice


Joined: 17 Dec 2012
Posts: 36

PostPosted: Sat Jan 19, 2013 2:57 pm    Post subject: Greet specific users Reply with quote

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
Back to top
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Sat Jan 19, 2013 3:01 pm    Post subject: Reply with quote

Try this
Just edit "#channel" with your channel

Code:

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"
      }
   }
}

_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL


Last edited by Madalin on Sat Jan 19, 2013 3:38 pm; edited 3 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sat Jan 19, 2013 3:14 pm    Post subject: Reply with quote

Another idea:
Code:

# 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!"
}
Back to top
View user's profile Send private message
ViciousPiranha
Voice


Joined: 17 Dec 2012
Posts: 36

PostPosted: Sat Jan 19, 2013 3:15 pm    Post subject: Reply with quote

thank you

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

plz?
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sat Jan 19, 2013 3:21 pm    Post subject: Reply with quote

Go to http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html

and scroll down to bind join and read.

Then add binds as you please:
Code:

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. Smile

I hope this helps.
Back to top
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Sat Jan 19, 2013 3:23 pm    Post subject: Reply with quote

I updated my version to didnt test it but it should work
_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
ViciousPiranha
Voice


Joined: 17 Dec 2012
Posts: 36

PostPosted: Sat Jan 19, 2013 3:23 pm    Post subject: Reply with quote

@willyw : It does, thank you very much you make my day!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber