Question Uberfarm script?

DeletedUser93408

Guest
Does this Script should run in every village you own? so it most likely, a FA?
 

DeletedUser

Guest
is there something wrong with this script after the 8.3 update? coz the farm villages that gets inputed when i run the script is sometimes from a long distance village, more than 10 hours travel time. i've never had this kind of problem before the update, worked fine. here's the script:

Code:
javascript: var config = {      fields: 8,      minHaul: 9000,      targetHaul: 40000,      scout: true,      hours: 24,      farms: '506|548 508|547 506|546 504|546 510|550 510|547 508|551 504|547 508|552 503|547 509|544 511|550 512|548 502|548 504|552 503|551 510|544 502|547 508|543 502|549 505|543 509|543 505|553 502|546 511|552 504|543 512|545 510|543 507|542 506|542 501|547 508|542 506|554 513|549 513|550 505|554 512|544 504|542 510|542 504|554 514|548 500|549 506|541 514|547 508|541 512|553 513|544 501|552 501|544 511|554 513|552 514|546 505|541 514|550 504|541 510|555 502|554 661|522 661|521 660|521 663|524 663|525 658|525 663|520 664|521 663|526 664|522 660|520 662|520 657|523 665|523 661|519 657|524 665|522 657|522 662|519 660|527 664|526 658|520 659|519 659|527 663|527 664|527 662|528 656|521 656|520 667|523 667|522 667|521 663|517 666|527 656|527 657|528 667|526 667|520 668|523 661|516 661|530 666|528 662|516 668|524 656|518 668|522 655|519 665|529 667|519 659|530 654|520 664|516 548|445 551|444 549|446 550|447 547|448 554|444 552|447 540|432 543|433 539|429 543|435 543|429 544|433 544|431 537|431 538|429 544|428 545|428 547|430 536|427 536|426 536|432 536|431 532|436 531|434 531|432 534|429 529|434 529|438 555|451 553|450 552|450 560|447 555|456 556|458 557|460 558|461 553|460 546|391 545|391 546|390 545|390 547|389 545|389 550|395 549|395 552|396 549|394 551|398 552|395 552|394 554|394 555|395 551|391 554|392 550|390 556|395 556|394 552|390 557|396 557|395 548|389 553|389 556|391 541|395 540|394 539|396 539|398 539|394 541|393 542|392 543|392 537|397 537|395 541|401 543|401 537|398 537|394 536|396 537|391 543|389 535|397 535|394 544|389 535|399 509|486 504|484 508|481 507|481 528|501 531|500 531|501 532|500 530|502 527|503 532|501 528|503 533|500 529|503 526|501 523|500 525|501 524|501 526|502 524|503 523|503 521|500 528|489 520|500 519|500 510|503 510|502 508|505 504|505 508|506 503|505 507|507 508|507 513|504 504|507 506|508 512|506 502|506 514|502 503|507 514|503 504|508 512|500 513|500 535|546 534|547 533|547 536|545 535|544 538|547 541|547 535|541 534|541 529|544 535|540 528|546 529|543 528|545 537|540 538|540 535|549 536|548 534|549 536|549 535|550 533|548 537|549 533|551 536|551 531|548 535|552 539|548 536|552 539|550 531|551 530|548 536|553 540|550 532|553 540|551 529|548 533|554 531|553 532|554 541|551 540|553 530|553 541|552 539|554 533|555 526|416 529|414 525|417 529|413 524|415 527|412 527|419 531|416 526|419 531|414 528|419 529|419 523|412 531|418 522|415 530|419 526|420 522|416 525|420 521|415 525|409 521|417 525|421 521|418 523|409 520|417 520|412 555|546 556|546 553|546 558|544 558|542 559|545 551|543 551|542 553|540 559|547 556|549 560|545 559|540 552|549 555|550 549|545 556|550 557|550 557|538 559|549 561|541 561|547 548|544 562|544 551|550 561|540 558|551 562|541 561|539 549|549 560|550 522|552 524|551 523|555 520|554 526|554 524|549 526|553 522|549 523|548 522|548 519|551 527|553 524|548 522|556 519|553 526|555 525|548 519|550 528|552 523|557 519|555 526|548 524|557 518|551 525|557 521|547 527|548 526|557 528|555 517|552 524|558 529|551 517|550 517|554 525|546 528|556 526|546 526|558 517|555 523|545 522|559 518|557 516|551 529|556 519|546 516|550 521|559 516|555 526|545 518|558 535|438 537|441 539|441 539|442 539|443 533|442 538|444 531|439 532|442 537|445 531|442 530|440 541|437 541|438 546|399 545|401 550|440 547|435 544|440 543|441 544|439 542|443 544|444 541|441 541|442 543|445 545|446 544|446 540|443 545|447 543|447 540|446 577|450 575|450 575|449 572|450 580|450 581|453 579|456 583|454 583|455 584|455 582|458 585|450 585|455 584|457 574|513 573|513 574|516 571|514 568|511 570|515 567|511 567|512 566|513 568|516 566|515 565|513 572|508 570|508 569|509 568|510 568|509 569|507 568|507 571|505 572|504 566|510 566|509 570|504 567|506 565|508 574|508 576|507 578|508 578|507 578|506 580|507 577|512 575|514 578|511 579|512 575|516 579|513 579|514 577|516 579|509 580|514 579|516 581|513 581|515 582|512 580|517 581|508 582|515 692|500 694|501 696|499 691|502 694|502 696|500 690|500 697|499 697|500 696|502 691|503 690|503 698|500 692|504 688|500 698|502 687|499 694|505 687|501 689|504 688|503 686|500 699|503 691|506 695|506 700|502 690|506 687|504 698|505 699|504 688|505 573|521 572|520 574|520 572|521 573|522 572|522 571|519 575|518 575|522 570|520 571|523 573|524 569|521 572|524 570|516 569|523 573|525 572|525 578|519 578|522 578|518 577|524 568|517 579|519 579|521 568|524 578|524 580|519 568|525 580|518 580|523 570|527 568|526 567|525 517|444 516|445 516|444 519|447 520|447 518|448 516|442 521|443 518|449 514|444 516|449 514|443 513|444 519|450 519|440 517|451 516|451 523|441 511|445 511|444 524|449 512|441 521|438 696|496 691|495 690|497 696|497 697|497 696|494 691|493 698|496 688|495 698|495 690|493 693|492 687|497 699|496 687|496 695|492 688|494 689|493 687|495 700|498 698|493 690|491 696|491 '      };      $.getScript('http://dl.dropbox.com/u/24469843/Tribalwars/Scripts/uberfarmNonArcherWorld.js');      void (0);
 

