您需要 登录 才可以下载或查看,没有账号?registerss
函数名称:LuaFnGetPetCount 注册函数:LuaFnGetPetCount 参数说明:sceneId(场景编号)、selfId(调用者ID) 功能说明:获取珍兽的数量
LuaFnGetPetCount
sceneId
selfId
案例:
local petcount = LuaFnGetPetCount(sceneId, selfId) --取得宠物数量 for i=0,petcount-1 do petdataid = LuaFnGetPet_DataID(sceneId, selfId, i) --取得宠物编号 --珍兽索引编号符合要求执行代码 if petdataid == 35000 then return 1 end end
返回值:
-1
举报
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|雪舞知识库 ( 浙ICP备15015590号-1 | 萌ICP备20232229号|浙公网安备33048102000118号 )
GMT+8, 2026-10-31 04:53 , Processed in 0.022405 second(s), 23 queries .
Powered by Discuz! X5.0
© 2001-2026 Discuz! Team.