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.
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.
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.
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.
Ahhh, a version change is required correct? I didn't do one.
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.
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.
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?
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.