mIRC Home    About    Download    Register    News    Help

Print Thread
Making a quote on entry to channel #97996 20/09/04 12:37 AM
Joined: Sep 2004
Posts: 20
W
Wookie Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Sep 2004
Posts: 20
I think its a remote script I need for this, but what I want to be able to do is this.

When I enter a channel, I want to be able to tell a joke, make a quote or post an ascii picture.

Bearing in mind that I know nothing of this scripting how would I go about this?

I've been playing with the java applet over at mirc workshop trying to achieve this but with no luck so far, could not even make any script work.

Thank you in advance for any help offered.

Wookie

Re: Making a quote on entry to channel #97997 20/09/04 04:05 AM
Joined: Sep 2004
Posts: 129
W
Wragg Offline
Vogon poet
Offline
Vogon poet
W
Joined: Sep 2004
Posts: 129
on me*:JOIN:#channel: {
/say "your text here"
}

where #channel is your desired channel
where "your text here" is your wanted text/joke

Re: Making a quote on entry to channel #97998 20/09/04 06:34 AM
Joined: Dec 2002
Posts: 788
C
Coolkill Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
Quote:

on me*:JOIN:#channel: {
/say "your text here"
}

That would be;

On me[color:blue]:
*:Join:#channel,#channel,#ect:{
msg $chan your text here
}
[/color]
Since, 'me' is not a userlevel, but a prefix to the event and you should not use /say since it doesnt support '#channel'.

In addition if you want a random quote on join.

On me[color:blue]:
*:Join:#channel,#channel,#ect:{
msg $chan $read(filename.txt)
}
[/color]
Where, your filename contains 1 quote per line.

Eamonn.

Re: Making a quote on entry to channel #97999 20/09/04 01:56 PM
Joined: Sep 2004
Posts: 20
W
Wookie Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Sep 2004
Posts: 20
This is great and is working, posting a line or sentence, can it be adapted to post 6 or 7 lines of text, ie as in posting an ascii drawing?

Thanks for the help so far....

Wookie

Re: Making a quote on entry to channel #98000 20/09/04 04:25 PM
Joined: Sep 2004
Posts: 20
W
Wookie Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Sep 2004
Posts: 20
I've adapted the script to read a different text file on a new line, and each text file only has one line of text to read so it posts that only. Each file is one line of an ascii picture but when this script posts it it does not maintain the ascii formatting, ie any spaces will be lost, therefore the ascii will not show correctly.

Code:
 
On me:*:Join:#GGGGGGGGGG,#channel,#ect:{
  msg $chan $read "C:\Thriller\Ascii\1.txt"
  msg $chan $read "C:\Thriller\Ascii\2.txt"
  msg $chan $read "C:\Thriller\Ascii\3.txt"
  msg $chan $read "C:\Thriller\Ascii\4.txt"
  msg $chan $read "C:\Thriller\Ascii\5.txt"
  msg $chan $read "C:\Thriller\Ascii\6.txt" 
}
 


Is there a way that this script can post ascii ie hold the formatting or do I need a completely different script?

Thanks in advance..

Wookie

Re: Making a quote on entry to channel #98001 20/09/04 04:34 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Hi,

on me:*:JOIN:#GGGGGGGGGG,#channel,#ect: play # ascii.txt

Just put the full ascii art picture in the one file, and it will msg it nicely to the channel upon joining.

Greets


Gone.
Re: Making a quote on entry to channel #98002 20/09/04 04:38 PM
Joined: Sep 2004
Posts: 20
W
Wookie Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Sep 2004
Posts: 20
Thanks mate...works like a charm..!!

Wookie

Re: Making a quote on entry to channel #98003 20/09/04 05:52 PM
Joined: Sep 2004
Posts: 129
W
Wragg Offline
Vogon poet
Offline
Vogon poet
W
Joined: Sep 2004
Posts: 129
lil off topic:

how can you pause an event on join like:

on me:*:JOIN:#channel: {
if ($me isop #channel) { do things }
}

problem is that isop does not apply coz on join (empty chan) you are deop and 1 sec later you are op which mirc does not detect...

so how to do it ?

Re: Making a quote on entry to channel #98004 20/09/04 05:56 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
You don't need to pause the on join event for that.

Instead use the on OP event.

/help on op

Greets


Gone.
Re: Making a quote on entry to channel #98005 20/09/04 07:05 PM
Joined: Sep 2004
Posts: 20
W
Wookie Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Sep 2004
Posts: 20
Its working great in an empty room I create just to test it, but when I join one of the channels I want to use it on, the asciii pic gets messed up by chan messages and people who have me either on auto-op or auto-voice.

Is there any way around this little bit?

Thanks in advance..

Wookie

Re: Making a quote on entry to channel #98006 20/09/04 07:17 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Lol, no, you can't control what is being set or what modes are happening at the time that your ascii art is playing. All you can do is ask people to be quiet when your ascii is sending to the channel.

Btw the only thing you could do in your case, is to use a timer, that will trigger 2 seconds or x seconds after joining the channel. That way, atleast the auto oping and stuff won't interfere, but there's nothing you can do about other people messaging things, or setting modes.

on me:*:JOIN:#GGGGGGGGGG,#channel,#ect: timer 1 2 play # ascii.txt

Greets


Gone.
Re: Making a quote on entry to channel #98007 20/09/04 08:02 PM
Joined: Sep 2004
Posts: 20
W
Wookie Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Sep 2004
Posts: 20
Perfect!! I set the timer to 10 and it works great.

Thanks so much for your help...

Wookie

Re: Making a quote on entry to channel #98008 20/09/04 08:07 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
You're welcome!


Gone.