--[[ a.abolishin Пес-демон прародитель. Он же Цербер-квестовый. ]] function bot_Cerberus_r(A, C) local bot = PERS(my.persPtr) if not bot_CerberusState then bot_CerberusState = {} end if not bot_CerberusState[bot.id] then bot_CerberusState[bot.id] = {} bot_CerberusState[bot.id].baf3 = C[1] end -- если наш статус неактивный, то больше ничего не делаем if my.status ~= FS_PS_ACTIVE then return end -- баф3 - аое урон local hpC = bot.hp/bot.hpMax if hpC < bot_CerberusState[bot.id].baf3 * C[2] then aux.useEffect({artId = A[3]}, my.oppPtr) bot_CerberusState[bot.id].baf3 = bot_CerberusState[bot.id].baf3 - 1 return end -- вамп на одну атаку if aux.randRoll(C[3]) then aux.useEffect({artId = A[2]}) end -- маг/физ атака if aux.randRoll(C[4]) then aux.useEffect({artId = A[1]}, my.oppPtr) else ATTACK(math.random(3)) end end -- botId = 1162 function bot_Cerberus() -- маг атака, вамп, аое урон local A = {6849, 6847, 6848} -- кол-во аое уронов, шаг жизни для аое урона, вероятность вампа, вероятность маг атаки local C = {3, 0.3, 0.1, 0.2} bot_Cerberus_r(A, C) end function bot_Cerberus_t() -- маг атака, вамп, аое урон local A = {6849, 6847, 6848} -- кол-во аое уронов, шаг жизни для аое урона, вероятность вампа, вероятность маг атаки local C = {3, 0.3, 0.1, 0.2} bot_Cerberus_r(A, C) end