mIRC Home    About    Download    Register    News    Help

Print Thread
Help Needed. #150994 12/06/06 01:09 AM
Joined: Jun 2006
Posts: 10
Colossus Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Jun 2006
Posts: 10
I have various scripts that I use in my channel. Such as games, weather, google, etc... but not everything fits in my topic. I was wondering if there was a way to make a command ex. !trigger, that would msg the user that types that and shows him/her everything that the channel has to offer. If there is please let me know. Thank you.

Re: Help Needed. #150995 12/06/06 01:19 AM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
a way to do this is to list all the choices in a text file and when a guest types !trigger the lfile is played to the user in a message window.

a basic version would be
Code:
on *:text:!trigger:#mychannel:{
.play -m1 $nick file.txt 1500
}

/help /play
and /help on text

Re: Help Needed. #150996 12/06/06 01:33 AM
Joined: Jun 2006
Posts: 10
Colossus Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Jun 2006
Posts: 10
Yeah, that's not working. Or most likely I'm doing something wrong. For example, where would I add the commands I have or do I replace file.txt? I really have no idea : \ Then again, I am a beginner.


Re: Help Needed. #150997 12/06/06 02:11 AM
Joined: Aug 2005
Posts: 525
S
schaefer31 Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Using Mike's code, you need a file named 'file.txt' in your mIRC directory. Within that file you can list different commands on separate lines. Then when an user types !trigger, the file will be played to him line by line.

Re: Help Needed. #150998 12/06/06 06:43 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
You can also do an on join notice to the users when they join...

Code:
on *:join:#yourchannel: {
  .notice $nick Welcome to $chan $+ .  We offer the following commands:  !dict, !weather, !stats, ........
}


Invision Support
#Invision on irc.irchighway.net