Inventory: bound items that refuse sale, drop, trade and use can never be removed

未关闭
#4,900 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
go
领域
backend

调研方向

Start by tracing the server-side inventory actions for sale, drop, trade, and use, then check how item permissions and equipped, rent, or summon states are represented. Decide with the owner which disposal lane to implement and how to prevent accidental deletion; done means stuck bound items can be removed safely, with confirmation and the stated restrictions covered.

由索引模型根据 Issue 内容生成。

描述

Problem

An item can reach a state where every exit from the bag refuses it, and the game has no delete/destroy action at all. The item then occupies its slot forever, and staff have no removal tool either.

Player reports (Discord #general, 2026-11-29/30):

  • vindalo_: mall items he "cannot sell or delete or use", including a storage expansion scroll he could buy but not use.
  • alexmercer0451: three spare Devil's Spirits from unique kills. The Spirit is bound by design (earned, not bought), so trade/stall/sale/drop all refuse — and the spares have no sink and no way out.

Why each exit refuses

  • NPC sale requires the item row's sale permission; bound rows clear it.
  • Ground drop is barred for untradeable items even when the row itself allows dropping.
  • Exchange, stall and the market require the item to be tradeable.
  • Use requires a working handler for the item.

Bound-by-design rows (earned Spirits, honor-style goods, many mall rows) refuse all four. This is a growing class, not a one-off: every new bound reward adds potential permanent bag occupants (duplicates especially).

What is needed

A disposal lane for bound items. Shapes to weigh:

  1. A destroy action (e.g. drag out of the bag or a confirm dialog) that deletes the item server-side. Needs care: never for tradeable goods by accident, never rent/summon/equipped rows, and a confirm that names the item.
  2. Let merchants buy bound items for 0 gold. Smallest change, reuses the sale lane, but changes the meaning of the sale flag.
  3. Treat dropping a bound item as destroying it instead of spawning a ground item (a ground spawn no one may pick up is a leak of a different shape).
  4. Interim: a staff-side removal tool (the operator grant tooling only adds items today), so support can clear a named stuck item from a named character.

Scope and shape are the owner's call; (4) is worth having regardless, since it is the only answer for items already stuck.

Notes

  • The storage-expansion "bought but cannot use" half of vindalo_'s report is a separate question (the use lane exists and is tested); this issue is the common tail: whatever the reason an item is unusable, there is no way to be rid of it.
  • Behavioural description only; no native claim is made about a destroy feature — the original client's inventory has the same four exits, so any destroy lane is port-only and needs the usual off-by-default treatment if it changes native behaviour.
主要语言
Go
星标
97
派生
61
平均合并
3 小时 59 分钟
30 天内合并 PR
966

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

opensro-dev/opensro 的其他 Issue

查看 opensro-dev/opensro 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。