Тема: Сборка приемов с условиями для критовика
Глубоки Порезы, если нет на противнике
if((typeof(top.Battle.oBattle.oEnemySlot.arrEffects["krit_deepwounds"]) != "object") &&
(parseInt(top.Battle.oBattle.arrRes["hp"].innerHTML) > 3) &&
(parseInt(top.Battle.oBattle.arrRes["krit"].innerHTML) > 3))
_name = "krit_deepwounds";
Разгадать Тактику
if(
(top.Battle.oBattle.arrRes["hit"].innerHTML > 0) &&
(parseInt(top.Battle.oBattle.arrRes["block"].innerHTML) > 1)
)
{if(
(top.Battle.oBattle.oEnemySlot.oLayer.innerHTML.match(/axe[\d]+.gif/)) ||
(top.Battle.oBattle.oEnemySlot.oLayer.innerHTML.match(/knife[\d]+.gif/)) ||
(top.Battle.oBattle.oEnemySlot.oLayer.innerHTML.match(/bow[\d]+.gif/)) ||
(top.Battle.oBattle.oEnemySlot.oLayer.innerHTML.match(/crossbow[\d]+.gif/)) ||
(top.Battle.oBattle.oEnemySlot.oLayer.innerHTML.match(/hammer[\d]+.gif/)) ||
(top.Battle.oBattle.oEnemySlot.oLayer.innerHTML.match(/sword[\d]+.gif/))
)
_name = "multi_resolvetactic";
}
Отредактировано Евжений (2015-06-21 13:48:26)