mIRC Homepage
Posted By: Want Replacing Text with Another - 27/04/04 03:12 AM
ok im making a encoder/decoder and now i need to know how to replace the incoming encrypted text from somebody to just dispay the decode and nothing else here is an example
right now it does this:

<TheGreatPope> 31173 >21~ 1~ 9 >5~> 4%* >25 <1*7 <5~~935 8%9*6
<TheGreatPope@Decoded> this is a test for the mirc message board

I want it to just display this:

<TheGreatPope@Decoded> this is a test for the mirc message board

Anybody got any ideas or suggestions? mirc 6.14
Posted By: Wolfie Re: Replacing Text with Another - 27/04/04 04:52 AM
Code:
on ^*:TEXT:*:*:{
  (insert code here)
  haltdef
}


The ^ allows you to use haltdef to "halt" the "default" text output
The best way you should do it is to make it check if it's encoded text, and if so, then "haltdef" after it echos the decoded text
but if not, then do NOT haltdef

smile
Posted By: Want Re: Replacing Text with Another - 27/04/04 05:09 AM
thanks for the advice ill try it and yes it looks for 31173 for decoding so i should be set
Posted By: Wolfie Re: Replacing Text with Another - 27/04/04 05:23 AM
In that case...
Code:
on ^*:TEXT:*:*:{
  if ( $1 != 31173 ) { return }
  haltdef
  ...code here to decode the text and echo it...
}
© mIRC Discussion Forums