mIRC Homepage

Making a quote on entry to channel

Posted By: Wookie

Making a quote on entry to channel - 20/09/04 12:37 AM

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
Posted By: Wragg

Re: Making a quote on entry to channel - 20/09/04 04:05 AM

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

where #channel is your desired channel
where "your text here" is your wanted text/joke
Posted By: Coolkill

Re: Making a quote on entry to channel - 20/09/04 06:34 AM

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.
Posted By: Wookie

Re: Making a quote on entry to channel - 20/09/04 01:56 PM

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
Posted By: Wookie

Re: Making a quote on entry to channel - 20/09/04 04:25 PM

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
Posted By: FiberOPtics

Re: Making a quote on entry to channel - 20/09/04 04:34 PM

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
Posted By: Wookie

Re: Making a quote on entry to channel - 20/09/04 04:38 PM

Thanks mate...works like a charm..!!

Wookie
Posted By: Wragg

Re: Making a quote on entry to channel - 20/09/04 05:52 PM

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 ?
Posted By: FiberOPtics

Re: Making a quote on entry to channel - 20/09/04 05:56 PM

You don't need to pause the on join event for that.

Instead use the on OP event.

/help on op

Greets
Posted By: Wookie

Re: Making a quote on entry to channel - 20/09/04 07:05 PM

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
Posted By: FiberOPtics

Re: Making a quote on entry to channel - 20/09/04 07:17 PM

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
Posted By: Wookie

Re: Making a quote on entry to channel - 20/09/04 08:02 PM

Perfect!! I set the timer to 10 and it works great.

Thanks so much for your help...

Wookie
Posted By: FiberOPtics

Re: Making a quote on entry to channel - 20/09/04 08:07 PM

You're welcome!
© 2020 mIRC Discussion Forums