DeletedUser61226

Guest
Ok here is my problem, i tried editing out all the other units excepts the ones i want to send on my farming runs.
I want to make 2 scripts , one that will send only spears and 1 scout and another one that will send only heavy cav and 1 scout.(non archer word)
The edited code is:
Code:
javascript: var config = {
    fields: 18,
    minHaul: 5000,
    targetHaul: 10000,
    scout: true,
    hours: 3,
    farms: '433|386 435|386 436|386 443|386 447|386 449|386 455|386 456|386 457|386 458|386 432|387 434|387 437|387 439|387 449|387 455|387 433|388 436|388 446|388 431|389 435|389 438|389 459|389 434|390 435|390 436|390 445|390 452|390 432|391 434|391 437|391 439|391 443|391 447|391 452|391 458|391 433|392 438|392 440|392 447|392 448|392 449|392 455|392 456|392 434|393 441|393 442|393 443|393 445|393 448|393 453|393 432|394 437|394 443|394 444|394 454|394 458|394 459|394 433|395 437|395 450|395 452|395 455|395 457|395 431|396 434|396 445|396 448|396 450|396 451|396 452|396 453|396 455|396 459|396 432|397 441|397 443|397 445|397 447|397 451|397 452|397 453|397 459|397 434|398 447|398 449|398 452|398 453|398 454|398 431|399 435|399 443|399 444|399 446|399 449|399 455|399 456|399 431|400 435|400 439|400 442|400 453|400 431|401 434|401 437|401 439|401 443|401 446|401 457|401 459|401 460|401 431|402 437|402 440|402 441|402 442|402 444|402 454|402 457|402 460|402 437|403 440|403 443|403 447|403 452|403 454|403 457|403 433|404 441|404 442|404 447|404 449|404 457|404 459|404 434|405 445|405 457|405 459|405 431|406 432|406 442|406 450|406 451|406 456|406 457|406 458|406 459|406 439|407 441|407 459|407 431|408 433|408 434|408 435|408 437|408 446|408 450|408 454|408 455|408 457|408 432|409 434|409 435|409 439|409 445|409 454|409 460|409 435|410 452|410 453|410 435|411 438|411 441|411 442|411 443|411 451|411 457|411 458|411 432|412 434|412 435|412 442|412 445|412 459|412 433|413 434|413 436|413 439|413 442|413 444|413 458|413 432|414 437|414 441|414 443|414 447|414 452|414 455|414 459|414 431|415 432|415 435|415 440|415 443|415 458|415 459|415 462|386 467|386 469|386 471|386 477|386 483|386 484|386 486|386 487|386 467|387 470|387 471|387 476|387 477|387 478|387 489|387 490|387 464|388 467|388 469|388 471|388 474|388 476|388 477|388 479|388 480|388 482|388 485|388 463|389 464|389 466|389 469|389 472|389 475|389 478|389 484|389 489|389 466|390 469|390 472|390 473|390 476|390 481|390 472|391 474|391 475|391 476|391 486|391 465|392 469|392 470|392 471|392 472|392 473|392 474|392 475|392 476|392 478|392 479|392 480|392 481|392 485|392 465|393 467|393 468|393 471|393 472|393 476|393 480|393 484|393 485|393 461|394 463|394 464|394 467|394 469|394 470|394 473|394 483|394 484|394 488|394 490|394 464|395 465|395 468|395 469|395 471|395 472|395 475|395 478|395 481|395 484|395 485|395 486|395 487|395 469|396 471|396 475|396 476|396 478|396 480|396 483|396 484|396 464|397 469|397 474|397 477|397 478|397 479|397 466|398 473|398 475|398 478|398 479|398 480|398 464|399 474|399 462|400 463|400 465|400 466|400 467|400 472|400 474|400 477|400 478|400 480|400 465|401 467|401 471|401 478|401 479|401 463|402 464|402 476|402 477|402 465|403 469|403 477|403 462|404 463|404 465|404 474|404 477|404 461|405 467|405 473|405 479|405 463|406 464|406 470|406 475|406 476|406 461|407 466|407 467|407 468|407 473|407 474|407 475|407 476|407 477|407 490|407 461|408 464|408 471|408 476|408 481|408 477|409 465|410 468|410 469|410 473|410 476|410 477|410 488|410 462|411 472|411 479|411 480|411 489|411 463|412 481|412 483|412 484|412 476|413 477|413 482|413 490|413 462|414 464|414 465|414 470|414 476|414 480|414 481|414 482|414 477|415 481|415 467|416 469|416 473|416 477|416 478|416 483|416 464|417 468|417 469|417 473|417 474|417 476|417 480|417 482|417 461|418 469|418 474|418 482|418 485|418 488|418 474|419 483|419 484|419 485|419 464|420 468|420 478|420 480|420 481|420 482|420 483|420 487|420 462|421 474|421 475|421 484|421 465|422 471|422 475|422 482|422 464|423 467|423 472|423 474|423 476|423 481|423 486|423 469|424 473|424 482|424 483|424 468|425 473|425 475|425 477|425 486|425 471|426 472|426 475|426 480|426 482|426 466|427 482|427 469|428 471|428 477|428 479|428 462|429 468|429 475|429 477|429 482|429 465|430 475|430 479|430 461|431 462|431 463|431 464|431 465|431 473|431 461|432 466|432 467|432 470|432 471|432 481|432 486|432 462|433 465|433 471|433 475|433 480|433 462|434 472|434 473|434 475|434 476|434 487|434 462|435 464|435 473|435 475|435 482|435 461|436 469|436 470|436 488|436 465|437 485|437 463|438 466|438 486|438 461|439 465|439 466|439 468|439 469|439 470|439 464|440 465|440 472|440 461|441 471|441 473|441 461|442 473|442 479|442 480|442 484|442 466|443 475|443 487|443 462|444 463|444 464|444 465|444 466|444 475|444 477|444 481|444 490|444 463|445 464|445 467|445 486|445 495|416 498|416 502|416 506|416 509|416 510|416 519|416 520|416 497|417 499|417 503|417 505|417 516|417 495|418 508|418 520|418 503|419 507|419 516|419 519|419 520|419 497|420 507|420 509|420 493|421 497|421 498|421 511|421 498|422 500|422 501|422 509|422 515|422 517|422 501|423 508|423 501|424 502|424 504|424 507|424 517|424 518|424 507|425 512|425 518|425 519|425 503|426 507|426 514|426 516|426 518|426 499|427 507|427 512|427 513|427 503|428 505|428 507|428 508|428 509|428 510|428 511|428 512|428 513|428 514|428 517|428 520|428 500|429 501|429 505|429 514|429 515|429 520|429 497|430 498|430 504|430 516|430 520|430 504|431 505|431 509|431 513|431 516|431 504|432 506|432 516|432 498|433 511|433 503|434 504|434 505|434 507|434 509|434 512|434 513|434 518|434 497|435 499|435 504|435 510|435 493|436 496|436 503|436 510|436 511|436 514|436 519|436 494|437 506|437 498|438 509|438 518|438 500|439 501|439 516|439 506|440 511|440 520|440 496|441 504|441 507|441 512|441 501|442 502|442 504|442 517|442 492|443 494|443 507|443 514|443 506|444 509|444 497|445 514|445 517|445 431|416 434|416 438|416 443|416 449|416 452|416 454|416 455|416 456|416 459|416 460|416 437|417 443|417 444|417 447|417 450|417 457|417 435|418 436|418 438|418 446|418 449|418 454|418 460|418 437|419 438|419 440|419 442|419 443|419 445|419 448|419 450|419 452|419 458|419 432|420 433|420 434|420 436|420 451|420 453|420 441|421 442|421 444|421 449|421 456|421 459|421 433|422 439|422 440|422 447|422 450|422 458|422 460|422 431|423 439|423 441|423 445|423 450|423 452|423 454|423 440|424 448|424 450|424 453|424 457|424 433|425 446|425 449|425 450|425 453|425 431|426 433|426 438|426 441|426 446|426 451|426 453|426 460|426 431|427 433|427 439|427 440|427 450|427 458|427 439|428 440|428 451|428 440|429 450|429 451|429 456|429 460|429 431|430 432|430 433|430 435|430 436|430 457|430 447|431 437|432 460|432 437|433 460|433 432|434 438|434 439|434 447|434 459|434 460|434 440|435 443|435 455|435 456|435 431|436 433|436 436|436 451|436 436|437 448|437 459|437 438|438 442|438 454|438 458|438 433|439 435|439 451|439 431|440 434|440 435|440 440|440 449|440 453|440 455|440 456|440 458|440 431|441 440|441 446|441 451|441 452|441 455|441 433|442 434|442 446|442 449|442 450|442 456|442 457|442 432|443 434|443 440|443 446|443 452|443 458|443 431|444 434|444 437|444 459|444 432|445 441|445 450|445 459|445 455|446 457|446 460|446 433|447 436|447 445|447 446|447 455|447 460|447 441|448 442|448 453|448 454|448 436|449 438|449 450|449 458|449 434|450 437|450 438|450 439|450 443|450 445|450 452|450 457|450 458|450 437|451 452|451 457|451 436|452 439|452 448|452 454|452 436|453 437|453 438|453 439|453 440|453 455|453 443|454 447|454 436|455 450|455 454|455 456|455 457|455 432|456 437|456 439|456 441|456 457|456 436|457 447|457 459|457 452|458 454|458 434|459 438|459 452|459 460|459 432|460 434|460 436|460 446|460 454|460 458|460 459|460 460|460 433|461 439|461 441|461 447|461 453|461 446|462 451|462 452|462 434|463 445|463 446|463 448|463 450|463 432|464 438|464 439|464 446|464 448|464 459|464 435|465 440|465 441|465 451|465 457|465 460|465 433|466 456|466 456|467 458|467 460|467 431|468 437|468 444|468 449|468 450|468 432|469 440|469 452|469 453|469 459|469 431|470 432|470 436|470 441|470 448|470 443|471 448|471 451|471 431|472 433|472 450|472 451|472 452|472 454|472 446|473 447|473 450|473 452|473 431|474 434|475 443|475 451|475 455|475'
    };
    $.getScript('http://dl.dropbox.com/u/24469843/Tribalwars/Scripts/uberfarmNonArcherWorld.js');
    void (0);





