Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
biocdkt
Newbie


Joined: 08 Aug 2003
Posts: 8
Location: USA

PostPosted: 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.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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.
Reply with quote
Tarn
GURU


Joined: 10 Oct 2000
Posts: 873
Location: USA

PostPosted: 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
Reply with quote
biocdkt
Newbie


Joined: 08 Aug 2003
Posts: 8
Location: USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net