Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Travian Task Queue

Schedule delayed constructions, upgrades and attacks.

Features

Plan ahead as many actions as you wish.

  • Build new buildings later.
  • Upgrade existing buildings later.
  • Send troops later.
  • Train troops later.
  • Research later.

Instructions

  • Schedule constructions and building upgrades by clicking "Build later" or "Upgrade later" links on the respective building site pages.
  • Schedule attacks, raids, reinforcements by clicking the "Send later" button on the Send Troops page.
  • Schedule training of new troops by clicking the "Train later" button in the Barracks, Stables, Workshop.
  • Schedule researching in the Academy, Armory, and Blacksmith by clicking the appropriate links.
  • The script works with the local time on your computer OR server time. Make sure your local time is set correctly no matter which option you use.
  • To work in the server time, right-click Greasemonkey and select "Travian Task Queue: Use server time".
  • You must stay logged to Travian and the web site must stay open in at least one tab.
  • If the action cannot be performed at the scheduled time, it will be canceled. Depending on the type of action, this happens when: there is not enough resources or troops, something else is being built/upgraded.
  • The script will work ONLY with the supported languages! Currently available are en, sk, ba, bg, cn, cz, de, dk, fr, net, fi, hk, hr, hu, it, lt, mx, nl, no, br, pt, pl, ro, ru, tr, se, si, us, uk.
    If you wish to contribute by translating into other languages, see the Developers section please.

Feature Requests

I encourage everyone to suggest new features in the comments.
  • Double-fire for catapults at Rally Pt lvl 20.
  • More info on why tasks failed.
  • Make the tasklist sortable.
  • Optional listing of what was done (task history).
  • Troops icons in the tooltips instead of names.
  • Dragable messages.
  • Switch back to previous village after performing a task.
  • Construction of buildings currently unavailable (because of building levels requirements).
  • Schedule sending hero even if currently he is not in the village.
  • Remove mandatory setting of what nation player is playing.
  • Implement train troops tasks.
  • Implement research tasks.
  • Implement sending resources tasks.
  • Implement hold celebration tasks.
  • Planning attacks by the desired arrival time.
  • Minimize the task list.
  • Provide detailed descriptions of tasks in the task list.
  • Support for multiple villages.
  • Editable times in the task list.
  • Randomize cookie names and encrypt their values to prevent script usage tracking.
  • Show arrival time on task list.
  • Alerts (tooltips, red color) in the tasklist, if there is currently not enough resources for the task.

