mIRC Home    About    Download    Register    News    Help

Print Thread
#60085 13/11/03 12:39 AM
Joined: Nov 2003
Posts: 1
W
Mostly harmless
OP Offline
Mostly harmless
W
Joined: Nov 2003
Posts: 1
Hi, I'm new at scripting, so please don't flame me smile

I was wondering if anyone could help me out adding code that would give out to a channel answers randomized from a .txt file, when someone on the channel typed !eightball (or !oracle, or anything).

Thanks


it must be killing time.
#60086 13/11/03 12:58 AM
Joined: Oct 2003
Posts: 143
D
Vogon poet
Offline
Vogon poet
D
Joined: Oct 2003
Posts: 143
try this

on 1:TEXT:!eightball*:#:say Hey $$1 $+ ! $read($shortfn($mircdir) $+ texts\8ball.txt)

make a folder in your mIRC folder call it texts then in that folder make a .txt file called 8ball and fill it up with the random things you want it to say (note. fill each line in 8ball.txt with a diffrent thing dont put it all on one line.)

ex.
you will have a good Day
you will have a bad day

hope this helps


if (Windows isin %txt.1) { /kick # $nick Windows is a badword tisk tisk tisk. }
#60087 13/11/03 12:58 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Paste this into Remotes section (Alt+R)
on *:text:!eightball:#channelname:msg # $read(eightball.txt)

Change the #channelname and eightball.txt as appropriate.


Link Copied to Clipboard