i'm wanting to change this so that it reads from a txt file and does a random slap how do i do this?
:/me slaps $$1 around $read $mircdirslap.txt
then add ur slaps in a file called slaps.txt
whats the error you get then?
it's grey and i cannot click on it when i added it to my aliases
Slap!:/me slaps $$1 around a large trout
thats for your popup..
Slap!:/me slaps $$1 around $read $mircdirslap.txt
* Kerry|Away slaps StatServ around
This is all it does and i have added stuff to the slap.txt file
$mircdir\slap.txt
try add that instead then
* $read: invalid parameters
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
Check that slap.txt exists, is in the main mirc dir and contains text to read.
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> ...
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
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?
ok i totally give up on this, there isn't any way to do this is there?
All of the suggestions above should work and do work for other people.