Skip to content

Rework loot chests: key opens for 15 minutes, nothing stays inside - #371

Merged
skittles1 merged 1 commit into
OpenMeridian105:developfrom
Arantis:lootchest-fixes
Nov 6, 2026
Merged

skittles1 merged 1 commit into
OpenMeridian105:developfrom
Arantis:lootchest-fixes

Conversation

@Arantis

@Arantis Arantis commented Nov 6, 2026

Copy link
Copy Markdown

Rework loot chests

Replaces the entry limit from the previous fix.

New behaviour

  • A key of the matching colour fills the chest and opens it for 15 minutes.
  • When the time runs out, the chest closes and everything inside is deleted. A locked chest is always empty.
  • Players can't put items into a loot chest.
  • An open chest doesn't use up another key.
  • The description shows the time left (DE + EN), using the same time text as spells and quests. The capacity line is gone for loot chests.

Security
Items could be taken from a locked chest without a key, because only the object flag blocked it. With a description window left open, the classic client could still reach the items. Locked loot chests are now empty, and taking from them is refused on the server.

Other chests using pbLocked (bandit cave, golem dungeon, marcry3a, ratcave2, necromancer chest) are not changed.

Run once after the update
Existing chests still hold their old items, so empty them once:

send class LootChest DeleteHolding

A key now fills the chest and opens it for 15 minutes. When the time runs
out the chest closes and deletes everything inside, so a locked chest is
empty and replaces the limit on entries.

Players can't put items in, nothing can be taken while it is locked, and an
open chest doesn't use up another key. The description shows the time left.

Existing chests still hold their old items, so run this once after the
update: send class LootChest DeleteHolding
@skittles1 skittles1 added this to the 3.0.8 milestone Nov 6, 2026
@skittles1
skittles1 merged commit 9e375b9 into OpenMeridian105:develop Nov 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants