mIRC Home    About    Download    Register    News    Help

Print Thread
#20967 26/04/03 03:21 PM
S
SaintDogbert
SaintDogbert
S
OK.. I don't want mIRC to parse the $3, $null, $4, etc
Here's the code in my script:
Code:
on 10:text:$ cmdsearch *:#:{
  notice $nick Search Results:
  var %search = 1
  while (%search <= $lines(additional.mrc)) {
    if ($3 isin $read(additional.mrc,%search)) { NOTICE $nick read(additional.mrc,%search) }
    inc %search
  }
  notice $nick Done Displaying Results.
}

Allright.. i type $ cmdsearch say
and here's what i get:
Code:
-Ratbert- Search Results:
-Ratbert- on 10:text:$ quit*:#:{ if ($3 != quit Requested by IDS|SaintDogbert. (say) | quit | else quit Requested by IDS|SaintDogbert.
-Ratbert- on 3:text:$ say *:#:{ msg #underground-tavern say
-Ratbert- on 8:text:$ kick*:#:{ if ($4 != kick #underground-tavern say Requested by IDS|SaintDogbert. () | else kick #underground-tavern say Requested by IDS|SaintDogbert.
-Ratbert- Done Displaying Results.

Here's what the first on 10 blah blah line REALLY says:
Code:
on 10:text:$ quit*:#:{ if ($3 != $null) { quit Requested by $nick $+ . ( $+ $3- $+ ) | quit } | else { quit Requested by $nick $+ . } }

how can i make Ratbert (the script) notice what the line actually says, including the $3 and $null.. instead of actually parsing the mIRC commands? :-/

Thanks
--SaintDogbert

#20968 26/04/03 03:47 PM
T
theRat
theRat
T
/help $eval

#20969 26/04/03 04:01 PM
S
SaintDogbert
SaintDogbert
S
Code:
NOTICE $nick $eval($read(additional.mrc,%search),1)


doesn't work either :-/

#20970 26/04/03 04:11 PM
Joined: Dec 2002
Posts: 698
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 698
$read(additional.mrc,n,%search)

#20971 26/04/03 04:12 PM
S
SaintDogbert
SaintDogbert
S
nimue.. do i do the eval AND the thing you said or just the thing you said?

btw %search IS the line number

#20972 26/04/03 04:16 PM
Joined: Dec 2002
Posts: 698
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 698
No, just use the n switch.

/help $read
...
If the n switch is specified then the line read in will not be evaluated and will be treated as plain text.

#20973 26/04/03 04:41 PM
S
SaintDogbert
SaintDogbert
S
Thank you SOOO much laugh

#20974 26/04/03 04:48 PM
Joined: Dec 2002
Posts: 698
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 698
NP
You can cut down on some of those read's
Code:
on 10:text:$ cmdsearch *:#:{
  var %search = 1,%lines = $lines(additional.mrc)
  notice $nick Search Results:
  while %search <= %lines {
    var %a = $read(additional.mrc,n,%search)
    if $3 isin %a { NOTICE $nick %a }
    inc %search
  }
 notice $nick Done Displaying Results.
}


Link Copied to Clipboard