mIRC Home    About    Download    Register    News    Help

Print Thread
#68967 22/01/04 10:41 PM
Joined: Oct 2003
Posts: 37
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Oct 2003
Posts: 37
/msg $chan I have $100

it tries to evaluate the $100, how do I stop this...seems simple but I'm not finding it anywhere...

-eMpTy

#68968 22/01/04 10:43 PM
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
use $!100


http://MTec89Net.com
irc.freenode.net #MTec89Net
#68969 22/01/04 10:43 PM
Joined: Oct 2003
Posts: 273
E
EVH Offline
Fjord artisan
Offline
Fjord artisan
E
Joined: Oct 2003
Posts: 273
//msg $chan I have $!100

#68970 22/01/04 11:00 PM
Joined: Oct 2003
Posts: 37
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Oct 2003
Posts: 37
k sweet...next question...I'm reading the line from a text file with $read(blah,n,blah) so it's plain text...

then I tokenize it so it's in $3...then I want to echo $3 without evaluating any $s inside the $3...how do I do that?

-eMpTy

#68971 22/01/04 11:12 PM
Joined: Oct 2003
Posts: 273
E
EVH Offline
Fjord artisan
Offline
Fjord artisan
E
Joined: Oct 2003
Posts: 273
contents of my test.txt is $test $test

//tokenize 32 $read(test.txt,n) | echo -a Result: $1-

Result: $test $test

worked fine here

#68972 22/01/04 11:38 PM
Joined: Oct 2003
Posts: 37
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Oct 2003
Posts: 37
try in a script, msg $chan $1-

-eMpTy

#68973 22/01/04 11:44 PM
Joined: Oct 2003
Posts: 273
E
EVH Offline
Fjord artisan
Offline
Fjord artisan
E
Joined: Oct 2003
Posts: 273
alias test {
tokenize 32 $read(test.txt,n)
msg #mIRC $1-
}

I typed /test

[17:43] <@EVH> $test $test

and this even ..

on *:TEXT:!test:#mIRC: {
tokenize 32 $read(test.txt,n)
msg # $1-
}

[17:46] <@EVH> Cujo say !test
[17:46] <@Cujo> !test
[17:46] <@EVH> $test $test

Last edited by EVH; 22/01/04 11:50 PM.
#68974 22/01/04 11:53 PM
Joined: Oct 2003
Posts: 37
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Oct 2003
Posts: 37
the msg is part of a /scid $cid msg blah statement...must be the /scid...I fixed it by doing a $replace $ with $!

any other ideas? thanks for the quick replies btw

-eMpTy

#68975 23/01/04 12:00 AM
Joined: Oct 2003
Posts: 273
E
EVH Offline
Fjord artisan
Offline
Fjord artisan
E
Joined: Oct 2003
Posts: 273
Yep, that's what I had to do to get it to work with
the scid command too, so go with that I guess.

on *:TEXT:!test:#mIRC: {
tokenize 32 $read(test.txt,n)
scid $cid msg # $replace($1-,$,$+($chr(36),!))
}

[17:58] <@EVH> Cujo say !test
[17:58] <@Cujo> !test
[17:58] <@EVH> $test $test

Last edited by EVH; 23/01/04 12:07 AM.
#68976 23/01/04 12:10 AM
Joined: Oct 2003
Posts: 37
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Oct 2003
Posts: 37
setting it to a variable and doing $eval(%var,0) works too...

-eMpTy

Last edited by BIGeMpTy; 23/01/04 12:20 AM.

Link Copied to Clipboard