mIRC Home    About    Download    Register    News    Help

Print Thread
#143344 23/02/06 02:13 PM
Joined: Oct 2005
Posts: 126
P
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Oct 2005
Posts: 126
Well, i've been trying to find a decode command, but i didn't find it anywhere... mad

-

What i actually need is a "decode command" ... Like this:

!decode (3984Zazuriu83488) ... then my bot answers the "real text" ...

-

also:
!code Hi, i'm phyxius

Then the bot will change "Hi, i'm phyxius" to "eoe3839za" ... like that.
-
Can someone help me with this? crazy confused

#143345 23/02/06 05:00 PM
S
schaefer31
schaefer31
S
The answer is closer than you think.

/help $encode
/help $decode

#143346 24/02/06 04:13 PM
C
Crash_N_Burn
Crash_N_Burn
C
mIRC allready have 2 indentifyers to do that!
they are:

$encode()

and

$decode()

First you need encode the line text you want, like this:

//echo -a $encode(Hello test)

when you press [ENTER] key, the echo command will return

*2&5L;&\@=&5S=```
this is the words "Hello test" encoded...
if you wanna decode the words we encoded you need use the $decode() identifier like this:

//echo -a $decode(*2&5L;&\@=&5S=```) , this is return the same words we talk about.

You can use some wilcards too, to modify or encodes/decodes your text, for that see the mIRC Help File.

Thats all

*

#143347 24/02/06 08:24 PM
Joined: Oct 2005
Posts: 126
P
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Oct 2005
Posts: 126
Couldn't u guys make that in "command" for me... I'm 100% newbie... & i don't really understand... I have ² learn from shown scripts... frown

#143348 24/02/06 09:30 PM
Joined: Feb 2006
Posts: 523
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 523
Code:
on $*:text:/^!(de|en)code ./i:#:msg # $$iif($1 == !encode,$encode($2-),$decode($2-))


i originally tried to be clever with $($ $+ $1( $2-),3) but realized that is exploitable frown


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
#143349 26/02/06 09:47 AM
Joined: Oct 2005
Posts: 126
P
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Oct 2005
Posts: 126
it aint working frown

#143350 26/02/06 09:51 AM
Joined: Oct 2005
Posts: 126
P
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Oct 2005
Posts: 126
Well, i made some changes to it by myself & now it's working... Not that much changes, but it's working now... Thankx wink

#143351 26/02/06 09:56 AM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
That code works fine.

If you're using mIRC 6.17, maybe the $decode() function is locked in the Options dialog.

It would say:

-
* Identifier locked in options dialog: $decode
-

-Andy


Link Copied to Clipboard