(function () {

    /*Fixed by Stotty2009
    Don't try and pass my fix off as yours

    New Launch: LIVE version

    javascript: var config = {
    fields: 10,
    minHaul: 5000,
    targetHaul: 10000,
    scout: true,
    hours: 3,
    farms: '433|386 435|386 436|386 443|386 447|386 449|386 455|386 456|386 457|386 458|386 432|387 434|387 437|387 439|387 449|387 455|387 433|388 436|388 446|388 431|389 435|389 438|389 459|389 434|390 435|390 436|390 445|390 452|390 432|391 434|391 437|391 439|391 443|391 447|391 452|391 458|391 433|392 438|392 440|392 447|392 448|392 449|392 455|392 456|392 434|393 441|393 442|393 443|393 445|393 448|393 453|393 432|394 437|394 443|394 444|394 454|394 458|394 459|394 433|395 437|395 450|395 452|395 455|395 457|395 431|396 434|396 445|396 448|396 450|396 451|396 452|396 453|396 455|396 459|396 432|397 441|397 443|397 445|397 447|397 451|397 452|397 453|397 459|397 434|398 447|398 449|398 452|398 453|398 454|398 431|399 435|399 443|399 444|399 446|399 449|399 455|399 456|399 431|400 435|400 439|400 442|400 453|400 431|401 434|401 437|401 439|401 443|401 446|401 457|401 459|401 460|401 431|402 437|402 440|402 441|402 442|402 444|402 454|402 457|402 460|402 437|403 440|403 443|403 447|403 452|403 454|403 457|403 433|404 441|404 442|404 447|404 449|404 457|404 459|404 434|405 445|405 457|405 459|405 431|406 432|406 442|406 450|406 451|406 456|406 457|406 458|406 459|406 439|407 441|407 459|407 431|408 433|408 434|408 435|408 437|408 446|408 450|408 454|408 455|408 457|408 432|409 434|409 435|409 439|409 445|409 454|409 460|409 435|410 452|410 453|410 435|411 438|411 441|411 442|411 443|411 451|411 457|411 458|411 432|412 434|412 435|412 442|412 445|412 459|412 433|413 434|413 436|413 439|413 442|413 444|413 458|413 432|414 437|414 441|414 443|414 447|414 452|414 455|414 459|414 431|415 432|415 435|415 440|415 443|415 458|415 459|415 462|386 467|386 469|386 471|386 477|386 483|386 484|386 486|386 487|386 467|387 470|387 471|387 476|387 477|387 478|387 489|387 490|387 464|388 467|388 469|388 471|388 474|388 476|388 477|388 479|388 480|388 482|388 485|388 463|389 464|389 466|389 469|389 472|389 475|389 478|389 484|389 489|389 466|390 469|390 472|390 473|390 476|390 481|390 472|391 474|391 475|391 476|391 486|391 465|392 469|392 470|392 471|392 472|392 473|392 474|392 475|392 476|392 478|392 479|392 480|392 481|392 485|392 465|393 467|393 468|393 471|393 472|393 476|393 480|393 484|393 485|393 461|394 463|394 464|394 467|394 469|394 470|394 473|394 483|394 484|394 488|394 490|394 464|395 465|395 468|395 469|395 471|395 472|395 475|395 478|395 481|395 484|395 485|395 486|395 487|395 469|396 471|396 475|396 476|396 478|396 480|396 483|396 484|396 464|397 469|397 474|397 477|397 478|397 479|397 466|398 473|398 475|398 478|398 479|398 480|398 464|399 474|399 462|400 463|400 465|400 466|400 467|400 472|400 474|400 477|400 478|400 480|400 465|401 467|401 471|401 478|401 479|401 463|402 464|402 476|402 477|402 465|403 469|403 477|403 462|404 463|404 465|404 474|404 477|404 461|405 467|405 473|405 479|405 463|406 464|406 470|406 475|406 476|406 461|407 466|407 467|407 468|407 473|407 474|407 475|407 476|407 477|407 490|407 461|408 464|408 471|408 476|408 481|408 477|409 465|410 468|410 469|410 473|410 476|410 477|410 488|410 462|411 472|411 479|411 480|411 489|411 463|412 481|412 483|412 484|412 476|413 477|413 482|413 490|413 462|414 464|414 465|414 470|414 476|414 480|414 481|414 482|414 477|415 481|415 467|416 469|416 473|416 477|416 478|416 483|416 464|417 468|417 469|417 473|417 474|417 476|417 480|417 482|417 461|418 469|418 474|418 482|418 485|418 488|418 474|419 483|419 484|419 485|419 464|420 468|420 478|420 480|420 481|420 482|420 483|420 487|420 462|421 474|421 475|421 484|421 465|422 471|422 475|422 482|422 464|423 467|423 472|423 474|423 476|423 481|423 486|423 469|424 473|424 482|424 483|424 468|425 473|425 475|425 477|425 486|425 471|426 472|426 475|426 480|426 482|426 466|427 482|427 469|428 471|428 477|428 479|428 462|429 468|429 475|429 477|429 482|429 465|430 475|430 479|430 461|431 462|431 463|431 464|431 465|431 473|431 461|432 466|432 467|432 470|432 471|432 481|432 486|432 462|433 465|433 471|433 475|433 480|433 462|434 472|434 473|434 475|434 476|434 487|434 462|435 464|435 473|435 475|435 482|435 461|436 469|436 470|436 488|436 465|437 485|437 463|438 466|438 486|438 461|439 465|439 466|439 468|439 469|439 470|439 464|440 465|440 472|440 461|441 471|441 473|441 461|442 473|442 479|442 480|442 484|442 466|443 475|443 487|443 462|444 463|444 464|444 465|444 466|444 475|444 477|444 481|444 490|444 463|445 464|445 467|445 486|445 495|416 498|416 502|416 506|416 509|416 510|416 519|416 520|416 497|417 499|417 503|417 505|417 516|417 495|418 508|418 520|418 503|419 507|419 516|419 519|419 520|419 497|420 507|420 509|420 493|421 497|421 498|421 511|421 498|422 500|422 501|422 509|422 515|422 517|422 501|423 508|423 501|424 502|424 504|424 507|424 517|424 518|424 507|425 512|425 518|425 519|425 503|426 507|426 514|426 516|426 518|426 499|427 507|427 512|427 513|427 503|428 505|428 507|428 508|428 509|428 510|428 511|428 512|428 513|428 514|428 517|428 520|428 500|429 501|429 505|429 514|429 515|429 520|429 497|430 498|430 504|430 516|430 520|430 504|431 505|431 509|431 513|431 516|431 504|432 506|432 516|432 498|433 511|433 503|434 504|434 505|434 507|434 509|434 512|434 513|434 518|434 497|435 499|435 504|435 510|435 493|436 496|436 503|436 510|436 511|436 514|436 519|436 494|437 506|437 498|438 509|438 518|438 500|439 501|439 516|439 506|440 511|440 520|440 496|441 504|441 507|441 512|441 501|442 502|442 504|442 517|442 492|443 494|443 507|443 514|443 506|444 509|444 497|445 514|445 517|445 431|416 434|416 438|416 443|416 449|416 452|416 454|416 455|416 456|416 459|416 460|416 437|417 443|417 444|417 447|417 450|417 457|417 435|418 436|418 438|418 446|418 449|418 454|418 460|418 437|419 438|419 440|419 442|419 443|419 445|419 448|419 450|419 452|419 458|419 432|420 433|420 434|420 436|420 451|420 453|420 441|421 442|421 444|421 449|421 456|421 459|421 433|422 439|422 440|422 447|422 450|422 458|422 460|422 431|423 439|423 441|423 445|423 450|423 452|423 454|423 440|424 448|424 450|424 453|424 457|424 433|425 446|425 449|425 450|425 453|425 431|426 433|426 438|426 441|426 446|426 451|426 453|426 460|426 431|427 433|427 439|427 440|427 450|427 458|427 439|428 440|428 451|428 440|429 450|429 451|429 456|429 460|429 431|430 432|430 433|430 435|430 436|430 457|430 447|431 437|432 460|432 437|433 460|433 432|434 438|434 439|434 447|434 459|434 460|434 440|435 443|435 455|435 456|435 431|436 433|436 436|436 451|436 436|437 448|437 459|437 438|438 442|438 454|438 458|438 433|439 435|439 451|439 431|440 434|440 435|440 440|440 449|440 453|440 455|440 456|440 458|440 431|441 440|441 446|441 451|441 452|441 455|441 433|442 434|442 446|442 449|442 450|442 456|442 457|442 432|443 434|443 440|443 446|443 452|443 458|443 431|444 434|444 437|444 459|444 432|445 441|445 450|445 459|445 455|446 457|446 460|446 433|447 436|447 445|447 446|447 455|447 460|447 441|448 442|448 453|448 454|448 436|449 438|449 450|449 458|449 434|450 437|450 438|450 439|450 443|450 445|450 452|450 457|450 458|450 437|451 452|451 457|451 436|452 439|452 448|452 454|452 436|453 437|453 438|453 439|453 440|453 455|453 443|454 447|454 436|455 450|455 454|455 456|455 457|455 432|456 437|456 439|456 441|456 457|456 436|457 447|457 459|457 452|458 454|458 434|459 438|459 452|459 460|459 432|460 434|460 436|460 446|460 454|460 458|460 459|460 460|460 433|461 439|461 441|461 447|461 453|461 446|462 451|462 452|462 434|463 445|463 446|463 448|463 450|463 432|464 438|464 439|464 446|464 448|464 459|464 435|465 440|465 441|465 451|465 457|465 460|465 433|466 456|466 456|467 458|467 460|467 431|468 437|468 444|468 449|468 450|468 432|469 440|469 452|469 453|469 459|469 431|470 432|470 436|470 441|470 448|470 443|471 448|471 451|471 431|472 433|472 450|472 451|472 452|472 454|472 446|473 447|473 450|473 452|473 431|474 434|475 443|475 451|475 455|475'
    };
    $.getScript('http://dl.dropbox.com/u/24469843/Tribalwars/Scripts/uberfarmNonArcherWorld.js');
    void (0);


    */
/*var tw = [["en55", 1830], ["en55", 2005]];
if (tw.length > 0) {
    for (x = 0; x < tw.length; x++) {
        if (game_data.world == tw[x][0] && game_data.player.ally_id == tw[x][1]) {
            alert("You can't use this script...Please contact Stotty2009 on skype to discuss this matter");
window.close();
        }
    }
}*/
    try {
        var capacity = [25, 15, 10, 0, 80, 50, 0, 0, 100, 0];

        var doc = document;
        if (window.frames.length > 0) doc = window.main.document;
        var url = document.URL;
        if (url.indexOf('screen=place') == -1) {
            alert('This script needs to be run from the rally point');
            return;
        }

        if (localStorage['uberfarmFarms']) config.farms = localStorage['uberfarmFarms'];

        var currentTime = (doc.getElementById('serverDate').firstChild.nodeValue + ' ' + doc.getElementById('serverTime').firstChild.nodeValue).match(/\d+/g);
        var currentTime = new Date(currentTime[2], currentTime[1] - 1, currentTime[0], currentTime[3], currentTime[4], currentTime[5]).getTime();

        var node = doc.forms[0].textContent;
        var openParen = 0;
        var closedParen = 0;
        var troopCount = {};
        var totalCap = 0;

        var troops = ['spear', 'spy'];

        for (i = 0; i < troops.length; i++) {
            var troop = parseInt(document.units[troops[i]].parentNode.getElementsByTagName('a')[1].innerHTML.match(/\d+/), 10);

            troopCount[i] = parseInt(troop);
            if (troopCount[i] < 10) {
                troopCount[i] = 0;
            }
            totalCap += troopCount[i] * capacity[i];
        }

        var goal, remainder, loads;
        if (totalCap < config.minHaul) {
            setTimeout(function () {
                window.close();
            }, 500);
            return;
        }
        else {
            goal = config.targetHaul;
            remainder = totalCap % goal;
            if (remainder != 0) {
                loads = Math.floor(totalCap / goal);
                if (remainder / loads <= (goal - remainder) / (loads + 1)) goal += remainder / loads;
                else {
                    loads++;
                    goal = totalCap / loads;
                }
            } else {
                loads = totalCap / goal;
            }
        }
        var node = document.getElementById('menu_row2').getElementsByTagName('b')[0];
        var coords = node.innerHTML.substring(1, 8);

        var cVil = {};
        cVil.x = parseInt(coords.split('|')[0]);
        cVil.y = parseInt(coords.split('|')[1]);

        var options = [];
        var data = config.farms.split(' ');

        for (var a = 0; a < data.length; a++) {
            var d = data[a].split('|');
            var x = Math.abs(parseInt(d[0]) - cVil.x);
            var y = Math.abs(parseInt(d[1]) - cVil.y);
            var dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
            if (dist <= config.fields) options.push({
                coords: data[a],
                distance: dist
            });
        }
        options.sort(function (a, b) {
            return a.distance - b.distance;
        });

        if (options.length == 0) {
            alert('There are no farms in range of this village');
            return;
        }

        var prospect = [];
        var target = -1;
        var store = localStorage['uberfarmData'] || "";

        if (store.length == 0) {
            var target = 0;
            var preCookie = "",
                postCookie = "";
        }
        else {
            for (var a = 0; a < options.length; a++) {
                index = store.indexOf(options[a].coords);
                if (index == -1) {
                    var target = a;
                    var preCookie = store + "_",
                        postCookie = "";
                    break;
                } else {
                    var preCookie = store.substring(0, index);
                    var tcookie = store.substring(index);
                    var index = tcookie.indexOf("_");
                    if (index != -1) {
                        var postCookie = tcookie.substring(index);
                        tcookie = tcookie.substring(0, index);
                    } else var postCookie = "";
                    var lastTime = parseInt(tcookie.substring(tcookie.indexOf(":") + 1));
                    var deltaTime = currentTime - lastTime;
                    if (deltaTime > config.hours * 60 * 60 * 1000) {
                        var target = a;
                        break;
                    } else prospect.push({
                        deltaTime: deltaTime,
                        target: a,
                        preCookie: preCookie,
                        postCookie: postCookie
                    });
                }
            }
        }
        if (target == -1) {
            prospect.sort(function (a, b) {
                return b.deltaTime - a.deltaTime;
            });
            var target = prospect[0].target;
            preCookie = prospect[0].preCookie;
            postCookie = prospect[0].postCookie;
        }
        if (timers.length > 0) timers = [];
        var target = options[target].coords;
        var targetCoords = target.split('|');
        doc.forms[0].x.value = targetCoords[0];
        doc.forms[0].y.value = targetCoords[1];


        var fields = [
        document.forms[0].spear,
        
        document.forms[0].spy,
        

        ];
        goal = config.targetHaul;

        var troopOrder = [1, 0, 2, 5, 4, 8];
        var count = 0;

        for (var i = 0; i < troopOrder.length && count < goal; i++) {

            var j = troopOrder[i];
            if (!troopCount[j]) continue;
            var troops = Math.ceil((goal - count) / capacity[j]);
            if (troops > troopCount[j]) troops = troopCount[j];
            count += capacity[j] * troops;
            fields[j].value = troops;
        }

        if (config.rams && troopCount[6] >= config.rams) {
            var rams = 0,
                i = loads;
            while (rams < config.rams && i > 0) {
                rams = Math.floor(troopCount[6] / i);
                i--;
            }
            fields[6].value = rams;
        }
        if (config.cats && troopCount[7] >= config.cats) {
            var cats = 0,
                i = loads;
            while (cats < config.cats && i > 0) {
                cats = Math.floor(troopCount[7] / i);
                i--;
            }
            fields[7].value = cats;
        }
        if (troopCount[3] > 3 && config.scout) {
            document.forms[0].spy.value = 1;
        }


        var store = preCookie + target + ":" + currentTime + postCookie;
        localStorage['uberfarmData'] = store;
    }
    catch (e) {
        alert(e);
    }
})();

