Ну вот приёмы:
if(typeof(top.Battle.oBattle.oMySlot.arrEffects["wis_gray_manabarrier"]) != "object")
{
_name = "wis_gray_manabarrier9";
}
else
{
if(parseInt(top.Battle.oBattle.oMySlot.arrEffects["wis_gray_manabarrier"].GetTitle().innerHTML.match("<B>(\\d+)<\\/B>")[1]) < 200)
_name = "wis_gray_manabarrier9";
}
var enemies = top.Battle.oBattle.oGroupsLayer.getElementsByTagName("IMG")[1].sList.split(", ");
for(i=0; i<enemies.length; i++)
{
if(enemies[i].indexOf("Осторожный Щуп") > -1)
{
_target = enemies[i];
}
}
if((_target=="Осторожный Щуп")&&(parseInt(top.Battle.oBattle.arrRes["spirit"].innerHTML) > 25)) _name="spirit_12_prot_100";
var enemies = top.Battle.oBattle.oGroupsLayer.getElementsByTagName("IMG")[1].sList.split(", ");
for(i=0; i<enemies.length; i++)
{
if(enemies[i].indexOf("Осторожный Щуп") > -1)
{
_target = enemies[i];
}
if(enemies[i].indexOf("Королева Грибницы") > -1)
{
_target = enemies[i];
}
}
if((_target=="Осторожный Щуп")||(_target=="Королева Грибницы")) _name="";
else
if(typeof(top.Battle.oBattle.oMySlot.arrEffects["wis_fire_sign"]) != "object")
_name = "wis_earth_summon";
if(typeof(top.Battle.oBattle.oMySlot.arrEffects["wis_fire_sign"]) != "object")
_name = "wis_fire_sign";
if((top.Battle.oBattle.oMySlot.nHP * 100 / top.Battle.oBattle.oMySlot.nMaxHP) < 40)
{
_target = mylogin;
_name = "wis_earth_heal09";
}
if(top.Battle.oBattle.arrRes["hp"].innerHTML > 6)
_name = "hp_enrage";
if(top.Battle.oBattle.arrRes["hp"].innerHTML > 6)
_name = "hp_defence";
if(top.Battle.oBattle.arrRes["hp"].innerHTML > 5)
_name = "wis_earth_sacrifice";
if(top.Battle.oBattle.sEnemyLogin.indexOf("Щуп") > -1 || top.Battle.oBattle.sEnemyLogin.indexOf("Королева") > -1)
{
if(typeof(top.Battle.oBattle.oEnemySlot.arrEffects["wis_earth_mark"]) == "object")
{
markCount = top.Battle.oBattle.oEnemySlot.oEffects.innerHTML.match(/<br><span[^>]*>.(\d)?<\/span><\/div><img[^"]*".+\/wis_earth_mark\.gif">/i);
if(markCount != null)
{
if(parseInt(markCount[1]) < 5)
_name = "wis_earth_mark";
}
else
_name = "wis_earth_mark";
}
else
_name = "wis_earth_mark";
}
_name = "wis_earth_link_plus";
if(top.Battle.oBattle.arrRes["hp"].innerHTML > 8)
_name = "hp_regen";
if(((top.Battle.oBattle.oMySlot.nMagic * 100 / top.Battle.oBattle.oMySlot.nMaxMagic) < 50)&&(parseInt(top.Battle.oBattle.arrRes["spirit"].innerHTML) > 4))
_name = "wis_gray_meditation";
_name = "hp_circleshield";
if(top.Battle.oBattle.oEnemySlot.nHP > 1300)
_name = "wis_earth_gravity09";
if((typeof(top.Battle.oBattle.oEnemySlot.arrEffects["wis_earth_meteor"]) !="object")&&
(top.Battle.oBattle.oEnemySlot.nHP > 150))
_name = "wis_earth_meteor09";
if(top.Battle.oBattle.oGroupsLayer.getElementsByTagName("IMG")[1].sList.split(", ").length > 3)
_name="wis_earth_rain09";
var enemies = top.Battle.oBattle.oGroupsLayer.getElementsByTagName("IMG")[1].sList.split(", ");
for(i=0; i<enemies.length; i++)
{
if(enemies[i].indexOf("Королева") > -1)
{
_target = enemies[i];
}
if(enemies[i].indexOf("Паразит") > -1)
{
_target = enemies[i];
}
if(enemies[i].indexOf("Усохший") > -1)
{
_target = enemies[i];
}
}
_name = "wis_earth_strike09";
_name = "wis_earth_dmg09";
if (!top.Battle.oBattle.arrMethods["wis_earth_dmg09"].oMethod.bEnable && !top.Battle.oBattle.arrMethods["wis_earth_meteor09"].oMethod.bEnable && !top.Battle.oBattle.arrMethods["wis_gray_meditation"].oMethod.bEnable)
{
if(!top.Battle.oBattle.arrMethods["wis_gray_manabarrier9"].oMethod.bEnable)
{
DoHit();
}
else
_name = "wis_gray_manabarrier9";
}
(Please
log in or
register to see this URL)