[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Snippet request
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Snippet request

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Asean Novari   USA  (82 posts)  [Biography] 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.



[Go to top] top

Posted by Nick Cash   USA  (626 posts)  [Biography] 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
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] 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
[Go to top] top

Posted by Samson   USA  (683 posts)  [Biography] 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.

SmaugMuds.org: http://www.smaugmuds.org - The Smaug MUDs Community Center

"The past was erased, the erasure was forgotten, the lie became truth." -- George Orwell, 1984
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] 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
[Go to top] top

Posted by Samson   USA  (683 posts)  [Biography] 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.

SmaugMuds.org: http://www.smaugmuds.org - The Smaug MUDs Community Center

"The past was erased, the erasure was forgotten, the lie became truth." -- George Orwell, 1984
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] 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
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] 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
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] 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
[Go to top] 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.


5,530 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]