Lua接口/服务端/GetGuildWarPoint:修订间差异

来自雪舞天龙知识库
跳到导航跳到搜索
Waylee​(留言 | 贡献)
维护服务端 Lua 接口:核对参数、返回值、边界条件与调用示例
Waylee​(留言 | 贡献)
维护服务端 Lua 接口:核对参数、返回值、边界条件与调用示例
 
(未显示同一用户的1个中间版本)
第10行: 第10行:
服务端脚本中共出现 16 处调用,实参个数出现过:2 个(16 处)。
服务端脚本中共出现 16 处调用,实参个数出现过:2 个(16 处)。


实现位于 <code>LuaFnTbl_Guild.h</code> 第 361 行,注册表第 960 行。
实现位于 <code>LuaFnTbl_Guild.h</code>。


== 参数 ==
== 参数 ==
第30行: 第30行:
返回 1 个值。返回类型包括 <code>number</code>。明确的固定返回组合包括 <code>-1</code>。
返回 1 个值。返回类型包括 <code>number</code>。明确的固定返回组合包括 <code>-1</code>。


== 脚本中的调用 ==
== 调用示例 ==
以下是服务端脚本里的真实调用点,按实参形态去重后列出 7 条。这些调用取自随包发布的脚本,可用于确认参数顺序与实际传入的值;它们不代表该写法在当前版本仍然有效。
以下取自随包服务端脚本的真实调用,可对照上方参数表确认参数顺序:
<pre>-- event/fuben/efuben_bangzhan.lua
<pre>-- event/fuben/efuben_bangzhan.lua
GetGuildWarPoint(sceneId, x402047_g_GuildPoint_KillTower)
GetGuildWarPoint(sceneId, x402047_g_GuildPoint_KillTower)
-- event/fuben/efuben_bangzhan.lua
-- event/fuben/efuben_bangzhan.lua
GetGuildWarPoint(sceneId, x402047_g_GuildPoint_KillPlatform)
GetGuildWarPoint(sceneId, x402047_g_GuildPoint_KillPlatform)
-- event/fuben/efuben_bangzhan.lua
GetGuildWarPoint(sceneId, x402047_g_GuildPoint_KillTankPlayer)
-- event/fuben/efuben_bangzhan.lua
-- event/fuben/efuben_bangzhan.lua
GetGuildWarPoint(sceneId, x402047_g_GuildPoint_KillOtherPlayer)
GetGuildWarPoint(sceneId, x402047_g_GuildPoint_KillTankPlayer)</pre>
 
-- event/guild/ExchangeTank.lua
GetGuildWarPoint(sceneId, x600052_g_GuildPoint_ExchangeTank)
 
-- event/guild/lingshi.lua
GetGuildWarPoint(sceneId, x600050_g_GuildPoint_LingShi)
 
-- obj/bangzhan/daqi.lua
GetGuildWarPoint(sceneId, x402301_g_GuildPoint_GetFlag)</pre>


</div>
</div>

2026年10月27日 (二) 12:38的最新版本

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

按表索引返回帮战积分。

Lua 调用

GetGuildWarPoint(sceneId, pointIndex)

服务端脚本中共出现 16 处调用,实参个数出现过:2 个(16 处)。

实现位于 LuaFnTbl_Guild.h。

参数

序号 参数 / 类型 说明
1 sceneId
number
当前调用所在的场景 ID。
脚本中的实参:sceneId(16 处)
2 pointIndex
number
点位或点数索引。
脚本中的实参:x402047_g_GuildPoint_KillTankPlayer(4 处)、x600052_g_GuildPoint_ExchangeTank(3 处)、x402047_g_GuildPoint_KillOtherPlayer(2 处)

返回值

返回 1 个值。返回类型包括 number。明确的固定返回组合包括 -1。

调用示例

以下取自随包服务端脚本的真实调用,可对照上方参数表确认参数顺序:

-- event/fuben/efuben_bangzhan.lua
GetGuildWarPoint(sceneId, x402047_g_GuildPoint_KillTower)
-- event/fuben/efuben_bangzhan.lua
GetGuildWarPoint(sceneId, x402047_g_GuildPoint_KillPlatform)
-- event/fuben/efuben_bangzhan.lua
GetGuildWarPoint(sceneId, x402047_g_GuildPoint_KillTankPlayer)