function 找boss()
//找boss 每层6个
findpic 100, 100, 100, 100, "attachment:1.png", "000000", 0, 0.9, intx, inty
if intx > -1 and inty > -1 then
//移动到boss
touch intx, inty, 1000
delay 10000
//攻击boss
touch 340, 340, 1000
traceprint 1
else
traceprint 0
end if
end function
function 判断怪物死亡()
//判断boss是否死亡
if cmpcolorex("449|23|5ea5c3", 0.9) = 1 then
//未死亡继续攻击boss
touch 340, 340, 1000
delay 10000
traceprint 1
else
traceprint 0
end if
end function
function 进图一层()
touch 340, 340, 1000
end function
function 进图二层()
touch 340, 340, 1000
end function
逻辑是进一层 找boss 然后判断boss是否死亡。死亡了继续找一层boss,如果没有boss了 进二层同样的操作。哪位大神能帮忙完善一下。研究了一天总是有问题