查看“︁Lua接口/服务端函数索引/任务配置查询”︁的源代码
来自天龙知识库
←
Lua接口/服务端函数索引/任务配置查询
跳到导航
跳到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
__NOTOC__ <div class="lua-reference" style="max-width:1200px;margin:0 auto;line-height:1.8;color:#29343a;font-family:Arial,'Microsoft YaHei',sans-serif;letter-spacing:0;overflow-wrap:anywhere;"> [[首页|首页]] · [[Lua接口/服务端函数索引|服务端接口]] · [[Lua接口/服务端调用约定|调用约定]] <div style="padding:14px 0;border-top:3px solid #287568;">任务配置查询:32 个接口,32 个调用名称。</div> {| class="wikitable" style="width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px;" ! scope="col" style="text-align:left;background:#edf3f2;padding:8px;width:36%;" | 函数 / 别名 ! scope="col" style="text-align:left;background:#edf3f2;padding:8px;" | 调用与用途 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/GetNextMissionIndex|GetNextMissionIndex]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">GetNextMissionIndex(missionIndex)</code><br />返回当前配表任务指向的下一任务索引。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TAddNumText|TAddNumText]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TAddNumText(sceneId, id, msg, state, index, issueScript)</code><br />向扩展任务缓冲写入编号、状态、索引、发布脚本和文本。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TAddText|TAddText]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TAddText(sceneId, msg)</code><br />向扩展任务缓冲写入一条纯文本。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TBeginEvent|TBeginEvent]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TBeginEvent(sceneId)</code><br />开始构造扩展任务事件列表,只重置当前使用数量。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TDispatchEventList|TDispatchEventList]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TDispatchEventList()</code><br />当前为空实现,调用不会派发扩展任务对话。<br />'''空实现''' |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TEndEvent|TEndEvent]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TEndEvent()</code><br />结束扩展任务事件构造;不执行额外操作。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetAcceptNpcInfo|TGetAcceptNpcInfo]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetAcceptNpcInfo(missionIndex)</code><br />返回接取 NPC 的场景编号和名称。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetAwardExp|TGetAwardExp]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetAwardExp(missionIndex)</code><br />返回任务固定经验奖励,未找到时为 -1。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetAwardItem|TGetAwardItem]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetAwardItem(missionIndex)</code><br />返回五组固定奖励物品,总计 11 个数值。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetAwardMoney|TGetAwardMoney]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetAwardMoney(missionIndex)</code><br />返回任务固定金钱奖励,未找到时为 0。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetCheckInfo|TGetCheckInfo]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetCheckInfo(missionIndex)</code><br />返回任务等级限制和三个前置任务索引。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetCompleteNpcInfo|TGetCompleteNpcInfo]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetCompleteNpcInfo(missionIndex)</code><br />返回完成 NPC 的场景编号和名称。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetDefaultDesc|TGetDefaultDesc]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetDefaultDesc(missionIndex)</code><br />返回 Lua 默认任务在 NPC 上使用的第一段说明。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetDuologue|TGetDuologue]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetDuologue(sceneId, duologueIndex)</code><br />按对白索引返回 StorytellingDuologue.txt 中的完整文本。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetEnterAreaDesc|TGetEnterAreaDesc]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetEnterAreaDesc(missionIndex)</code><br />返回进入区域任务是否有说明、区域说明和提示文本。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetEnterAreaInfo|TGetEnterAreaInfo]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetEnterAreaInfo(missionIndex)</code><br />返回进入区域任务的数量及三组场景区域、事件区域。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetHideItem|TGetHideItem]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetHideItem(missionIndex)</code><br />返回三组隐藏奖励物品,总计 7 个数值。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetHusongAIType|TGetHusongAIType]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetHusongAIType(missionIndex)</code><br />返回护送任务 NPC 的 AI 类型。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetHusongPatrolPath|TGetHusongPatrolPath]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetHusongPatrolPath(missionIndex)</code><br />返回护送任务的巡逻路径编号。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetKillInfo|TGetKillInfo]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetKillInfo(missionIndex)</code><br />返回击杀任务的类型数和五组怪物名称、击杀数量。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetLimitedTimeInfo|TGetLimitedTimeInfo]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetLimitedTimeInfo(missionIndex)</code><br />返回限时任务的位置、持续时间及说明。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetLootItemInfo|TGetLootItemInfo]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetLootItemInfo(missionIndex)</code><br />返回收集物品任务的五组怪物和掉落参数。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetMissionDesc|TGetMissionDesc]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetMissionDesc(missionIndex)</code><br />返回任务的四段正文描述。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetMissionIdByIndex|TGetMissionIdByIndex]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetMissionIdByIndex(missionIndex)</code><br />将任务表索引转换为任务编号。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetMissionName|TGetMissionName]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetMissionName(missionIndex)</code><br />返回任务表首段显示文本,未找到时返回空串。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetRadioItem|TGetRadioItem]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetRadioItem(missionIndex)</code><br />返回五组随机奖励物品,总计 11 个数值。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetRelationShipAwardInfo|TGetRelationShipAwardInfo]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetRelationShipAwardInfo(missionIndex)</code><br />返回关系奖励位置、数值及说明。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetRelationShipPunishInfo|TGetRelationShipPunishInfo]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetRelationShipPunishInfo(missionIndex)</code><br />返回关系惩罚位置、数值及说明。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetSongXinInfo|TGetSongXinInfo]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetSongXinInfo(missionIndex)</code><br />返回送信任务的物品数量和五组三字段物品参数。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TGetTargetNpcInfo|TGetTargetNpcInfo]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TGetTargetNpcInfo(missionIndex)</code><br />返回送信或护送任务的目标 NPC 信息。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TIsHaveContinue|TIsHaveContinue]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TIsHaveContinue(missionIndex)</code><br />返回送信任务是否包含继续对话步骤。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/TIsMissionRoundable|TIsMissionRoundable]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TIsMissionRoundable(missionIndex)</code><br />返回任务是否允许循环完成;进入区域和护送任务固定返回 0。 |} </div>
返回
Lua接口/服务端函数索引/任务配置查询
。
导航菜单
页面操作
页面
讨论
阅读
查看源代码
历史
页面操作
页面
讨论
更多
工具
个人工具
创建账号
登录
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
搜索
工具
链入页面
相关更改
页面信息