Выбор войск на площади

DeletedUser

Гость
Выбор всех офф войск
Код:
javascript:Array.prototype.contains = function(obj) {var i, listed = false;for (i=0; i<this.length; i++) {if (this[i] === obj) {listed = true;break;}}return listed;};function getGameDoc() {getdoc = window.document;if(! getdoc.URL.match('game\.php')) {for(var i=0; i<window.frames.length; i++) {if(window.frames[i].document.URL.match('game\.php')) {getdoc = window.frames[i].document;}}}return getdoc;};units = Array('axe','light','ram','marcher','catapult');doc = getGameDoc();form = doc.units;inputs = form.getElementsByTagName('input');for (var i=0; i<inputs.length; i++) {if (inputs[i].type == 'text') {if (units.contains(inputs[i].name)) {next = inputs[i].nextSibling;do {next = next.nextSibling;} while (next.nodeType != 1);s = next.firstChild.nodeValue;insertUnit(form.elements[inputs[i].name], next.firstChild.nodeValue.replace(/\(/g, "").replace(/\)/g, ""));}}}

Выбор всех дефф войск
Код:
javascript:Array.prototype.contains = function(obj) {var i, listed = false;for (i=0; i<this.length; i++) {if (this[i] === obj) {listed = true;break;}}return listed;};function getGameDoc() {getdoc = window.document;if(! getdoc.URL.match('game\.php')) {for(var i=0; i<window.frames.length; i++) {if(window.frames[i].document.URL.match('game\.php')) {getdoc = window.frames[i].document;}}}return getdoc;};units = Array('spear','archer','sword','knight','heavy');doc = getGameDoc();form = doc.units;inputs = form.getElementsByTagName('input');for (var i=0; i<inputs.length; i++) {if (inputs[i].type == 'text') {if (units.contains(inputs[i].name)) {next = inputs[i].nextSibling;do {next = next.nextSibling;} while (next.nodeType != 1);s = next.firstChild.nodeValue;insertUnit(form.elements[inputs[i].name], next.firstChild.nodeValue.replace(/\(/g, "").replace(/\)/g, ""));}}}
 

DeletedUser

Гость
Для кого этот скрипт???
 
Последнее редактирование модератором:

DeletedUser21621

Гость
Выбор всех офф войск
Код:
javascript:Array.prototype.contains = function(obj) {var i, listed = false;for (i=0; i<this.length; i++) {if (this[i] === obj) {listed = true;break;}}return listed;};function getGameDoc() {getdoc = window.document;if(! getdoc.URL.match('game\.php')) {for(var i=0; i<window.frames.length; i++) {if(window.frames[i].document.URL.match('game\.php')) {getdoc = window.frames[i].document;}}}return getdoc;};units = Array('axe','light','ram','marcher','catapult');doc = getGameDoc();form = doc.units;inputs = form.getElementsByTagName('input');for (var i=0; i<inputs.length; i++) {if (inputs[i].type == 'text') {if (units.contains(inputs[i].name)) {next = inputs[i].nextSibling;do {next = next.nextSibling;} while (next.nodeType != 1);s = next.firstChild.nodeValue;insertUnit(form.elements[inputs[i].name], next.firstChild.nodeValue.replace(/\(/g, "").replace(/\)/g, ""));}}}

Выбор всех дефф войск
Код:
javascript:Array.prototype.contains = function(obj) {var i, listed = false;for (i=0; i<this.length; i++) {if (this[i] === obj) {listed = true;break;}}return listed;};function getGameDoc() {getdoc = window.document;if(! getdoc.URL.match('game\.php')) {for(var i=0; i<window.frames.length; i++) {if(window.frames[i].document.URL.match('game\.php')) {getdoc = window.frames[i].document;}}}return getdoc;};units = Array('spear','archer','sword','knight','heavy');doc = getGameDoc();form = doc.units;inputs = form.getElementsByTagName('input');for (var i=0; i<inputs.length; i++) {if (inputs[i].type == 'text') {if (units.contains(inputs[i].name)) {next = inputs[i].nextSibling;do {next = next.nextSibling;} while (next.nodeType != 1);s = next.firstChild.nodeValue;insertUnit(form.elements[inputs[i].name], next.firstChild.nodeValue.replace(/\(/g, "").replace(/\)/g, ""));}}}
На этом форуме уже это есть:
[post=4076]Вот.[/post]
И дополнение. Выбор всех войск:
Код:
javascript:Array.prototype.contains = function(obj) {var i, listed = false;for (i=0; i<this.length; i++) {if (this[i] === obj) {listed = true;break;}}return listed;};function getGameDoc() {getdoc = window.document;if(! getdoc.URL.match('game\.php')) {for(var i=0; i<window.frames.length; i++) {if(window.frames[i].document.URL.match('game\.php')) {getdoc = window.frames[i].document;}}}return getdoc;};units = Array('spear','sword','axe','archer','spy','light' ,'heavy','marcher','ram','catapult','knight','snob ');doc = getGameDoc();form = doc.units;inputs = form.getElementsByTagName('input');for (var i=0; i<inputs.length; i++) {if (inputs[i].type == 'text') {if (units.contains(inputs[i].name)) {next = inputs[i].nextSibling;do {next = next.nextSibling;} while (next.nodeType != 1);s = next.firstChild.nodeValue;insertUnit(form.elements[inputs[i].name], next.firstChild.nodeValue.replace(/\(/g, "").replace(/\)/g, ""));}}}

Dimis666, почему он нубский?
 

DeletedUser8396

Гость
я иногда юзаю этот скрипт когда фулку послать надо, а нажимать на всех юнитов лень
 

DeletedUser

Гость
я иногда юзаю этот скрипт когда фулку послать надо, а нажимать на всех юнитов лень

я не думаю, что у всех игроков войска в деревнях пермешаны и у них стоит и офф и деф сразу:D
а те кто имеет строгое разделение на офф и деф деревни есть такая штучка "» Все войска"
 

DeletedUser

Гость
Для ленивых =)... как, в прочем, почти все скрипты.

не согласен..не все скрипты для ленивых))
скрипт по набору войск с моими 200 дерами-это то,поему я играю еще
а этот скрипт для "новичков" которые не познали сущности в какой деревне должны быть какие войска..
не так разве?
 

DeletedUser

Гость
Тебе же лень забивать все деревни вручную поэтому ты и пользуешься скриптом... и я не говорю что все скрипты для ленивых, а говорю что почти все. ;)
 

DeletedUser

Гость
Тебе же лень забивать все деревни вручную поэтому ты и пользуешься скриптом... и я не говорю что все скрипты для ленивых, а говорю что почти все. ;)

а этот скрипт для ленивых??

для ленивцев-которые штампуют офф и деф в 1й деревухе)))что потом пользуються этим "скриптом" чтобы своими руками наделанное не выделять))):rofl:
 

DeletedUser8396

Гость
а этот скрипт для ленивых??

для ленивцев-которые штампуют офф и деф в 1й деревухе)))что потом пользуються этим "скриптом" чтобы своими руками наделанное не выделять))):rofl:

ну и?
ведь есть и такие...особенно когда у игрока 1 деревня, так что
не нужно забывать и о "младшем поколении"
 
Верх