Maybe a Stock Bug With Keys?
- zusuk
-
Topic Author
- Offline
- Elite Member
-
- LuminariMUD Developer
Less
More
6 months 4 weeks ago #10212
by zusuk
Website
www.luminariMUD.com
Main Game Port
luminariMUD.com:4100
Maybe a Stock Bug With Keys? was created by zusuk
We (our players) noticed that on locked doors with key num -1 you can unlock those doors by having a corpse (vnum -1) in your inventory.
I wanted to check if this is true for the stock code, I imagine that's not an intended way to open those particular doors.
If that is indeed a mistake, the problem is in act.movement.c around line 460 (has_key() function).
You can plop in something like this on top of that function:
*note this assumes corpses are actually vnum -1 in your game
I wanted to check if this is true for the stock code, I imagine that's not an intended way to open those particular doors.
If that is indeed a mistake, the problem is in act.movement.c around line 460 (has_key() function).
You can plop in something like this on top of that function:
if (key == -1) return (0);
*note this assumes corpses are actually vnum -1 in your game
Website
www.luminariMUD.com
Main Game Port
luminariMUD.com:4100
Please Log in or Create an account to join the conversation.
- thomas
-
- Offline
- Administrator
-
Less
More
- Posts: 816
- Thank you received: 159
6 months 4 weeks ago #10213
by thomas
Replied by thomas on topic Maybe a Stock Bug With Keys?
The following user(s) said Thank You: zusuk
Please Log in or Create an account to join the conversation.
Time to create page: 0.084 seconds