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.

send private msg to nick when entering

Old posts that have not been replied to for several years.
Locked
B
Bytez
Op
Posts: 168
Joined: Mon Aug 11, 2003 1:42 pm

send private msg to nick when entering

Post by Bytez »

Hi, does anyone know of a script for mirc or eggdrop that sends a private message to the person who just entered the channel? I need one that does this. Thanks in advance.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you've been here for at least year and a half and you still need someone else to write for you the eggdrop's "Hello, world" equivalent? well, here it is:

Code: Select all

bind join - * foo
proc foo {n u h c} {
  puthelp "privmsg $n :Hello, $n"
}
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

makes me wonder what you wrote in those other 147 posts you made :roll:
B
Bytez
Op
Posts: 168
Joined: Mon Aug 11, 2003 1:42 pm

Post by Bytez »

Well, coding isn't my thing and I haven't been busy with eggdrops for the past year. :P Thanks, how do I exclude OPs from receiving the private message? :D
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Bytez wrote:how do I exclude OPs from receiving the private message? :D
Tell them to ignore the bot :wink:
What do you mean by "OPs"? People with the o flag in your bot or people that are +o on the channel (they're not when joining)
MeTroiD wrote:makes me wonder what you wrote in those other 147 posts you made :roll:
http://forum.egghelp.org/search.php?search_author=Bytez
Have you ever read "The Manual"?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Something simple as this should do it. We are using a 2 second delay timer here to check, if the nick is opped or not by any network services (ChanServ, X) when the nick joins, before private messaging the nick.

* Okay also added for ops (+o flag) in the bots user file.

Code: Select all

bind join - * delay:foo

proc delay:foo {n u h c} {
 utimer 2 [list foo $n $u $h $c]
}

proc foo {n u h c} {
 if {![isop $n $c] && ![matchattr $h o $c]} {
  puthelp "privmsg $n :Hello, $n"
  }
}
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked