-
Notifications
You must be signed in to change notification settings - Fork 19
新增 查询背包 功能 #140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
新增 查询背包 功能 #140
Conversation
在群里输入 /查询背包 玩家名字 即可查询对应玩家背包内容 适用于服主懒得上线就能查询到玩家背包里东西有什么,也可以通过此方式间接判断玩家有没有通过游戏漏洞非法获得大量物品 支持名字自动匹配 支持本地化翻译(翻译失败则回退原文) 支持输出物品附魔属性等
|
Here's the code health analysis summary for commits Analysis Summary
|
群服互通云链版/__init__.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use sub-sub function here is bad, and also what s is?
群服互通云链版/__init__.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use sub function here is bad, should change.
群服互通云链版/__init__.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sub-sub function here is bad, should change.
群服互通云链版/__init__.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This translate is not reliable, you better gen a map that can find chinese name by item command id.
群服互通云链版/__init__.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe here no need or []
群服互通云链版/__init__.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, you better use if len(lines) == 0 instead of if not lines.
so that's why i dislike python, how can a list do a job that only bools can do?
also, replace 空 to 该玩家背包中没有物品
群服互通云链版/__init__.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| lines.append(f"- [{idx}] {name} x {cnt} (数据:{aux}; 附魔:{ench_text})") | |
| lines.append(f"\t- [{idx}] {name} x {cnt} (数据: {aux}; 附魔: {ench_text})") |
群服互通云链版/__init__.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| self.sendmsg(self.linked_group, f"玩家名字:{target.name}\n背包物品:\n{text}") | |
| self.sendmsg(self.linked_group, f"玩家 {target.name} 的背包信息如下: \n{text}") |
群服互通云链版/__init__.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you remove do_remove_cq_code=True?
群服互通云链版/__init__.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "获取对方背包内物品,并输出在群里", | |
| "获取对方背包内物品, 并输出在群里", |
群服互通云链版/__init__.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if not matches: | |
| if len(matches) == 0: |
新增插件 无邪玩家互传
与机器人审查斗智斗勇中
- 新增图片输出玩家背包功能 - 优化原来的实现 - 新增内部物品ID映射表 - 内置部分物品材质贴图用于渲染显示
|
I will work on this issue after I finish my own things. |
在群里输入 /查询背包 玩家名字 即可查询对应玩家背包内容
适用于服主懒得上线就能查询到玩家背包里东西有什么,也可以通过此方式间接判断玩家有没有通过游戏漏洞非法获得大量物品 支持名字自动匹配
支持本地化翻译(翻译失败则回退原文)
支持输出物品附魔属性等