mIRC Home    About    Download    Register    News    Help

Print Thread
makeing /play use identifiers #46680 03/09/03 12:50 AM
Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
Hello, how can i make /play nick help.txt 1000 evaluate identifiers in the text of the text file? like $nick $time $date stuff like that? I dont want to treat each line like a command cause thier not, they are just lines but wuld like to add the time/date/nick into certain parts of each play. I hope this makes sense and would appreciate any help


keek: Scots - intr.v. keeked, keekˇing, keeks
To peek; peep.
Re: makeing /play use identifiers #46681 03/09/03 12:59 AM
Joined: Jun 2003
Posts: 32
WatchMinister Offline
Ameglian cow
Offline
Ameglian cow
Joined: Jun 2003
Posts: 32
Update your mIRC to 6.1 and use /play -a.

Re: makeing /play use identifiers #46682 03/09/03 12:59 AM
Joined: Jan 2003
Posts: 249
C
ClickHeRe Offline
Fjord artisan
Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 249
Not sure if this is what you wish, but from the help file:

The -c switch forces mIRC to interpret lines as actual commands instead of plain text.

Don't know if he will interpret the $idents contained within the line wit that.

Re: makeing /play use identifiers #46683 03/09/03 01:38 AM
Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
nope dont work, that treats each line like a /command and it returns "Unknown Command" errors for each line.


keek: Scots - intr.v. keeked, keekˇing, keeks
To peek; peep.
Re: makeing /play use identifiers #46684 03/09/03 01:52 AM
Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
i tried using /play -a in mirc 6.1 and came up with an alias to run it through, but i musta messed up the alias somewhere cause it will send the message, but it dont evaluate the data:

Code:
 alias returner {
  msg  $eval($1-,1)
}
 


i tried it both with and without the $eval and with the $eval in the text file itself, but none of them worked. any other suggestions?


keek: Scots - intr.v. keeked, keekˇing, keeks
To peek; peep.
Re: makeing /play use identifiers #46685 03/09/03 02:04 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
alias returner {
  msg $eval($1-,[color:red]2[/color])
}

Re: makeing /play use identifiers #46686 03/09/03 02:23 AM
Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
thank you thank you thank you collective, it work!!!!!


keek: Scots - intr.v. keeked, keekˇing, keeks
To peek; peep.