RefinementTower.lua 539 B

123456789101112131415161718192021
  1. RefinementTower = {}
  2. function RefinementTower.MonsterDie(monsterActor, monsterCfgId)
  3. if monsterCfgId ~= 200101 then
  4. return
  5. end
  6. local unimapid = tonumber(getbaseinfo(monsterActor, "unimapid"))
  7. local mapid = tonumber(getbaseinfo(monsterActor, "mapid"))
  8. local info = getmapinfobyid(unimapid)
  9. local line = info.line
  10. local lifeNum = getmapmonstercountbyid(mapid, line, 200101, 1)
  11. if lifeNum > 0 then
  12. return
  13. end
  14. -- 把boss刷出来
  15. mongenasync(unimapid, 77, 104, 1, 200102, 1)
  16. end