Тема: Проблемка,подскажите что не так
Играю магом земли 7лвла захожу в хаоты но бот не дерется(
вот приемы :
if(typeof(top.Battle.oBattle.oMySlot.arrEffects["wis_gray_manabarrier"]) != "object")
{
_name = "wis_gray_manabarrier8";
}
else
{
if(parseInt(top.Battle.oBattle.oMySlot.arrEffects["wis_gray_manabarrier"].GetTitle().innerHTML.match("<B>(\\d+)<\\/B>")[1]) < 80)
_name = "wis_gray_manabarrier8";
}
if(top.Battle.oBattle.oEnemySlot.nHP > 500)
_name = "wis_earth_gravity08";
if(((top.Battle.oBattle.oEnemySlot.nHP * 100 / top.Battle.oBattle.oEnemySlot.nMaxHP) > 100) && (typeof(top.Battle.oBattle.oEnemySlot.arrEffects["wis_earth_meteor08"]) != "object"))
_name = "wis_earth_meteor08";
if((top.Battle.oBattle.oMySlot.nMagic * 100 / top.Battle.oBattle.oMySlot.nMaxMagic) < 10)
_name = "wis_gray_meditation";
if(!top.Battle.oBattle.arrMethods["wis_earth_strike08"].oMethod.bEnable && !top.Battle.oBattle.arrMethods["wis_earth_meteor08"].oMethod.bEnable && !top.Battle.oBattle.arrMethods["wis_earth_flower08"].oMethod.bEnable && !top.Battle.oBattle.arrMethods["wis_gray_meditation"].oMethod.bEnable && !top.Battle.oBattle.arrMethods["wis_earth_gravity08"].oMethod.bEnable)
{
DoHit();
_break = true;
}
if(top.Battle.oBattle.oGroupsLayer.getElementsByTagName("IMG")[0].sList.match(/Каменный\sстраж\,/i) || top.Battle.oBattle.oGroupsLayer.getElementsByTagName("IMG")[0].sList.match(/Каменный\sстраж$/i))
{
if(typeof(top.Battle.oBattle.oMySlot.arrEffects["block_target"]) == "object")
{
if(top.Battle.oBattle.oGroupsLayer.getElementsByTagName("IMG")[1].sList.split(", ").length > 6)
{
_name = "wis_earth_rain08";
_break = true;
}
}
else{top.Battle.oBattle.arrButtons.refresh.click();}
}
else
{
if(top.Battle.oBattle.oGroupsLayer.getElementsByTagName("IMG")[1].sList.split(", ").length > 6)
{
_name = "wis_earth_rain08";
_break = true;
}
}
if(markCount != null)
{
if(parseInt(markCount[1]) < 5)
_name = "wis_earth_mark";
}
else
_name = "wis_earth_mark";
}
else
_name = "wis_earth_mark";
}
Быть может кто разьяснит что там не так?)Буду признателен.