跳到主要内容

GetNpcMoney

获取NPC的灵石数量

实例:

function (runner,env)
-- env:GetNpcMoney(NpcID)
return env:GetNpcMoney(1000)
end

参数

参数类型描述选项
NpcIDIntegerNPCID必填
返回值Integer返回NPC的灵石数量,如果找不到或者输入错都返回0灵石