|
|
Joined: May 2003
Posts: 3
Self-satisified door
|
OP
Self-satisified door
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"
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
If you're looking to find out which "word" in $1- is "2906", then try the following //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
|
|
|
|
Joined: May 2003
Posts: 3
Self-satisified door
|
OP
Self-satisified door
Joined: May 2003
Posts: 3 |
* /echo: insufficient parameters
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
On 1:Notice:*:?: {
if ($findtok($1,2906,1,32)) { msg $nick good password }
}
|
|
|
|
Joined: May 2003
Posts: 3
Self-satisified door
|
OP
Self-satisified door
Joined: May 2003
Posts: 3 |
SladeKraven u didnt help im still waitin' for someone to reply
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Jul 2003
Posts: 37
Ameglian cow
|
Ameglian cow
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?
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Mar 2005
Posts: 420
Fjord artisan
|
Fjord artisan
Joined: Mar 2005
Posts: 420 |
2906 = test It was just a wild guess.
If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
|
|
|
|
|
|