Lua接口/服务端函数索引/帮会城市
来自天龙知识库
帮会城市:38 个接口,38 个调用名称。
| 函数 / 别名 | 调用与用途 |
|---|---|
| CanCitySetAttr | CanCitySetAttr(sceneId, selfId, attrType)判断工资次数属性当前是否允许发起异步修改。 |
| ChangeCityMissonValue | ChangeCityMissonValue(sceneId, selfId, valueType, value)请求 WorldServer 修改所属城市任务管理器的剩余额度。 |
| CheckPlayerCanApplyCity | CheckPlayerCanApplyCity(sceneId, selfId)检查玩家是否满足申请城市的职位和资产条件。 |
| CityApply | CityApply(sceneId, selfId)向 World 请求当前可申请的城市入口组及其序号。 |
| CityBeginLevelUpBuilding | CityBeginLevelUpBuilding(sceneId, selfId, citySceneId)让指定城市进入建筑升级状态。 |
| CityBuildingChange | CityBuildingChange(sceneId, selfId, BuildingID, BuildingLevel)当前不允许通过此接口直接修改城市建筑等级,只记录错误。 不执行修改 |
| CityCancelLevelUpBuilding | CityCancelLevelUpBuilding(sceneId, selfId, citySceneId)当前只查询城市对象,不执行取消建筑升级操作。 无实际取消操作 |
| CityChangeAttr | CityChangeAttr(sceneId, selfId, attrType, attrChangedValue)增减城市或帮会属性,帮贡修改返回 1、-1 或无返回值。 |
| CityCreate | CityCreate(sceneId, selfId, citySceneId)建立基于入口在本场景的城市 |
| CityDelete | CityDelete(sceneId, selfId, citySceneId)删除此城市 |
| CityExistByIndex | CityExistByIndex(sceneId, selfId, portSceneId, cityIndex)判断入口场景指定序号的城市是否存在。 |
| CityGetAttr | CityGetAttr(sceneId, selfId, attrType)返回城市脚本属性。0-5 为六项帮会发展度,6 为个人帮贡,7 为帮会资金, |
| CityGetBuildingLevel | CityGetBuildingLevel(sceneId, selfId, citySceneId, buildingType)返回指定城市建筑的当前等级。 |
| CityGetCityName | CityGetCityName(sceneId, selfId, citySceneId)根据城市场景编号返回当前入口场景缓存的城市名称。 |
| CityGetMaintainStatus | CityGetMaintainStatus(sceneId, selfId, citySceneId)返回指定城市当前维护状态。 |
| CityGetNameByIndex | CityGetNameByIndex(sceneId, selfId, portSceneId, cityIndex)返回入口场景指定序号的城市占位名称。 |
| CityGetProgress | CityGetProgress(sceneId, selfId, citySceneId, progressType)返回指定城市对应类型的当前建设进度。 |
| CityGetSelfCityID | CityGetSelfCityID(sceneId, selfId)返回玩家所属城市场景编号。 |
| CityInBuildingLevelUp | CityInBuildingLevelUp(sceneId, selfId, citySceneId)判断指定城市是否正在升级建筑。 |
| CityInBuildingResearch | CityInBuildingResearch(sceneId, selfId, citySceneId)判断指定城市是否正在研究建筑技术。 |
| CityIncProgress | CityIncProgress(sceneId, selfId, citySceneId, progressType)通知 World 将指定城市进度增加一次。 |
| CityMoveTo | CityMoveTo(sceneId, selfId)更改城市中建筑属性 |
| CityMoveToPort | CityMoveToPort(sceneId, selfId)将玩家传送到当前城市场景对应的入口。 |
| CityMoveToScene | CityMoveToScene(sceneId, selfId, targetSceneId, posX, posZ)请求 World 将玩家传送到指定城市场景坐标。 |
| CitySetAttr | CitySetAttr(sceneId, selfId, attrType, attrValue)设置城市或帮会属性,实际修改由 WorldServer 完成。 |
| CitySetLevel | CitySetLevel(sceneId, selfId, citySceneId, arg4)当前不允许通过此接口直接修改城市等级,只记录错误。 不执行修改 |
| CitySuccessLevelUpBuilding | CitySuccessLevelUpBuilding(sceneId, selfId, citySceneId, buildingIndex, buildingLevel)通知 World 指定城市建筑升级成功。 |
| GetCityMissonValue | GetCityMissonValue(sceneId, selfId, missType, valueType)读取所属城市任务管理器中的控制值或剩余额度。 |
| GetFactionJoinTime | GetFactionJoinTime(sceneId, selfId)返回玩家加入当前帮会时刻对应的 ANSI 时间。 |
| GetGuildPos | GetGuildPos(sceneId, selfId)返回玩家当前帮会职位。 |
| IsLocked | IsLocked(sceneId, selfId, lockType)查询玩家 64 位脚本锁中的指定标志。 |
| Lock | Lock(sceneId, selfId, lockType, iValue)设置或清除玩家 64 位脚本锁中的指定标志。 |
| LuaFnAddGuildCollectNum | LuaFnAddGuildCollectNum(sceneId, selfId, nValue)增加所属城市的帮会采集数量,实际修改由 WorldServer 完成。 |
| LuaFnCityGetDefaultNameBySceneId | LuaFnCityGetDefaultNameBySceneId(citySceneId)按城市场景编号返回配置表中的默认城市名称。 |
| LuaFnCityGetNameBySceneId | LuaFnCityGetNameBySceneId(citySceneId)按城市场景编号返回城市名称。 |
| LuaFnClearGuildCollectNum | LuaFnClearGuildCollectNum(arg1)请求 WorldServer 清空帮会采集数量。 |
| LuaFnSortGuildCollectNum | LuaFnSortGuildCollectNum(arg1)请求 WorldServer 对帮会采集数量进行排序。 |
| OpenCityMissonMgr | OpenCityMissonMgr(sceneId, selfId)将所属城市的任务管理数据及版本发送给客户端。 |