• 注册后才能下载/购买插件!快来注册吧,注册即可免费下载 精翻插件 !【点我注册
  • RustSB.COM向广大野生Rust插件作者发出入驻邀请!详情请见[原创作者条约]
【XMRelationship·关系/师徒/宗门/造娃】

原创 【XMRelationship·关系/师徒/宗门/造娃】 1.1.56

API方法快速参考​

| 方法名 | 功能 | 参数 | 返回值 |

|--------|------|------|--------|


| HasRelationshipInTeam | 检查队伍中是否有关系的玩家 | playerIdString, relationshipType(可选) | bool |


| HasSpecificRelationship | 检查是否有指定关系 | playerIdString, relationshipType | bool |


| GetIntimacyLevel | 获取亲密度 | playerIdString, partnerIdString | int |


| DeductIntimacy | 扣除亲密度 | playerIdString, partnerIdString, amount, reason(可选) | bool |


| AddIntimacyLevel | 增加亲密度 | playerIdString, partnerIdString, amount, reason(可选) | bool |


| GetRelationshipPartnerNames | 获取指定关系类型的伙伴名称 | playerIdString, relationshipType | string |


| GetRelationshipBetweenPlayers | 获取两个玩家之间的关系信息 | playerIdString, targetIdString | string |


| GetAllRelationshipPartners | [新增] 获取玩家所有关系玩家列表 | playerIdString | string |


| GetPlayerGuildInfo | 获取玩家的帮派名称和等级 | playerIdString | string |


| CheckGuildFriendlyFire | 检查宗门友军保护状态 | playerIdString1, playerIdString2 | bool |


| AddPlayerGuildContribution | 为玩家增加个人帮派贡献度 | playerName, amount | bool |


| GetPlayerPersonalContribution | 获取玩家个人帮派贡献度 | playerIdString | int |


| GetGuildContributionItems | 获取宗门贡献物品列表 | guildName | string |


| DeductGuildContributionItem | 扣除宗门贡献物品 | guildName, itemShortName, itemSkin, amount | bool |


| GetGuildTerritoryPosition | 获取宗门领地位置 | guildName | string |


| GetGuildMemberIds | 获取宗门成员ID列表 | guildName | string |


| GetGuildDetailInfo | 获取宗门详细信息 | guildName | string |


| GetPlayerGuildRole | 获取玩家在宗门中的职位 | playerIdString, guildName | int |


| GetGuildCabinetPosition | 获取宗门内阁位置 | guildName | Vector3? |

Hook事件快速参考​


| Hook事件 | 触发时机 | 参数 |


|----------|----------|------|


| OnXMRelationshipBound | 玩家绑定关系时 | playerIdString, partnerIdString, playerRelationType, partnerRelationType |


| OnXMRelationshipUpgraded | 玩家升级关系时 | playerIdString, partnerIdString, oldPlayerRelationType, oldPartnerRelationType, newPlayerRelationType, newPartnerRelationType |


| OnXMRelationshipUnbound | 玩家解绑关系时 | playerIdString, partnerIdString, playerRelationType, partnerRelationType, intimacyLevel |


| OnXMRelationshipGuildLevelUp | 帮派升级时 | memberIdString, guildName, newGuildLevel |


| OnXMRelationshipGuildLevelDown | 帮派降级时 | memberIdString, guildName, newGuildLevel |


| OnXMRelationshipPlayerJoinGuild | 玩家加入帮派时 | playerIdString, guildName, guildLevel |


| OnXMRelationshipPlayerLeaveGuild | 玩家离开帮派时 | playerIdString, guildName, guildLevel |