mIRC Homepage
Posted By: Omnipotent Text Script Help - 13/08/04 01:04 AM
Hey,
I dont even know if this CAN be done but I want to know how to make (or whrere to get haha) a text changing script. Like If I type 'Bow down before your master' it shows up in the channel as 'ßÓW dÓWÑ ßefÓRÊ ÝÓuR MâSTÊR' bot not like an aliasess' like '/Bow /msg # ßÓW dÓWÑ ßefÓRÊ ÝÓuR MâSTÊR' but would work with everything I type.

Do you kinda get what Im saying or should I explain it more?
Posted By: tidy_trax Re: Text Script Help - 13/08/04 01:09 AM
Code:
on *:input:*:{
  if ($1- == bow down before your master) {
    say ßÓW dÓWÑ ßefÓRÊ ÝÓuR MâSTÊR'
    halt
  }
}


Paste the code from here to wordpad, then from wordpad to mIRC.
Posted By: ShinZon Re: Text Script Help - 13/08/04 01:11 AM
for such script you would need to define every word or letter to change itz appearence on type

i can only give you this:

ON 1:INPUT:#:{ if ($1 == Bow down before your master) { msg $chan ßÓW dÓWÑ ßefÓRÊ ÝÓuR MâSTÊR }

Posted By: Omnipotent Re: Text Script Help - 13/08/04 01:13 AM
Hmmm...ok would it work like:

on *:input:*:{ if ($1- == a {
say â
halt }
}


on *:input:*:{ if ($1- == b {
say ß
halt }
}


and then the same fo c...d...e..f..g...h...etc and then if i typed anything itd work, cuz thats what im looking for, sorry if i wasnt too clear...
Posted By: tidy_trax Re: Text Script Help - 13/08/04 01:15 AM
on *:input:*:{
say $replace($1-,a,â,b,ß)
halt
}
Posted By: FiberOPtics Re: Text Script Help - 13/08/04 01:22 AM
Hi,

create a custom alias like this: alias weirdtext return $replace($$1,b,ß,e,Ê,....)

Then you can transform any text by using the alias. For example:: //echo -a $weirdtext(this is text that will be converted)

You can then use this in an ON INPUT event like:

on *:INPUT:#:{
if /* iswm $$1 || $ctrlenter || $inpaste { return }
say $weirdtext($1-)
haltdef
}

Btw you could make a switch to enable/disable the weirdtext alias, and then incorporate this into the script.

E.g.: if %weirdtext == on { haltdef | say $weirdtext($1-) }


You get the picture.


Greets
© mIRC Discussion Forums