Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ Snippet request
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Asean Novari
USA (82 posts) Bio
|
Date
| Sat 05 Mar 2005 08:11 PM (UTC) |
Message
| Greetings.. its me again.. *Oh crap right?*
I am interested to know if anyone knows the code for a system
that allows a door to be locked numerically rather than with
a specified object..
ex. lock east 12345....
If anyone has something like this or knows where I could find this code I would appreciate it if you could tell me. |
| Top |
|
Posted by
| Nick Cash
USA (626 posts) Bio
|
Date
| Reply #1 on Sat 05 Mar 2005 09:17 PM (UTC) |
Message
| I recall there being a keypad lock snippet back on the FotE site (http://swfote.sourceforge.net). Go under the snippet section and it should get you hooked up, or at least give you a place to start. |
~Nick Cash
http://www.nick-cash.com | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #2 on Wed 11 May 2005 05:10 PM (UTC) |
Message
| I am also looking for the original Smaug keypad snippet by Riketsu. Not the SWR one. I had a recent issue (area corruption) with keypads and had to uninstall it. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Samson
USA (683 posts) Bio
|
Date
| Reply #3 on Wed 11 May 2005 09:27 PM (UTC) |
Message
| Just took a look at the SWR one on the FOTE site and I don't see anything in the code that would be specific to SWR or SWFOTE, so it should work just fine in plain Smaug too.
The only thing I see about it is that he added the keypad value in the middle of the list of numbers and didn't do a version hack to avoid corrupting old areas in the process. It would have been better to add the keypad value to the END of the fprintf and to the END of the scanf which reads it back in, then you don't need to worry about messing up areas in the existing formats. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #4 on Wed 11 May 2005 09:54 PM (UTC) |
Message
| Ahhh, a version change is required correct? I didn't do one. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Samson
USA (683 posts) Bio
|
Date
| Reply #5 on Thu 12 May 2005 12:32 AM (UTC) |
Message
| It's required if you want the order of the fields the same way he has them in the snippet. If you put the keypad value last, you won't need to do that. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #6 on Thu 12 May 2005 12:48 AM (UTC) |
Message
| Hmm I figured. But I'm not sure where to add it. In load_rooms, I'm sure, but at the end of the function? Do I use those x7 variables? I'm really not sure how to do this. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #7 on Fri 17 Jun 2005 05:29 PM (UTC) |
Message
| I tried reinstalling it (without AREA_VERSION update because another coder I know installed it the same way without a problem) and I had worse results. The pull type/amount was set randomly. Are we quite certain AREA_VERSION is needed? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #8 on Wed 25 Jan 2006 12:53 AM (UTC) |
Message
| I'm still attempting it now. I have a linux machine I can test it on, so I've been testing it lately. I still can't get it to work, it keeps (when saving the area) making exit distance and pull random numbers. If anyone could be a lot more direct on how to install this, that'd be great. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
22,622 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top