|
biocdkt Newbie
Joined: 08 Aug 2003 Posts: 8 Location: USA
|
Posted: Fri Aug 08, 2003 8:27 am
Brute Force Door Script |
Trying to find a door name, that's hidden from echos by "bumping" into the wall where the door is.
Thinking about starting script with "open @scriptBruteForceDoor"
Where at the starting of the script
#VAR scriptBruteForceDoor a
which echos "I see no a here."
then go "#AD scriptBruteForceDoor 1"
However that just changes the variable to "a1"
Then thought about making another database variable
where a=1, b=2, etc... However this is a very long zmud script.
Any ideas on how to do this script would be greatly appriciated. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Aug 08, 2003 1:41 pm |
Use your own idea. The only way to go through the alphabet in order is to use an ordered listing of the letters. Your method will do that.
|
|
|
|
Tarn GURU
Joined: 10 Oct 2000 Posts: 873 Location: USA
|
Posted: Fri Aug 08, 2003 7:26 pm |
%char(i) will give you the character for an ascii number. Then you can keep your loops as numbers and build up a string.
65-90 is the capital letters A-Z.
Lowercase runs 97-122
BTW, even all lowercase your approach may not be feasible for more than a few letters- 26^5 = 11,881,376 which would be 4.5 months at 1 sec/try for every 5 letter combination.
If you know that it's real words, download a dictionary file and read from that.
-Tarn |
|
|
|
biocdkt Newbie
Joined: 08 Aug 2003 Posts: 8 Location: USA
|
Posted: Sat Aug 09, 2003 4:19 am |
lol, didn't think about that time thing :) hehe
ty for the info. I think I'll try the dictionary idea. |
|
|
|
|
|