Lua接口/服务端函数索引/好友与师徒:修订间差异
来自天龙知识库
跳到导航跳到搜索
维护服务端 Lua 接口:核对参数、返回值、边界条件与调用示例 |
维护服务端 Lua 接口:核对参数、返回值、边界条件与调用示例 |
||
| 第87行: | 第87行: | ||
|- | |- | ||
| [[Lua接口/服务端/LuaFnIsFriend|LuaFnIsFriend]] | | [[Lua接口/服务端/LuaFnIsFriend|LuaFnIsFriend]] | ||
| <code>LuaFnIsFriend(sceneId, selfId, friendID)</code><br />判断 selfId 和 friendID 是否为好友<br /><span class="lua-muted">脚本中 | | <code>LuaFnIsFriend(sceneId, selfId, friendID)</code><br />判断 selfId 和 friendID 是否为好友<br /><span class="lua-muted">脚本中 49 处调用</span> | ||
|- | |- | ||
| [[Lua接口/服务端/LuaFnIsMarried|LuaFnIsMarried]] | | [[Lua接口/服务端/LuaFnIsMarried|LuaFnIsMarried]] | ||
2026年9月19日 (六) 23:59的最新版本
好友与师徒:43 个接口,43 个调用名称,其中 41 个在当前脚本中有调用。
| 函数 / 别名 | 调用与用途 |
|---|---|
| LuaAddPrenticeProExp | LuaAddPrenticeProExp(sceneId, selfId, guidPrentice, nExp)增加师傅可领取的徒弟贡献储备经验。 脚本中 3 处调用 |
| LuaFnAgreeSwear | LuaFnAgreeSwear(sceneId, selfId, targetId)记录指定队友同意结拜。 脚本中 2 处调用 |
| LuaFnAllTeamSwear | LuaFnAllTeamSwear(sceneId, selfId)为当前队伍执行结拜。 脚本中 2 处调用 |
| LuaFnAprentice | LuaFnAprentice(sceneId, selfId, targetId)selfId 拜 targetId 为师 脚本中 1 处调用 |
| LuaFnBetrayMaster | LuaFnBetrayMaster(sceneId, selfId)叛师 脚本中 2 处调用 |
| LuaFnChangeJieBaiName | LuaFnChangeJieBaiName(sceneId, selfId)// 打开客户端结拜称号修改界面并返回现有称号。 脚本中 1 处调用 |
| LuaFnChuShiMail | LuaFnChuShiMail(sceneId, selfId)向当前人物的师傅发送出师通知邮件。 脚本中 1 处调用 |
| LuaFnDivorce | LuaFnDivorce(sceneId, selfId)单方面离婚 脚本中 2 处调用 |
| LuaFnDrawJieBaiName | LuaFnDrawJieBaiName(sceneId, selfId, nTeamCount)// 打开客户端结拜名称抽取界面,并告知当前队伍人数。 脚本中 1 处调用 |
| LuaFnExpAssign | LuaFnExpAssign(sceneId, selfId, nOpType)向客户端发送师徒储备经验领取界面的当前数据。 脚本中 2 处调用 |
| LuaFnExpelPrentice | LuaFnExpelPrentice(sceneId, selfId, PrenticeGUID)开除某个徒弟 脚本中 3 处调用 |
| LuaFnFinishAprentice | LuaFnFinishAprentice(sceneId, selfId, targetId)selfId 离开 targetId 师们,正式出师 脚本中 1 处调用 |
| LuaFnGetBrotherGuid | LuaFnGetBrotherGuid(sceneId, selfId, nIndex)按索引取得结拜兄弟的 GUID。 脚本中 1 处调用 |
| LuaFnGetFriendName | LuaFnGetFriendName(sceneId, selfId, friendGUID)得到 GUID 为 friendGUID 的好友的名字 脚本中 7 处调用 |
| LuaFnGetFriendPoint | LuaFnGetFriendPoint(sceneId, selfId, friendID)得到和 ID 为 friendID 的好友的友好度 脚本中 16 处调用 |
| LuaFnGetFriendPointByGUID | LuaFnGetFriendPointByGUID(sceneId, selfId, friendGUID)按好友 GUID 取得友好度。 脚本中 2 处调用 |
| LuaFnGetJieBaiName | LuaFnGetJieBaiName(sceneId, selfId)// 返回当前结拜称号;没有结拜称号时不压入返回值。 脚本中 1 处调用 |
| LuaFnGetMasterGUID | LuaFnGetMasterGUID(sceneId, selfId)得到师傅的 GUID 脚本中 3 处调用 |
| LuaFnGetmasterLevel | LuaFnGetmasterLevel(sceneId, selfId)取得当前角色的师傅等级。 脚本中 7 处调用 |
| LuaFnGetPrenticeBetrayTime | LuaFnGetPrenticeBetrayTime(sceneId, selfId)得到最后一次徒弟叛师的时间 脚本中未见调用 |
| LuaFnGetPrenticeCount | LuaFnGetPrenticeCount(sceneId, selfId)得要徒弟数量 脚本中 1 处调用 |
| LuaFnGetPrenticeGUID | LuaFnGetPrenticeGUID(sceneId, selfId, nIndex)按索引读取玩家徒弟的角色 GUID。 脚本中 3 处调用 |
| LuaFnGetSpouseGUID | LuaFnGetSpouseGUID(sceneId, selfId)得到配偶的 GUID 脚本中 26 处调用 |
| LuaFnHaveMaster | LuaFnHaveMaster(sceneId, selfId)判断 selfId 是否有师傅 脚本中 8 处调用 |
| LuaFnIfAllTeamAgreeSwear | LuaFnIfAllTeamAgreeSwear(sceneId, selfId)判断当前队伍成员是否已经全部同意结拜。 脚本中 2 处调用 |
| LuaFnIsBrother | LuaFnIsBrother(sceneId, selfId, targetId)判断 targetId 是否是 selfId 的结拜兄弟 脚本中 8 处调用 |
| LuaFnIsFriend | LuaFnIsFriend(sceneId, selfId, friendID)判断 selfId 和 friendID 是否为好友 脚本中 49 处调用 |
| LuaFnIsMarried | LuaFnIsMarried(sceneId, selfId)判断调用者是否已婚 脚本中 26 处调用 |
| LuaFnIsMaster | LuaFnIsMaster(sceneId, selfId, targetId)判断 targetId 是否是 selfId 的师傅 脚本中 14 处调用 |
| LuaFnIsMasterEver | LuaFnIsMasterEver(sceneId, selfId, targetId)判断目标是否曾作为当前人物的师傅,不受出师任务标志影响。 脚本中 6 处调用 |
| LuaFnIsPrentice | LuaFnIsPrentice(sceneId, selfId, targetId)判断 targetId 是否是 selfId 的徒弟 脚本中 3 处调用 |
| LuaFnIsSpouses | LuaFnIsSpouses(sceneId, selfId, targetId)判断 selfId 和 targetId 是否是夫妻 脚本中 7 处调用 |
| LuaFnIsSweared | LuaFnIsSweared(sceneId, selfId)判断当前人物是否已经结拜。 脚本中 7 处调用 |
| LuaFnMarry | LuaFnMarry(sceneId, selfId, spouseId, nWeddingType)sceneId 和 spouseId 结为夫妻 脚本中 2 处调用 |
| LuaFnSetFriendPoint | LuaFnSetFriendPoint(sceneId, selfId, friendID, nFriendPoint)设置 selfId 与 friendID 的友好度为 friendPoint 脚本中 2 处调用 |
| LuaFnSetFriendPointByGUID | LuaFnSetFriendPointByGUID(sceneId, selfId, friendGUID, nFriendPoint)设置 selfId 与 friendGUID 的友好度为 friendPoint 脚本中 4 处调用 |
| LuaFnSetmasterLevel | LuaFnSetmasterLevel(sceneId, selfId, nMasterLevel)设置当前角色的师傅等级并标记关系数据为脏。 脚本中 1 处调用 |
| LuaFnTeamSnapshort | LuaFnTeamSnapshort(sceneId, selfId)// 保存队伍成员快照,供结拜确认阶段校验队伍是否发生变化。 脚本中 2 处调用 |
| LuaFnUnMarry | LuaFnUnMarry(sceneId, selfId, spouseId)sceneId 和 spouseId 离婚 脚本中 1 处调用 |
| LuaFnUnswear | LuaFnUnswear(sceneId, selfId, guid)解除与指定 GUID 的结拜关系。 脚本中 2 处调用 |
| LuaFnVerifyTeamWithSnapshort | LuaFnVerifyTeamWithSnapshort(sceneId, selfId)// 核对当前队伍与之前保存的结拜队伍快照。 脚本中 1 处调用 |
| LuaGetPrenticeSupplyExp | LuaGetPrenticeSupplyExp(sceneId, selfId)取得师傅当前可领取的徒弟贡献储备经验。 脚本中 3 处调用 |
| LuaGetProfMasterExp | LuaGetProfMasterExp(sceneId, selfId)取得徒弟尚未结算给师傅的职业师傅经验。 脚本中未见调用 |