mIRC Home    About    Download    Register    News    Help

Print Thread
Someone willing to do a script for me? #15853 18/03/03 04:32 AM
Joined: Mar 2003
Posts: 12
A
AnnonKaiesZi Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Mar 2003
Posts: 12
Hello, I am Annon Kaies Zi. I have recently created my own channel, and all of that. Though, I would like a feature which I can not script...because I do not know how to script in mIRC. Hehe.

Anyways, I would like it to where when a user types in "!bored" a random message from a list is typed so everyone can see it. However, I am unsure how to do this.

If someone would please help me, I would greatly like that. My e-mail address is AnnonZi@cfl.rr.com, so please e-mail me if you are interested.

Server: irc.aniverse.com
Channel: #bored


-Annon Kaies Zi
Re: Someone willing to do a script for me? #15854 18/03/03 05:03 AM
Joined: Dec 2002
Posts: 1,527
_
_D3m0n_ Offline
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
willing to pay? lol


D3m0nnet.com
Re: Someone willing to do a script for me? #15855 18/03/03 05:15 AM
Joined: Jan 2003
Posts: 40
V
verdugo2000 Offline
Ameglian cow
Offline
Ameglian cow
V
Joined: Jan 2003
Posts: 40
you can use www.mircscripts.org

or you know just a little spanish use www.sarrio.org



Re: Someone willing to do a script for me? #15856 18/03/03 05:33 AM
Joined: Dec 2002
Posts: 40
C
Coca_Bear Offline
Ameglian cow
Offline
Ameglian cow
C
Joined: Dec 2002
Posts: 40
here you go

Code:
on *:TEXT:!bored:#yourchannel: {
  msg $chan $read(funny.txt)
}


they type !bored and it reads a random line from funny.txt, you have to change #yourchannel to whatever your channel is called. and if the file name is different you also need to change that.

You need to put this in your Remote section, which is ALT+R

Coca-Bear

Re: Someone willing to do a script for me? #15857 18/03/03 06:00 AM
Joined: Mar 2003
Posts: 12
A
AnnonKaiesZi Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Mar 2003
Posts: 12
Thanks, all. Got it good and working.


-Annon Kaies Zi
Re: Someone willing to do a script for me? #15858 23/03/03 01:56 AM
Joined: Dec 2002
Posts: 17
C
Chimera Offline
Pikka bird
Offline
Pikka bird
C
Joined: Dec 2002
Posts: 17
I hope your channel doesn't become too popular with bored users.
If too many of them type !bored at once, that code snippet will cause you to flood the channel and possibly be kicked off irc.
Better to have some kind of buffer for responses, or even better a delay that only gives out once responce in say, every 3 seconds, no matter how many !bored triggers are entered in that time:
Code:
on *:TEXT:!bored:#yourchannel: { 
if (!%bored) { msg $chan $read(funny.txt) | set -u3 %bored delay }
}