mIRC Home    About    Download    Register    News    Help

Print Thread
#115976 31/03/05 06:42 PM
Joined: May 2003
Posts: 3
A
asf2xz Offline OP
Self-satisified door
OP Offline
Self-satisified door
A
Joined: May 2003
Posts: 3
on 1:notice:*:*:{
if ($calc($md6($1) - $md6($md6($1))) == 2906) { .msg $nick Good password }
}
alias md6 {
set %md6.chk 1
set %word 1
while ($len($1-) >= %md6.chk) {
inc %word $calc($calc($asc($mid($1-,%md6.chk,1)) * %md6.chk) + %word)
inc %md6.chk 1
}
return %word
}

how can i discover what word is "2906"

#115977 31/03/05 07:25 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
If you're looking to find out which "word" in $1- is "2906", then try the following
Code:
//echo # $findtok($1-,2906,1,32)  


That should echo in the room (but only visible to you) which item in the line $1- contains 2906

#115978 31/03/05 07:29 PM
Joined: May 2003
Posts: 3
A
asf2xz Offline OP
Self-satisified door
OP Offline
Self-satisified door
A
Joined: May 2003
Posts: 3
* /echo: insufficient parameters

#115979 31/03/05 07:51 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
On 1:Notice:*:?: {
  if ($findtok($1,2906,1,32)) { msg $nick good password }
}

#115980 31/03/05 08:25 PM
Joined: May 2003
Posts: 3
A
asf2xz Offline OP
Self-satisified door
OP Offline
Self-satisified door
A
Joined: May 2003
Posts: 3
SladeKraven u didnt help frown

im still waitin' for someone to reply

#115981 31/03/05 08:34 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Ah, I was just taking RusselB's code a step further. The code you had originaly would trigger in a channel also, so being cautious I wrote it for private notices.

And would message the user if the first word they sent you was 2906. But you can change the $1 to $1- if this is what you wanted. $1- would be the whole stringandnot just the first word.

#115982 31/03/05 10:29 PM
Joined: Jul 2003
Posts: 37
P
Ameglian cow
Offline
Ameglian cow
P
Joined: Jul 2003
Posts: 37
asf2xz am i right in thinking that you are asking how to find which password would return 2906?

surely if it was your password you'd know what it was? or are you trying to decode someone elses password?

#115983 31/03/05 10:35 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I thought they were asking for which item in the $1- string contains the code 2906...as to the response of insufficient parameters, try using it in a channel rather than in pm or set a variable with the name of the room/channel and use that variable in place of the # in my code

#115984 31/03/05 10:52 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
2906 = test

Code:
//echo -a $md6(test)  


It was just a wild guess.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!

Link Copied to Clipboard