Re: Призрачка и пауза в начале боя
По поводу _break для воина как вставить:
function DoWarriorPriem(index)
{
_name = "";
_break = false;
eval("_priemCode = external.SPriem" + index + ".Text");
eval(_priemCode);
if(_name != "")
{
if(top.Battle.oBattle.arrMethods[_name] != undefined)
{
if (top.Battle.oBattle.arrMethods[_name].oMethod.bEnable)
{
if (!top.Battle.oBattle.arrButtons.commit.disabled)
{
top.Battle.oBattle.Send( { special: _name } );
if(index < 24 && !_break)
{
DoWarriorPriem(index + 1);
return;
}
}
else
{
setTimeout("DoWarriorPriem(" + index + ")", 50);
return;
}
}
if(index < 24)
{
DoWarriorPriem(index + 1);
return;
}
}
if(index < 24)
{
DoWarriorPriem(index + 1);
return;
}
}
if(index < 24)
{
DoWarriorPriem(index + 1);
return;
}
}
Тут две строки, где _break фигурирует...ты одну не заметил