mIRC Home    About    Download    Register    News    Help

Topic Options
#216795 - 03/12/09 02:38 AM onjoin bartender script
pauls74462 Offline
Nutrimatic drinks dispenser

Registered: 03/12/09
Posts: 7
I'm needing help on making a onjoin script where ti will serve a drink upon welcuming a nick to the channel.

Drinks in a text file will be great.

Drinks will be randomly served to the nick.

Please help. mIRC scripts is not my specialty.

Pauls74462

Top
#216797 - 03/12/09 02:53 AM Re: onjoin bartender script [Re: pauls74462]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
Code:
on *:join:#yourchannel: {
  if ($nick != $me) { msg $chan Here $nick $+ ! Have a $read(Drinks.txt) $+ . }
}


Put Drinks.txt with drinks (one per line) in your mIRC dir alone with the script and you're set.
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#216801 - 03/12/09 04:23 AM Re: onjoin bartender script [Re: Riamus2]
pauls74462 Offline
Nutrimatic drinks dispenser

Registered: 03/12/09
Posts: 7
Originally Posted By: Riamus2
Code:
on *:join:#yourchannel: {
  if ($nick != $me) { msg $chan Here $nick $+ ! Have a $read(Drinks.txt) $+ . }
}


Put Drinks.txt with drinks (one per line) in your mIRC dir alone with the script and you're set.


Thanks it works great.

It shows up as:

[22:14] <Pauls74462> Here Grult! Have a Jade Isle.

I like it to show up as:

* Pauls74462 offers Johnl8374 a Jade Isle & and toasts #Channel IRC!

Top
#216804 - 03/12/09 05:15 AM Re: onjoin bartender script [Re: pauls74462]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
replace msg with describe

Top
#216808 - 03/12/09 05:51 AM Re: onjoin bartender script [Re: RusselB]
pauls74462 Offline
Nutrimatic drinks dispenser

Registered: 03/12/09
Posts: 7
Thanks all who had input, it's working.

BTW: when I go out I'm the designated drinker! hehehe


Pauls74462


Edited by pauls74462 (03/12/09 05:52 AM)

Top
#216810 - 03/12/09 06:48 AM Re: onjoin bartender script [Re: Riamus2]
5618 Offline
Hoopy frood

Registered: 18/06/07
Posts: 933
Originally Posted By: Riamus2
Code:
on *:join:#yourchannel: {
  if ($nick != $me) { msg $chan Here $nick $+ ! Have a $read(Drinks.txt) $+ . }
}

Maybe some constructive criticism, as found in /help Event Prefixes ?
Code:
on !*:JOIN:#yourchannel: describe $chan Here $nick $+ ! Have a $read(Drinks.txt) $+ .

Top
#216811 - 03/12/09 07:58 AM Re: onjoin bartender script [Re: 5618]
Tomao Offline
Hoopy frood

Registered: 07/07/07
Posts: 1129
Loc: United States
They're the same difference, except an if statement is omitted.

Top
#216812 - 03/12/09 11:01 AM Re: onjoin bartender script [Re: Tomao]
5618 Offline
Hoopy frood

Registered: 18/06/07
Posts: 933
Originally Posted By: Tomao
They're the same difference, except an if statement is omitted.

That's my whole point. ;-)
A shorter script is a happy script.

Top
#216815 - 03/12/09 01:27 PM Re: onjoin bartender script [Re: 5618]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
Thanks. I knew there was a prefix, but I'm at work and don't have access to the help file to remember it and it's not a check I normally have to do in my scripts, so I never remember what it is. smile
_________________________
Invision Support
#Invision on irc.irchighway.net

Top