local ret = random(100)
if ret < 30 then --挖到银两
x300022_DiscoverMoney(sceneId, selfId)
elseif ret < 40 then --放出僵尸
x300022_DiscoverCorpseMonster(sceneId, selfId)
elseif ret < 80 then --获得物品
local retval = x300022_DiscoverItem(sceneId, selfId)
if retval == 0 then
--记录统计信息
LuaFnAuditWaBao(sceneId, selfId)
return
end
elseif ret < 85 then --遇盗墓贼
x300022_DiscoverGhoulMonster(sceneId, selfId)
elseif ret < 95 then --掉入宝藏
x300022_DiscoverInstance(sceneId, selfId)
else --遭遇机关
x300022_DiscoverTrap(sceneId, selfId)
end
if ret < 30 then --挖到银两
x300022_DiscoverMoney(sceneId, selfId)
elseif ret < 40 then --放出僵尸
x300022_DiscoverCorpseMonster(sceneId, selfId)
elseif ret < 80 then --获得物品
local retval = x300022_DiscoverItem(sceneId, selfId)
if retval == 0 then
--记录统计信息
LuaFnAuditWaBao(sceneId, selfId)
return
end
elseif ret < 85 then --遇盗墓贼
x300022_DiscoverGhoulMonster(sceneId, selfId)
elseif ret < 95 then --掉入宝藏
x300022_DiscoverInstance(sceneId, selfId)
else --遭遇机关
x300022_DiscoverTrap(sceneId, selfId)
end