-- $Id: bot_butcher.lua,v 1.5 2009-12-17 08:39:20 a.abolishin Exp $ -- Интеллект Мясника function bot_Butcher_r(A, h2l, pvp) if h2l then -- понижение противников local oppList = aux.getPersList(aux.oppTeamNum(), true, nil, false) if oppList then bot_CheckHiLevelPers(oppList, h2l, bot_HiLevel2LowLevel) end if pvp then -- и своих (для честного pvp) local myList = aux.getPersList(my.teamNum, true, true, false) if myList then bot_CheckHiLevelPers(myList, h2l, bot_HiLevel2LowLevel) end end end if my.status ~= FS_PS_ACTIVE then -- если наш статус неактивный, ничего не делаем return end if not PERS_ISBOT(my.oppPtr) and PERS_ISDEFENDED(my.oppPtr) then -- оппонент в блоке aux.useEffect({artId = A[1]}) -- используем крит. end ATTACK(math.random(3)) end function bot_butcher() local A = {1994} bot_Butcher_r(A) end function bot_Butcher_H2L_10() local A = {1994} bot_Butcher_r(A, 10) end function bot_Butcher_H2L_PVP_10() local A = {1994} bot_Butcher_r(A, 10, true) end