On Thu  6-May-1999  2:09p, [EMAIL PROTECTED] wrote:
a> 1. Fast link. i.e. any msg sent and displayed in an amirc window begginin=
a> g with `http://' or `www.' will be emphesised and can
a> be double-clicked to take you to that URL.

I *like* this... ala mIRC and mailers, etc...

a> 2. Lazy buggers feature.

Auto expansion of re to regards, etc...  I kinda like that...  I can see
where I would use it ;)

a> 3. Another lazy thing..

a> You can attach commands etc to events and even certain people. So if there
a> was someone called `PugLagos' and you wanted to say hi whenever he said
a> `Hello <insert name here>' without you even being there you could do just a> that. 
This can be especially useful if you want to greet certain
a> people when they join a channel and you'r too busy to say hi yourself.
a> You could make it pause so that appears as if you took time typing it in
a> (people may notice if you say something the very second they appear on
a> the channel.. ;) )


This is easy enough in rexx....   Make a script called...  join.amirx

Put this in it:  (and add the event line to your AmIRC config)

/*
** ElCheapo ARexx ON JOIN handler
** AmIRC/Settings/Setup/Events/Join/ARexx "Join.amirx %p"

$VER: Join 1.00�  (6.5.99)     http://www.amicon.net    by WarNPeace!!!

Find me on addicted.beyondirc.net in #CNetIndependent if you want to
complain

*/

parse arg ':'nick'!'ident'@'host' 'action' :'chan
'getmynick';mynick=result
if upper(nick)="SKIPME" then call exit           /* ignore this nick */

/* this one will alert you when FRIEND joins */
if upper(nick)="FRIEND" then PLAYSOUND 'alert.wav'

if nick=mynick then call ME 

'Echo P='d2c(27)'b�Join� 'nick' -  'ident'@'host'  - 'chan
/* This line does a /who host on everyone who joins, and you see instantly
   if they have multiple connections online... (clones).  Replace with
   /whois nick if you want to see what channels they are in...  etc */
'say /who 'host

/* This line tells it what channel/s to work in... Replace #MYCHANNEL
   with the channel name you want to greet people in */
if upper(chan)="#MYCHANNEL" then call RandomGreet
if upper(chan)="#ANOTHERONE" then call RandomGreet
exit

/* this is the same as above, only controls what channels you give
   random greeting to when you join yourself */
ME:
If upper(chan)="#MYCHANNEL" then call RandomMe
If upper(chan)="#ANOTHERONE" then call RandomMe
exit



/* Modify the greet.x's to suit your taste...  This is what is said when
   YOU join a channel */
RandomMe:
hour=time(h)
now = "morning"
if hour >11 then now = "afternoon"
if hour >12 then now = "afternoon"
if hour >18 then now = "evening"

greet.0 = 'Hello everyone!'
greet.1 = 'I am back!  Did you miss me?'
greet.2 = '`sup yall?'
greet.3 = 'Greetings and salutations 'chan
greet.4 = "Good "now" everyone!"
greet.5 = "How is everyone this "now"?"

x=RANDOM(0, 5, time(s))
delay(150)  /* modify this to give it the delayed/personal touch */
'say /msg 'chan' 'greet.x
exit


/* Modify the greet.x's to suit your taste... This is what is said as
   each person joins the channels you have defined above */
RandomGreet:
hour=time(h)
now = "morning"
if hour >11 then now = "afternoon"
if hour >12 then now = "afternoon"
if hour >18 then now = "evening"

greet.0 = 'Welcome to 'chan' 'nick'...'
greet.1 = 'Greets 'nick'!'
greet.2 = 'Hiya 'nick', welcome to 'chan
greet.3 = 'Hi there 'nick', how are you?'
greet.4 = 'Hey 'nick', `sup wit chew?'
greet.5 = 'Yo 'nick'...  Good to see you.'
greet.6 = 'Howdy 'nick', pull up a seat...'
greet.7 = '`sup 'nick'?'
greet.8 = "Hey "nick", how's it hangin?"
greet.9 = "Look what the cat dragged in..  Hiya "nick"!"
greet.10= "Greetings and salutations "nick"..."
greet.11= "Good "now" "nick
greet.12= "HiYa "nick", how are you this fine "now"?"
greet.13= "Hello "nick"... What's the good word?"
greet.14= "Hi "nick
greet.15= now" "nick
greet.16= "Well if it isn't "nick"... Good "now"..."
greet.17= "wb "nick
greet.18= "re "nick
greet.20= "about time you showed up!"
greet.21= "there you are "nick"!"

x=RANDOM(0, 21, time(s))

delay(225)
'say /msg 'chan' 'greet.x
exit




There, I hacked that out of my enormous join.amirx, and it should do
exactly what you want (and more)...


Enjoy,

John

DR. John M. Hoyt / AKA Warren Peace  -  amicon.net SysAdmin
                       WarNPeace     -  irc.BeyondIRC.Net NetAdmin
                                     -  C-Link! International Coordinator
                                     -  ZenMetal/CNet Alpha Team


__________________________________________________________
AmIRC Mailing List - Info & Archive: http://www.vapor.com/
For Listserver Help: <[EMAIL PROTECTED]>, "HELP"
To Unsubscribe: <[EMAIL PROTECTED]>, "UNSUBSCRIBE"

Reply via email to