Lua接口/服务端/DispatchRegieEventList:修订间差异
来自雪舞天龙知识库
跳到导航跳到搜索
维护服务端 Lua 接口:核对参数、返回值、边界条件与调用示例 |
维护服务端 Lua 接口:核对参数、返回值、边界条件与调用示例 |
||
| (未显示同一用户的6个中间版本) | |||
| 第1行: | 第1行: | ||
__NOTOC__ | __NOTOC__ | ||
<div class="lua-reference | <div class="lua-reference"> | ||
[[首页|首页]] · [[Lua接口/服务端函数索引|服务端接口]] · [[Lua接口/服务端函数索引/任务与对话|任务与对话]] · [[Lua接口/服务端调用约定|调用约定]] | [[首页|首页]] · [[Lua接口/服务端函数索引|服务端接口]] · [[Lua接口/服务端函数索引/任务与对话|任务与对话]] · [[Lua接口/服务端调用约定|调用约定]] | ||
<div | <div class="lua-lead lua-rule">向客户端返回该Npc可触发事件列表</div> | ||
== Lua 调用 == | == Lua 调用 == | ||
<pre | <pre>DispatchRegieEventList(sceneId, selfId, targetId)</pre> | ||
服务端脚本中未检索到该接口的调用点(已检索 | 服务端脚本中未检索到该接口的调用点(已检索 4419 个随包脚本)。 | ||
实现位于 <code | 实现位于 <code>LuaFnTbl_Mission.h</code>。 | ||
== 参数 == | == 参数 == | ||
{| class="wikitable | {| class="wikitable" | ||
! scope="col" | ! scope="col" class="lua-w11" | 序号 | ||
! scope="col" | ! scope="col" class="lua-w36" | 参数 / 类型 | ||
! scope="col | ! scope="col" | 说明 | ||
|- | |- | ||
| 1 | |||
| <code>sceneId</code><br /><span class="lua-muted"><code>number</code></span> | |||
| 当前调用所在的场景 ID。 | |||
|- | |- | ||
| 2 | |||
| <code>selfId</code><br /><span class="lua-muted"><code>number</code></span> | |||
| 当前场景内的对象 ID。玩家接口需传入有效玩家对象;不是角色 GUID。 | |||
|- | |- | ||
| 3 | |||
| <code>targetId</code><br /><span class="lua-muted"><code>number</code></span> | |||
| Npc编号 | |||
|} | |} | ||
| 第41行: | 第41行: | ||
可能: AddNumText<br /> | 可能: AddNumText<br /> | ||
EndEvent | EndEvent | ||
== 调用示例 == | |||
未检索到随包脚本中的真实调用。按上方参数表给出调用形态: | |||
<pre>local result = DispatchRegieEventList(sceneId, selfId, targetId)</pre> | |||
== 注意事项 == | == 注意事项 == | ||
2026年10月27日 (二) 12:31的最新版本
向客户端返回该Npc可触发事件列表
Lua 调用
DispatchRegieEventList(sceneId, selfId, targetId)
服务端脚本中未检索到该接口的调用点(已检索 4419 个随包脚本)。
实现位于 LuaFnTbl_Mission.h。
参数
| 序号 | 参数 / 类型 | 说明 |
|---|---|---|
| 1 | sceneIdnumber
|
当前调用所在的场景 ID。 |
| 2 | selfIdnumber
|
当前场景内的对象 ID。玩家接口需传入有效玩家对象;不是角色 GUID。 |
| 3 | targetIdnumber
|
Npc编号 |
返回值
无返回值。赋值接收时得到 nil;这与返回数字 0 不同。
用法补充
可触发事件由该npc的挂的事件OnEnumerate函数判断
如果玩家满足任务条件,通过AddNumText添加
BeginEvent
AddText
可能: AddNumText
EndEvent
调用示例
未检索到随包脚本中的真实调用。按上方参数表给出调用形态:
local result = DispatchRegieEventList(sceneId, selfId, targetId)
注意事项
- 调用对象必须是当前场景中的有效玩家。