Lua接口/服务端函数索引/PK与声望

来自天龙知识库
雪舞留言 | 贡献2026年9月7日 (一) 19:16的版本 (整理当前服务端 Lua 接口:注册名称、参数、返回值与调用说明)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航跳到搜索

首页 · 服务端接口 · 调用约定

PK与声望:20 个接口,20 个调用名称。
函数 / 别名 调用与用途
AddPlayerInMyFightBackList AddPlayerInMyFightBackList(sceneId, selfId, playerGuid, continuance)
将指定玩家加入当前角色的反击列表。
AddPlayerInMyPersonalDuelList AddPlayerInMyPersonalDuelList(sceneId, selfId, playerGuid, continuance)
将指定玩家加入当前角色的个人决斗列表。
AddPlayerInMyPersonalEnemyList AddPlayerInMyPersonalEnemyList(sceneId, selfId, playerGuid, continuance)
将指定玩家加入当前角色的个人仇人列表。
GetPlayerPvpMode GetPlayerPvpMode(sceneId, selfId)
读取当前角色的 PVP 模式。
GetPvpAuthorizationFlagByID GetPvpAuthorizationFlagByID(sceneId, selfId, flagId)
读取指定编号的 PVP 授权标志。
GetReputationByID GetReputationByID(sceneId, selfId, reputationId)
读取指定编号的个人声望。
IncreaseReputationByID IncreaseReputationByID(sceneId, selfId, reputationId, reputation)
增加指定编号的个人声望。
IsInGuildWar IsInGuildWar(sceneId, selfId, targetId)
判断当前角色与目标角色是否处于帮会战争关系。
IsMyFightBackListFull IsMyFightBackListFull(sceneId, selfId)
查询当前角色的反击列表是否已满。
IsMyPersonalDuelListFull IsMyPersonalDuelListFull(sceneId, selfId)
查询当前角色的个人决斗列表是否已满。
IsMyPersonalEnemyListFull IsMyPersonalEnemyListFull(sceneId, selfId)
查询当前角色的个人仇人列表是否已满。
IsPlayerInMyFightBackList IsPlayerInMyFightBackList(sceneId, selfId, playerGuid)
查询指定玩家是否在当前角色的反击列表中。
IsPlayerInMyPersonalDuelList IsPlayerInMyPersonalDuelList(sceneId, selfId, playerGuid)
查询指定玩家是否在当前角色的个人决斗列表中。
IsPlayerInMyPersonalEnemyList IsPlayerInMyPersonalEnemyList(sceneId, selfId, playerGuid)
查询指定玩家是否在当前角色的个人仇人列表中。
RemovePlayerFromMyFightBackList RemovePlayerFromMyFightBackList(sceneId, selfId, playerGuid)
将指定玩家从当前角色的反击列表中移除。
RemovePlayerFromMyPersonalDuelList RemovePlayerFromMyPersonalDuelList(sceneId, selfId, playerGuid)
将指定玩家从当前角色的个人决斗列表中移除。
RemovePlayerFromMyPersonalEnemyList RemovePlayerFromMyPersonalEnemyList(sceneId, selfId, playerGuid)
将指定玩家从当前角色的个人仇人列表中移除。
SetPlayerPvpMode SetPlayerPvpMode(sceneId, selfId, pvpMode)
设置当前角色的 PVP 模式。
SetPvpAuthorizationFlagByID SetPvpAuthorizationFlagByID(sceneId, selfId, flagId, flag)
设置指定编号的 PVP 授权标志。
SetReputationByID SetReputationByID(sceneId, selfId, reputationId, reputation)
设置指定编号的个人声望。