您需要 登录 才可以下载或查看,没有账号?registerss
函数名称:LuaFnGetItemCount 注册函数:GetItemCount 参数说明:sceneId(场景编号)、selfId(调用者ID)、itemTypeSn(物品编号) 功能说明:判断当前玩家有多少个道具,只从玩家的装备和物品包中查找(包括锁定的道具) 返回值:
案例:
if GetItemCount(sceneId, selfId, 40002000)>=1 then BeginEvent( sceneId ) AddText( sceneId, " 你身上有银票,正在跑商!我不能帮助你。" ) EndEvent( sceneId ) end
举报
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|雪舞知识库 ( 浙ICP备15015590号-1 | 萌ICP备20232229号|浙公网安备33048102000118号 )
GMT+8, 2026-11-1 00:11 , Processed in 0.037007 second(s), 23 queries .
Powered by Discuz! X5.0
© 2001-2026 Discuz! Team.