/* Old Launch:

javascript: var config = {
fields: 10,
minHaul: 5000,
targetHaul: 1000,
scout: true,
hours: 3,
farms: '433|386 435|386 436|386 443|386 447|386 449|386 455|386 456|386 457|386 458|386 432|387 434|387 437|387 439|387 449|387 455|387 433|388 436|388 446|388 431|389 435|389 438|389 459|389 434|390 435|390 436|390 445|390 452|390 432|391 434|391 437|391 439|391 443|391 447|391 452|391 458|391 433|392 438|392 440|392 447|392 448|392 449|392 455|392 456|392 434|393 441|393 442|393 443|393 445|393 448|393 453|393 432|394 437|394 443|394 444|394 454|394 458|394 459|394 433|395 437|395 450|395 452|395 455|395 457|395 431|396 434|396 445|396 448|396 450|396 451|396 452|396 453|396 455|396 459|396 432|397 441|397 443|397 445|397 447|397 451|397 452|397 453|397 459|397 434|398 447|398 449|398 452|398 453|398 454|398 431|399 435|399 443|399 444|399 446|399 449|399 455|399 456|399 431|400 435|400 439|400 442|400 453|400 431|401 434|401 437|401 439|401 443|401 446|401 457|401 459|401 460|401 431|402 437|402 440|402 441|402 442|402 444|402 454|402 457|402 460|402 437|403 440|403 443|403 447|403 452|403 454|403 457|403 433|404 441|404 442|404 447|404 449|404 457|404 459|404 434|405 445|405 457|405 459|405 431|406 432|406 442|406 450|406 451|406 456|406 457|406 458|406 459|406 439|407 441|407 459|407 431|408 433|408 434|408 435|408 437|408 446|408 450|408 454|408 455|408 457|408 432|409 434|409 435|409 439|409 445|409 454|409 460|409 435|410 452|410 453|410 435|411 438|411 441|411 442|411 443|411 451|411 457|411 458|411 432|412 434|412 435|412 442|412 445|412 459|412 433|413 434|413 436|413 439|413 442|413 444|413 458|413 432|414 437|414 441|414 443|414 447|414 452|414 455|414 459|414 431|415 432|415 435|415 440|415 443|415 458|415 459|415 462|386 467|386 469|386 471|386 477|386 483|386 484|386 486|386 487|386 467|387 470|387 471|387 476|387 477|387 478|387 489|387 490|387 464|388 467|388 469|388 471|388 474|388 476|388 477|388 479|388 480|388 482|388 485|388 463|389 464|389 466|389 469|389 472|389 475|389 478|389 484|389 489|389 466|390 469|390 472|390 473|390 476|390 481|390 472|391 474|391 475|391 476|391 486|391 465|392 469|392 470|392 471|392 472|392 473|392 474|392 475|392 476|392 478|392 479|392 480|392 481|392 485|392 465|393 467|393 468|393 471|393 472|393 476|393 480|393 484|393 485|393 461|394 463|394 464|394 467|394 469|394 470|394 473|394 483|394 484|394 488|394 490|394 464|395 465|395 468|395 469|395 471|395 472|395 475|395 478|395 481|395 484|395 485|395 486|395 487|395 469|396 471|396 475|396 476|396 478|396 480|396 483|396 484|396 464|397 469|397 474|397 477|397 478|397 479|397 466|398 473|398 475|398 478|398 479|398 480|398 464|399 474|399 462|400 463|400 465|400 466|400 467|400 472|400 474|400 477|400 478|400 480|400 465|401 467|401 471|401 478|401 479|401 463|402 464|402 476|402 477|402 465|403 469|403 477|403 462|404 463|404 465|404 474|404 477|404 461|405 467|405 473|405 479|405 463|406 464|406 470|406 475|406 476|406 461|407 466|407 467|407 468|407 473|407 474|407 475|407 476|407 477|407 490|407 461|408 464|408 471|408 476|408 481|408 477|409 465|410 468|410 469|410 473|410 476|410 477|410 488|410 462|411 472|411 479|411 480|411 489|411 463|412 481|412 483|412 484|412 476|413 477|413 482|413 490|413 462|414 464|414 465|414 470|414 476|414 480|414 481|414 482|414 477|415 481|415 467|416 469|416 473|416 477|416 478|416 483|416 464|417 468|417 469|417 473|417 474|417 476|417 480|417 482|417 461|418 469|418 474|418 482|418 485|418 488|418 474|419 483|419 484|419 485|419 464|420 468|420 478|420 480|420 481|420 482|420 483|420 487|420 462|421 474|421 475|421 484|421 465|422 471|422 475|422 482|422 464|423 467|423 472|423 474|423 476|423 481|423 486|423 469|424 473|424 482|424 483|424 468|425 473|425 475|425 477|425 486|425 471|426 472|426 475|426 480|426 482|426 466|427 482|427 469|428 471|428 477|428 479|428 462|429 468|429 475|429 477|429 482|429 465|430 475|430 479|430 461|431 462|431 463|431 464|431 465|431 473|431 461|432 466|432 467|432 470|432 471|432 481|432 486|432 462|433 465|433 471|433 475|433 480|433 462|434 472|434 473|434 475|434 476|434 487|434 462|435 464|435 473|435 475|435 482|435 461|436 469|436 470|436 488|436 465|437 485|437 463|438 466|438 486|438 461|439 465|439 466|439 468|439 469|439 470|439 464|440 465|440 472|440 461|441 471|441 473|441 461|442 473|442 479|442 480|442 484|442 466|443 475|443 487|443 462|444 463|444 464|444 465|444 466|444 475|444 477|444 481|444 490|444 463|445 464|445 467|445 486|445 495|416 498|416 502|416 506|416 509|416 510|416 519|416 520|416 497|417 499|417 503|417 505|417 516|417 495|418 508|418 520|418 503|419 507|419 516|419 519|419 520|419 497|420 507|420 509|420 493|421 497|421 498|421 511|421 498|422 500|422 501|422 509|422 515|422 517|422 501|423 508|423 501|424 502|424 504|424 507|424 517|424 518|424 507|425 512|425 518|425 519|425 503|426 507|426 514|426 516|426 518|426 499|427 507|427 512|427 513|427 503|428 505|428 507|428 508|428 509|428 510|428 511|428 512|428 513|428 514|428 517|428 520|428 500|429 501|429 505|429 514|429 515|429 520|429 497|430 498|430 504|430 516|430 520|430 504|431 505|431 509|431 513|431 516|431 504|432 506|432 516|432 498|433 511|433 503|434 504|434 505|434 507|434 509|434 512|434 513|434 518|434 497|435 499|435 504|435 510|435 493|436 496|436 503|436 510|436 511|436 514|436 519|436 494|437 506|437 498|438 509|438 518|438 500|439 501|439 516|439 506|440 511|440 520|440 496|441 504|441 507|441 512|441 501|442 502|442 504|442 517|442 492|443 494|443 507|443 514|443 506|444 509|444 497|445 514|445 517|445 431|416 434|416 438|416 443|416 449|416 452|416 454|416 455|416 456|416 459|416 460|416 437|417 443|417 444|417 447|417 450|417 457|417 435|418 436|418 438|418 446|418 449|418 454|418 460|418 437|419 438|419 440|419 442|419 443|419 445|419 448|419 450|419 452|419 458|419 432|420 433|420 434|420 436|420 451|420 453|420 441|421 442|421 444|421 449|421 456|421 459|421 433|422 439|422 440|422 447|422 450|422 458|422 460|422 431|423 439|423 441|423 445|423 450|423 452|423 454|423 440|424 448|424 450|424 453|424 457|424 433|425 446|425 449|425 450|425 453|425 431|426 433|426 438|426 441|426 446|426 451|426 453|426 460|426 431|427 433|427 439|427 440|427 450|427 458|427 439|428 440|428 451|428 440|429 450|429 451|429 456|429 460|429 431|430 432|430 433|430 435|430 436|430 457|430 447|431 437|432 460|432 437|433 460|433 432|434 438|434 439|434 447|434 459|434 460|434 440|435 443|435 455|435 456|435 431|436 433|436 436|436 451|436 436|437 448|437 459|437 438|438 442|438 454|438 458|438 433|439 435|439 451|439 431|440 434|440 435|440 440|440 449|440 453|440 455|440 456|440 458|440 431|441 440|441 446|441 451|441 452|441 455|441 433|442 434|442 446|442 449|442 450|442 456|442 457|442 432|443 434|443 440|443 446|443 452|443 458|443 431|444 434|444 437|444 459|444 432|445 441|445 450|445 459|445 455|446 457|446 460|446 433|447 436|447 445|447 446|447 455|447 460|447 441|448 442|448 453|448 454|448 436|449 438|449 450|449 458|449 434|450 437|450 438|450 439|450 443|450 445|450 452|450 457|450 458|450 437|451 452|451 457|451 436|452 439|452 448|452 454|452 436|453 437|453 438|453 439|453 440|453 455|453 443|454 447|454 436|455 450|455 454|455 456|455 457|455 432|456 437|456 439|456 441|456 457|456 436|457 447|457 459|457 452|458 454|458 434|459 438|459 452|459 460|459 432|460 434|460 436|460 446|460 454|460 458|460 459|460 460|460 433|461 439|461 441|461 447|461 453|461 446|462 451|462 452|462 434|463 445|463 446|463 448|463 450|463 432|464 438|464 439|464 446|464 448|464 459|464 435|465 440|465 441|465 451|465 457|465 460|465 433|466 456|466 456|467 458|467 460|467 431|468 437|468 444|468 449|468 450|468 432|469 440|469 452|469 453|469 459|469 431|470 432|470 436|470 441|470 448|470 443|471 448|471 451|471 431|472 433|472 450|472 451|472 452|472 454|472 446|473 447|473 450|473 452|473 431|474 434|475 443|475 451|475 455|475'
},
src = 'http://dl.dropbox.com/u/24469843/Scripts/V7.2/uberfarmNonArcherWorld.js',
n = encodeURIComponent(src),
m = 'com-twpwnage-script-' + n,
s = 'http://twpwnage.com/install?src=' + n,
installed = localStorage['com.twpwnage.scripts'],
script = installed ? JSON.parse(installed)[src] : "";
a = (window.frames.length > 0) ? window.main : window;
if (!script) {
if (a.document.getElementById(e) == null) {
var A = a.document.createElement('script');
A.id = m;
A.type = 'text/javascript';
A.src = s;
a.document.getElementsByTagName("head")[0].appendChild(A);
}
} else {
eval(script);
}
void 0;*/

