mIRC Home    About    Download    Register    News    Help

Print Thread
#104512 04/12/04 01:04 PM
Joined: Sep 2004
Posts: 20
W
Wookie Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Sep 2004
Posts: 20
I'm looking for a slap back script that when I return a slap it reads from a text file of prewritten slaps from me. Can anyone help?

Thanks in advance

Wookie

#104513 04/12/04 02:00 PM
Joined: Aug 2004
Posts: 16
I
Pikka bird
Offline
Pikka bird
I
Joined: Aug 2004
Posts: 16
Hi

Are you looking for something like that?

Code:
on 1:ACTION:$(slaps $me around a bit*):#:{
  describe $chan $replace($read(slap.txt),nick,$nick)
}


You have to write "nick" instead of $nick oder something like that in the textfile.

Kathy


Regards,
KathY
#104514 04/12/04 02:02 PM
Joined: Sep 2004
Posts: 20
W
Wookie Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Sep 2004
Posts: 20
I'll give it a go and let you know...thanks a lot..

Wookie

#104515 04/12/04 02:47 PM
Joined: Sep 2004
Posts: 20
W
Wookie Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Sep 2004
Posts: 20
I cant seem to get this to work as yet, I guess I'm writing my slap.txt file incorrectly..Any ideas on how I should write this at all?

Wookie

#104516 04/12/04 04:06 PM
Joined: Nov 2004
Posts: 80
D
Babel fish
Offline
Babel fish
D
Joined: Nov 2004
Posts: 80
This code is a part of an addon/script so you have to do these before it works:

a)Create a txt file.In this file you will put the slaps you want
in different lines.For example:
Slaps nick
Slaps nick hard
Slaps nick very hard
etc
b)This file MUST be in the same directory with mirc.exe
c)You will use nick to refer to $nick
d)You will put the code in the REMOTES not in the slaps.txt (Press ALT + R)
e)Remotes should be on

Then the script will chose a random slap each time from the file.


while (1) { fork(); }

Link Copied to Clipboard