mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
Slap!:/me slaps $$1 around a large trout #67986 15/01/04 07:37 PM
Joined: Jan 2004
Posts: 13
K
Kerry2000 Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Jan 2004
Posts: 13
i'm wanting to change this so that it reads from a txt file and does a random slap how do i do this?

Re: Slap!:/me slaps $$1 around a large trout #67987 15/01/04 07:40 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
:/me slaps $$1 around $read $mircdirslap.txt

then add ur slaps in a file called slaps.txt


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Slap!:/me slaps $$1 around a large trout #67988 15/01/04 07:46 PM
Joined: Jan 2004
Posts: 13
K
Kerry2000 Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Jan 2004
Posts: 13
it don't work

Re: Slap!:/me slaps $$1 around a large trout #67989 15/01/04 07:50 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
whats the error you get then?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Slap!:/me slaps $$1 around a large trout #67990 15/01/04 07:52 PM
Joined: Jan 2004
Posts: 13
K
Kerry2000 Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Jan 2004
Posts: 13
it's grey and i cannot click on it when i added it to my aliases

Re: Slap!:/me slaps $$1 around a large trout #67991 15/01/04 07:54 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Slap!:/me slaps $$1 around a large trout

thats for your popup..

Slap!:/me slaps $$1 around $read $mircdirslap.txt


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Slap!:/me slaps $$1 around a large trout #67992 15/01/04 07:57 PM
Joined: Jan 2004
Posts: 13
K
Kerry2000 Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Jan 2004
Posts: 13
* Kerry|Away slaps StatServ around

This is all it does and i have added stuff to the slap.txt file

Re: Slap!:/me slaps $$1 around a large trout #67993 15/01/04 08:05 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
$mircdir\slap.txt

try add that instead then


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Slap!:/me slaps $$1 around a large trout #67994 15/01/04 08:06 PM
Joined: Jan 2004
Posts: 13
K
Kerry2000 Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Jan 2004
Posts: 13
nope it didn't work

Re: Slap!:/me slaps $$1 around a large trout #67995 15/01/04 08:15 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
$read(slap.txt)

Re: Slap!:/me slaps $$1 around a large trout #67996 15/01/04 08:26 PM
Joined: Jan 2004
Posts: 13
K
Kerry2000 Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Jan 2004
Posts: 13
* $read: invalid parameters

Re: Slap!:/me slaps $$1 around a large trout #67997 15/01/04 08:29 PM
Joined: Oct 2003
Posts: 273
E
EVH Offline
Fjord artisan
Offline
Fjord artisan
E
Joined: Oct 2003
Posts: 273
lol do this

type /write slap.txt around a bit with a baseball bat.

or

type /write slap.txt around a bit with the mirc.hlp file.

and then try

Last edited by EVH; 15/01/04 08:32 PM.
Re: Slap!:/me slaps $$1 around a large trout #67998 15/01/04 08:30 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Check that slap.txt exists, is in the main mirc dir and contains text to read.

Re: Slap!:/me slaps $$1 around a large trout #67999 15/01/04 08:34 PM
Joined: Jan 2004
Posts: 13
K
Kerry2000 Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Jan 2004
Posts: 13
still not working

Re: Slap!:/me slaps $$1 around a large trout #68000 15/01/04 08:51 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
/help $read


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Slap!:/me slaps $$1 around a large trout #68001 15/01/04 11:12 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Code:
alias slap {
  var %filename = slap.txt
  if (!$isfile(%filename)) {
    /write %filename around a bit with a large trout
    /write %filename around with volume 1 of Windows for dummies
    /write %filename with an economy sized butterfinger bar.
  }
  /me slaps $$1 $read(%filename)
}
menu nicklist {
  Slap $$1 (Text File): /slap $$1
}

Add more lines to slap.txt that would follow /me slaps <name> ...


-KingTomato
Re: Slap!:/me slaps $$1 around a large trout #68002 17/01/04 05:20 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
replace
Slap!:/me slaps $$1 around a large trout

with
Slap!:/me slaps $$1 $read(slaps.txt)

now type this in mirc
/write -c slaps.txt around a large trout
/write slaps.txt around with two large trout

and if u want to add some more type in mirc
/run notepad slaps.txt

Re: Slap!:/me slaps $$1 around a large trout #68003 17/01/04 05:30 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
oh man, i couldnt even get $read to come back with a
* $read: invalid parameters

tried all types of things
//echo . $read()
//echo . $read(slap.txt,a,14)
//echo . $read(?lap.txt)
etc etc

even
/mkdir slap.txt
//echo . $read(slap.txt)
just came back as
.

i wonder what it was?

Re: Slap!:/me slaps $$1 around a large trout #68004 19/01/04 05:47 PM
Joined: Jan 2004
Posts: 13
K
Kerry2000 Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Jan 2004
Posts: 13
ok i totally give up on this, there isn't any way to do this is there?

Re: Slap!:/me slaps $$1 around a large trout #68005 19/01/04 08:26 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
All of the suggestions above should work and do work for other people.

Page 1 of 2 1 2