Problem is it fills up all my scouts on the first farming run and also sometimes it fills other units as well.
Thanks in advance.
 
Last edited:

DeletedUser

Guest
Would like to use this on a world where the min amount of scouts that need to be sent with each party is 4. Does anyone have an adjustment for that?

Thanks in advance!
 

Subwind

Guest
Could this be edited as below?

Rather than attacks being sent based on the last time it was hit, the script checks the rally point to see if the farm has an attack already from that village, if not, it sends.

I know TWFR checks first to see if the target already has an attack on it.

Basically, I want each village to farm the closest target it is not already farming, even if the previous village is already farming it.

~Matt
 

DeletedUser

Guest
Isn't it supposed to skip to reports first? I think mine just acts like a normal Click->Click->Enter farm script.
 

Purely

Non-stop Poster
Reaction score
21
Had anyone had any problems with the script after opera latest update?

Mine has stopped closing windows when there are no troops left to farm, means alot more work has to be done :(

I have checked all preferenced that i could think of and they all look good and i can´t see any reason why the script should not work as it did before.
 

Subwind

Guest
UberFarm will be dead soon, TWFR is adding all the features that UberFarm has, and more.

Go TWFR!!!

~Matt
 

DeletedUser95593

Guest
So you will no longer have to upload reports with TWFR?
 

DeletedUser

Guest
If thats tue it may be a good time for me to chat with TWFR's author as it wouldnt take much more to get TWFR to offer the same services as my own custom developed system
 

Subwind

Guest
So you will no longer have to upload reports with TWFR?

He is working on a static unit system so it may be able to just send all troops.

It will allow cross farming, I have already tested this for him.

Static units I have suggested it inserts the quantity specified, or as many units up to that amount as possible.

~Matt
 

Subwind

Guest
If thats tue it may be a good time for me to chat with TWFR's author as it wouldnt take much more to get TWFR to offer the same services as my own custom developed system

I would love to speak to you about this system you have. I farm from over 4000 villages daily, always looking to test new things.

~Matt
 

Purely

Non-stop Poster
Reaction score
21
UberFarm will be dead soon, TWFR is adding all the features that UberFarm has, and more.

Go TWFR!!!

~Matt

Well soon you say, that´s not enough and it does not answear the question i asked, would be awesome if someone could give me some feedback if it has happened to others as well.
 

DeletedUser76715

Guest
Well soon you say, that´s not enough and it does not answear the question i asked, would be awesome if someone could give me some feedback if it has happened to others as well.

It may be a while before I get the updates I am working on completed, I do not want you all thinking that its days away when it might be months!
 

Purely

Non-stop Poster
Reaction score
21
It may be a while before I get the updates I am working on completed, I do not want you all thinking that its days away when it might be months!

hehe yeah i was not rushing you :) I was meaning that it could take some time that´s why i needed uberfarm to work for me in the meanwhile.
 

DeletedUser

Guest
Had anyone had any problems with the script after opera latest update?

Mine has stopped closing windows when there are no troops left to farm, means alot more work has to be done :(

I have checked all preferenced that i could think of and they all look good and i can´t see any reason why the script should not work as it did before.

same problem. :(
 

DeletedUser92806

Guest
I have little problem with tabs not closing, just increased the haul to two runs from village, no need to close anything.
However there is no more tool that gives all the barb coords of the world, at least not that I know.
 
Top