Skip to content

Commit

Permalink
更新一波NPC和划船
Browse files Browse the repository at this point in the history
  • Loading branch information
boybook committed Feb 6, 2024
1 parent 050e35b commit dbec83f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
13 changes: 12 additions & 1 deletion ecnpc/hook.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "ECNPC行为钩子,用于定义NPC的特定行为和与玩家的交互",
"type": "array",
"items": {
"oneOf": [
"anyOf": [
{
"type": "string",
"enum": [
Expand All @@ -15,6 +15,9 @@
"scoretag-online"
]
},
{
"type": "string"
},
{
"type": "object",
"properties": {
Expand Down Expand Up @@ -412,6 +415,10 @@
"items": {
"type": "string"
}
},
"homeland": {
"type": "boolean",
"description": "统计家园系统的在线人数"
}
},
"required": [
Expand Down Expand Up @@ -497,6 +504,10 @@
"const": "hide-nametag",
"description": "对于中国版,默认隐藏NPC的名字标签,在玩家准心放在NPC上时显示"
},
"autoShow": {
"type": "number",
"description": "自动显示名字的距离,默认0表示不自动显示"
},
"distance": {
"type": "number",
"description": "显示后,再次隐藏距离,默认10",
Expand Down
29 changes: 29 additions & 0 deletions playeraction/playeraction.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,18 @@
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"const": "form.homeland",
"description": "打开家园系统UI"
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
Expand Down Expand Up @@ -593,6 +605,23 @@
"type",
"npcTag"
]
},
{
"type": "object",
"properties": {
"type": {
"const": "passcard",
"description": "打开通行证UI"
},
"id": {
"type": "string",
"description": "通行证ID,例如 s5"
}
},
"required": [
"type",
"id"
]
}
]
}

0 comments on commit dbec83f

Please sign in to comment.