Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
缘起随身商店改版后,SHOP_OPENSHOP 仅提供商店模板 ID 和 nCustomEvent。自动卖出仍把旧 arg4 当作 NPC ID,导致确认后无法卖出。
本次只适配缘起:通过 GetShop(arg0).dwNpcID 获取交易 NPC ID,允许随身商店使用 0;商店不存在或 NPC ID 缺失时退出,并在确认卖出时再次核验。官方自动卖灰装状态改为读取 Normal/ShopPanel/Wnd_Right/CheckBox_AutoSell。保留原有开关、保护名单、物品过滤、数量计算和确认框;重制版沿用原逻辑。MY_ShareKnowledge 只使用 arg0,无需修改。
发布依赖:客户端必须先向插件环境导出 GetShop。该导出随产品库随身商店功能提交,预计 2026 年 11 月 30 日更新外网。请与客户端更新配套发布;提前发布到尚未导出 GetShop 的客户端会导致开店回调报错。产品库接口导出不包含在本 PR 中。
验证:
复现测试:从仓库根目录运行 lua !src-dist/tests/auto_sell.lua;可追加客户端 addonapi.lua 的路径以检查实际导出。