mIRC Home    About    Download    Register    News    Help

Page 1 of 2 1 2 >
Topic Options
#67986 - 15/01/04 07:37 PM Slap!:/me slaps $$1 around a large trout
Kerry2000 Offline
Pikka bird

Registered: 15/01/04
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?

Top
#67987 - 15/01/04 07:40 PM Re: Slap!:/me slaps $$1 around a large trout
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
:/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,.) }

Top
#67988 - 15/01/04 07:46 PM Re: Slap!:/me slaps $$1 around a large trout
Kerry2000 Offline
Pikka bird

Registered: 15/01/04
Posts: 13
it don't work

Top
#67989 - 15/01/04 07:50 PM Re: Slap!:/me slaps $$1 around a large trout
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
whats the error you get then?
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#67990 - 15/01/04 07:52 PM Re: Slap!:/me slaps $$1 around a large trout
Kerry2000 Offline
Pikka bird

Registered: 15/01/04
Posts: 13
it's grey and i cannot click on it when i added it to my aliases

Top
#67991 - 15/01/04 07:54 PM Re: Slap!:/me slaps $$1 around a large trout
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
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,.) }

Top
#67992 - 15/01/04 07:57 PM Re: Slap!:/me slaps $$1 around a large trout
Kerry2000 Offline
Pikka bird

Registered: 15/01/04
Posts: 13
* Kerry|Away slaps StatServ around

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

Top
#67993 - 15/01/04 08:05 PM Re: Slap!:/me slaps $$1 around a large trout
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
$mircdir\slap.txt

try add that instead then
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#67994 - 15/01/04 08:06 PM Re: Slap!:/me slaps $$1 around a large trout
Kerry2000 Offline
Pikka bird

Registered: 15/01/04
Posts: 13
nope it didn't work

Top
#67995 - 15/01/04 08:15 PM Re: Slap!:/me slaps $$1 around a large trout
Iori Offline
Hoopy frood

Registered: 30/08/03
Posts: 1831
$read(slap.txt)

Top
#67996 - 15/01/04 08:26 PM Re: Slap!:/me slaps $$1 around a large trout
Kerry2000 Offline
Pikka bird

Registered: 15/01/04
Posts: 13
* $read: invalid parameters

Top
#67997 - 15/01/04 08:29 PM Re: Slap!:/me slaps $$1 around a large trout
EVH Offline
Fjord artisan

Registered: 22/10/03
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


Edited by EVH (15/01/04 08:32 PM)

Top
#67998 - 15/01/04 08:30 PM Re: Slap!:/me slaps $$1 around a large trout
Iori Offline
Hoopy frood

Registered: 30/08/03
Posts: 1831
Check that slap.txt exists, is in the main mirc dir and contains text to read.

Top
#67999 - 15/01/04 08:34 PM Re: Slap!:/me slaps $$1 around a large trout
Kerry2000 Offline
Pikka bird

Registered: 15/01/04
Posts: 13
still not working

Top
#68000 - 15/01/04 08:51 PM Re: Slap!:/me slaps $$1 around a large trout
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
/help $read
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#68001 - 15/01/04 11:12 PM Re: Slap!:/me slaps $$1 around a large trout
KingTomato Offline
Planetary brain

Registered: 04/01/03
Posts: 3012
Loc: New Hampshire, USA
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

Top
#68002 - 17/01/04 05:20 AM Re: Slap!:/me slaps $$1 around a large trout
DaveC Offline
Planetary brain

Registered: 26/09/03
Posts: 4230
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

Top
#68003 - 17/01/04 05:30 AM Re: Slap!:/me slaps $$1 around a large trout
DaveC Offline
Planetary brain

Registered: 26/09/03
Posts: 4230
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?

Top
#68004 - 19/01/04 05:47 PM Re: Slap!:/me slaps $$1 around a large trout
Kerry2000 Offline
Pikka bird

Registered: 15/01/04
Posts: 13
ok i totally give up on this, there isn't any way to do this is there?

Top
#68005 - 19/01/04 08:26 PM Re: Slap!:/me slaps $$1 around a large trout
Iori Offline
Hoopy frood

Registered: 30/08/03
Posts: 1831
All of the suggestions above should work and do work for other people.

Top
Page 1 of 2 1 2 >