Known Bugs

  • Missing links for upgrading some buildings on non-English servers (e.g. Rally Point on Czech, Hero's Mansion on Portuguese). Problem with matching the names in the list of buildings if it contains some odd characters.
  • The build/upgrade code needs to be cached.
  • Messages and the tasklist should distinguish between researching new units, and upgrading armor/weapons.
  • Training troops is incorrectly reported as failed.
  • Missing links in the barracks when using the script with Travissimo, Travian Beyond.
  • Combat troops are still being sent as spies occasionally (Romans?).

Developers

Please, help me to develop this script by translating it into other languages or by submitting bug reports.

Translations

If you wish to make the script work with a new language, translate all entries in the aLangBuildings, aLangTasks, aLangStrings arrays and email them to me (my email address is in the script).

Thanks to all who submitted translations in their languages!

Bug Reports

If problems occur:
  • Enable detailed logging by setting LOG_LEVEL = 3 in the beginning of the script.
  • Open the Javascript error console (Tools-->Javascript console)
  • Copy the last few Travian Task Queue entries from the Messages tab along with any error messages and post them in comments. Provide a description of the problem and all that you think is relevant.

History

  • 1.2.5
    • Bugfix: Turkish translation updated.
  • 1.2.4
    • New feature: Croatian translation.
    • Bugfix: Polish and Lithuanian translation updated.
  • 1.2.3
    • Bugfix: The success/failure of training and research tasks is now reported correctly.
    • Bugfix: Portuguese translation updated.
  • 1.2.2
    • New feature: Double fire for catapults (experimental).
    • Bugfix: Training troops didn't work.
  • 1.2.1
    • Bugfix: Multiple translations were added/updated.
  • 1.2.0
    • New feature: Schedule training.
    • New feature: Schedule research.
  • 1.1.14
    • New feature: Coordinates are shown for nameless places (abandoned valleys) in the task list and history.
    • Bugfix: Troop actions (reinforcements, attack, raid) were incorrectly logged in history.
    • Bugfix: The history was not working if using the server time was set.
  • 1.1.13
    • New feature: The number of saved events in the task history can be configured from the Greasemonkey menu. It can be also disabled there.
    • New feature: 'Flush history' link.
  • 1.1.12
    • Bugfix: Troop actions (reinforcements, attack, raid) were not logged in history.
  • 1.1.11
    • New feature: Task history.
    • Change: In the scheduling form, minutes are pre-selected instead of seconds.
    • Bugfix: Switch village back to what it was before firing task.
  • 1.1.10
    • New feature: Sortable tasklist.
    • Bugfix: Lithuanian and Hungarian translations updated.
  • 1.1.9
    • New feature: No need to set your race. Detected automatically.
    • Bugfix: Polish translation updated.

...Trimmed

Full history

Disclaimer

Using this script may be considered cheating and may be against the rules on your game server. Before using this script, please check the official policy of your game server regarding usage of external scripts and programs. I do not encourage the widespread use of this script.

To my best knowledge, using Greasemonkey scripts including Travian Task Queue for playing Travian is not explicitly forbidden (read the Game rules). If the rules of your server ban usage of such scripts, you should not install Travian Task Queue on your computer.

License

Copyright 2007 Richard Laffers

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.




May 13, 2008
tiagozn User

Guys,

I have a problem. I'm using travian beyond with travian task queue. If I leave a task queued in my number 2 village but i change my actual page to my 1st village the queued task doesn't work properly.
Is that correct?


 
May 8, 2008
the un4giwen User

How i can activate this scripts???


 
May 4, 2008
Lathan Bidwell User

I have some fixes I've found...

Line 340 us names for Brickyard should be Brickworks

Line 2406 function getBuildingID a way to get it from the gid not just the id.
function getBuildingId() {

var re = /.*build\.php\?([a-z=0-9&]*&)?id=([0-9]{1,2})/i;

var iSiteId = window.location.href.match(re);

if(iSiteId != null) {

return parseInt(iSiteId[2]);

} else if( window.location.href.match( /gid=[0-9]{1,2}/ )) {
var link = document.getElementById('lright1').childNodes[1].childNodes[0].childNodes[0].childNodes[0].childNodes[2].href;
iSiteId = link.match( /gid=([0-9]{1,2})&id=([0-9]{1,2})/ );
return parseInt(iSiteId[2]);
} else {
_log(2, "Building site ID not found");

return false;

}

}

Thanks. You're doing a good job!


 
May 4, 2008
Lathan Bidwell User

Could you make a delayed send resources?


 
Apr 26, 2008
ben_jack65 Scriptwright

There is an error in the french translation :

case "fr": //by arn0
aLangBuildings = ["", "Bûcheron", "Carrière de terre"....

Should be
case "fr": //by arn0
aLangBuildings = ["", "Bûcherons", "Carrière de terre"...

(There is a s at the end of Bûcheron)

Also did you find out what exactly is the "a" parameter of the POST when you launch an attack. You set it permanantly to a=12345 but why?


 
Apr 17, 2008
no1wafer User

Hi
I wonder if it is possible to make a feature of delayed troop retreat?
THANKS


 
Apr 15, 2008
xvier User

hi,

i had been using your script but somehow it failed to send troop today.
The error console shows this

Error: not well-formed
Source File: http://s7.travian.com/karte.php?z=440066
Line: 5, Column: 11
Source Code:
<link href="new.css" />----------^

Error: oSpan is not defined
Source File: file:///C:/Documents%20and%20Settings/kellchee/Application%20Data/Mozilla/Firefox/Profiles/tkfdz0ub.default/extensions/%7Be4a8a97b-f2ed-450b-b12d-ee082ba24781%7D/components/greasemonkey.js
Line: 2599

And the script wont work even multiple install and uninstall of greasemonkey and the script. looking forward for your help.

BTW, does this script work with new greasemonkey which is 2008 while yr script is 2007?


 
Apr 14, 2008
xen121 User

I got the version Gold King1 linked which now works with attacks.

Dumb question...if I queue a bunch of attacks up at work which wont land for 12hours. I turn off my laptop and then turn it back on when I get home and hour later. As long as I loggin when I get home are the attacks still queued?


 
Apr 11, 2008
GOLD KING1 User

case "AE":
default: // default is english
aLangBuildings = ["", "غابة الخشب", "حفرة الطين", "منجم الحديد", "حقل القمح", "معمل النشارة", "معمل الطوب", "مصنع الحديد", "المطاحن", "الخباز",
"المستودع", "مخزن الحبوب", "الحداد", "مستودع الاسلحة", "ساحة البطولة", "المبنى الرئيسي", "نقطة التجمع", "السوق", "السفارة",
"الثكنة", "الاسطبل", "المصانع الحربية","الاكاديمية", "المخبا", "مركز المدينة", "السكن", "القصر", "الكنز",
"مكتب التجارة", "الثكنة الكبيرة", "الاسطبل الكبير", "سور المدينة","السور الاضي", "سياج الاغريق", "اعمال البناء",
"مصنع العصير", "المصيدة", "قصر الأبطال", "المستودعات الكبيرة", "مخازن الحبوب الكبيرة", "العجزة"];
aLangTasks = ["بناء", "تطوير", "هجوم", "فتح قسم", "تدريب"];
aLangStrings = ["البناء لاحقا", "تطوير لاحقا", "الهجوم لاحقا", "فتح القسم لاحقا", "جدولة هذا العمل لاحقا", "لقد بداءالبناء ", " هذه العملية غير معروفة النتائج.", "المستوى", " لا يمكن ان يبناء.", " لا يمكن ان يطوير", "هذا العمل مجدول",
"العمل القائم", "لا يمكن ادراج هذه العملية لان.", "المهم المجدولة غير متاحه",
"المهام المجدولة", "حذف", "ارسال لاحقا", "لم يتم اختيار الجنود.", "الجنود متوجهين الى",
"جيوشك لا يمكن ارسالها الى", "مساندة", "هجوم", "نهب", "تصويب المقلاع نحو", "عشوائي",
"عند", "او بعد", "ثانية", "دقيقة", "ساعة", "يوم", "التجسس على الجيوش والموارد",
"التجسس على الجيوش والتحصينات", "بعيد",
"لا يمكن جدولة هذا الهجوم لان الهدف غير محدد ", "الموقع غير موجود", "فرز بواسطة:",
"النوع ", "الوقت ", "الهدف ", "الخيارات ", "القرية ", "مهام محفوظه", "محفوظات حالية",
"بداية عملية البحث ", " لا تستطيع اعادة البحث"];
aLangTroops[0] = ["Legionnaire", "Praetorian", "Imperian", "Equites Legati", "Equites Imperatoris", "Equites Caesaris", "Battering Ram", "Fire Catapult", "Senator", "Settler", "Hero"]; //Romans
aLangTroops[1] = ["Clubswinger", "Spearman", "Axeman", "Scout", "Paladin", "Teutonic Knight", "Ram", "Catapult", "Chief", "Settler", "Hero"]; //Teutons
aLangTroops[2] = ["Phalanx", "Swordsman", "Pathfinder", "Theutates Thunder", "Druidrider", "Haeduan", "Ram", "Trebuchet", "Chieftain", "Settler", "Hero"]; //Gauls
break;


 
Apr 8, 2008
GOLD KING1 User

see this

http://www.asianexpress.com/wp-content/uploads/...


 
Apr 8, 2008
GOLD KING1 User

hi,I need some help

i have a problem,I have used this script with no problem in the ae server
and everything is ok but when im planning attack and try to send it later, nothing happen. im playing romans

i reinstaled my firefox, and got the newest version of java but it doesnt helped

i would like to send troops later. what should i do?

How can I fix the problem

or Script is not working anymore

Thank you.


 
Apr 7, 2008
chuck User

Ok. Fixed armory problem. Thanks, f00m@nB@r.

Anyone have any suggestions for training troops not working?


 
Apr 7, 2008
chuck User

Build later and upgrade later don't appear for armory. Train later never works for any troops.


 
Apr 6, 2008
matejdro User

WTF? Task pane just dissapeared and then no task has been performed. Why that happened?


 
Apr 6, 2008
eusebiowinbet User

Thanks Voltron, MrKurt and of course the great Oschahie...


 
Apr 6, 2008
eusebiowinbet User

I have used this script with no problem in the portuguese server, but now in the Spanish (.net)server 3 it's not useful, because the option to build latter doesn't work.
Can anyone tell me the reason and if there is another script that can be used? thanks


 
Apr 5, 2008
sibolga User

hi everbody,

Does this script particularly about upgrade tasks work also for those who has more than 1 village ? if yes, how does it work ?
Thanks


 
Mar 31, 2008
matejdro User

Can anybody tell me, what mean Storage URL and other options?


 
Mar 30, 2008
matejdro User

Why i get task failed at upgdading resources, if there is enough resources and there are no any other building jobs?


 
Mar 30, 2008
matejdro User

Why addon say to me task failed if there are enough resources and there are no another building task? Well, and i have suggestion. Can you make travian always stay logged in, because if you are afk and you set job times, travian logout you after a while and jobs cannot be performed!


 
Mar 30, 2008
Driekus User

Script is not working anymore after timechange.
wintertime --> summertime.
How can I fix the problem


 
Mar 28, 2008
Deimus User

Hi
Here is the update for cl (chile or chilean :P)

case "cl":  //Spanish Chile - by Deimus
		aLangBuildings = ["", "Bosque", "Barrera", "Mina de Hierro", "Granja", "Serrería", "Ladrillar", "Fundición de hierro", "Molino", "Panadería", "Almacén", "Granero", "Herrería", "Armería", "Plaza de torneos", "Edificio principal", "Plaza de reuniones", "Mercado", "Embajada", "Cuartel", "Establo", "Taller", "Academia", "Escondite", "Centro Cívico", "Residencia", "Palacio", "Tesoro", "Oficina comercio", "Gran Cuartel", "Gran Establo", "Muralla", "Terraplén", "Empalizada", "Mansión del Arquitecto", "Cervecería", "Trampero", "Hogar del héroe", "Gran Almacén", "Gran Granero", "Maravilla"];
		aLangTasks = ["Construir edificio", "Ampliación", "Atacar", "Investigar", "Entrenar"];
		aLangStrings = ["Construir más tarde", "Ampliación más tarde", "Atacar más tarde",	"Investigar más tarde", "Programar esta tarea para más tarde", "Hemos empezado a construir el edificio ", " fue intentado con resultado desconocido.", "Grado", " no puede ser construido.", " no puede ser mejorado.", "La tarea ha quedado programada.", "Producción actual:", "No se puede programar esa tarea ahora.", "?La programación de tareas no está disponible!", "Tareas programadas", "Eliminar", "Enviar más tarde", "No se selecionaron tropas.", "Tus tropas se enviaron a", "Tus tropas NO han podido ser enviadas", "Refuerzo", "Atacar", "Saquear", "Catapultas atacarán...", "aleatorio", "a", "o después", "segundos", "minutos", "horas", "días", "Espiar recursos y tropas ", "Espiar defensas y tropas", "fuera(away)", "El ataque no se ha programado porque no se fijo el objetivo.", "al cuadrante ns", "Sort by:", "type ", "time ", "target ", "options ", "village "];
		aLangTroops[0] = ["Legionario", "Pretoriano", "Imperano", "Equites Legati", "Equites Imperatoris", "Equites Caesaris", "Ariete Romano", "Catapulta de fuego", "Senador", "Colono", "Héroe"];  //Romanos
		aLangTroops[1] = ["Luchador de Porra", "Lancero", "Luchador de Hacha", "Emisario", "Paladín", "Caballero Teutón", "Ariete", "Catapulta", "Cabecilla", "Colono", "Héroe"];  //Germanos
		aLangTroops[2] = ["Falange", "Luchador de Espada", "Batidor", "Trueno de Theutates", "Jinete Druida", "Jinete Eduo", "Ariete", "Catapulta de guerra", "Cacique", "Colono", "Héroe"];  //Galos
	break;


 
Mar 24, 2008
openview User

Extremely useful.. But I need some help.

I've drag the window up, but now I just see after having 3 tasks, and I've no way of moving the task window


 
Mar 21, 2008
plm777 User

i have a problem:
i am playing on polish speed and trying using this script. everything is ok (planning buildings etc.) but...
when im planning attack and try to send it later, nothing happen. im playing romans.
i reinstaled my firefox, and got the newest version of java but it doesnt helped

i would like to send troops later. what should i do?


 
Mar 18, 2008
zubyoO8KyNJz... User

Or, yeah, we could fix the regex to not care, too.

1446: var re = new RegExp("(.*)\\s[^0-9]*\\s[0-9]{1,3}$", "i"); // Will be used later for matching buildings and resource sites


You could comment on this script if you were logged in.