// Help out on the front line.
// Move back to a flag if any try to sneak by.
while(true) {
var flag = hero.findFlag();
var enemy = hero.findNearestEnemy();
if (flag){
// Pick the flag up.
hero.pickUpFlag(flag);
} else if (enemy){
// Attack enemies on sight.
hero.attack(enemy);
}
}
Projektuję strony www Lublin na Joomla i WordPress