This is a bug I noticed awhile back but apperently forgot to post.
I wonder if someone could verify this.
I set a door to the "locked door" type, as per Xuri's guide. (I can't recall type number off of the top of my head). I didn't specify a more value for a key, I just wanted a locked door.
When my PC clicked on the door it says "You unlock the door and quickly lock it behind you" as if I had a key to it. Basically the locked doors are broken.
Can someone see if this occurs on their shard also?
[FIXED] Doors not locking?
- Xuri
- Site Admin
- Posts: 3704
- Joined: Mon Jun 02, 2003 9:11 am
- Location: Norway
- Has thanked: 48 times
- Been thanked: 8 times
- Contact:
Verified. As long as the door is of TYPE 13 (locked door), anyone can open it by doubleclicking on it.
I think the "You unlock the door and quickly lock it behind you" is intended for players who are carrying the key to their house, and for GMs that automatically unlock any doors they open.
I think the "You unlock the door and quickly lock it behind you" is intended for players who are carrying the key to their house, and for GMs that automatically unlock any doors they open.
-= Ho Eyo He Hum =-
-
giwo
- Developer
- Posts: 1780
- Joined: Fri Jun 18, 2004 4:17 pm
- Location: California
- Has thanked: 0
- Been thanked: 0
in doors.js
Replace this
with this
Let me know if you run into any issues, or that doesn't resolve the problem (I'm far too lazy to test it myself).
Replace this
Code: Select all
function FindKey( pUser, iUsed )
{
var foundKey = false;
var pPack = pUser.pack;
if( pPack != null )
foundKey = FindKeyInPack( pUser, pPack, iUsed );
return foundKey;
}
Code: Select all
function FindKey( pUser, iUsed )
{
var foundKey = false;
if( iUsed.more > 0 )
{
var pPack = pUser.pack;
if( pPack != null )
foundKey = FindKeyInPack( pUser, pPack, iUsed );
}
return foundKey;
}
Let me know if you run into any issues, or that doesn't resolve the problem (I'm far too lazy to test it myself).
Scott