Welcome to the Builder Academy

Question Maybe a Stock Bug With Keys?

More
01 Nov 2022 17:08 #10212 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:
Code:
  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.

More
02 Nov 2022 21:40 #10213 by thomas
Replied by thomas on topic Maybe a Stock Bug With Keys?
Yes, this sounds like a bug.

I've created github.com/tbamud/tbamud/pull/113 and will test it out.
The following user(s) said Thank You: zusuk

Please Log in or Create an account to join the conversation.

Time to create page: 0.208 seconds