Script Summary: We just went silver! Schedule delayed constructions, upgrades, researches, attacks/raids/fortify, parties, train troops/traps, demolishes, merchants, SendBack/Withdraw, Auto-Login, and Auto-Refresh. Multi-Language. Almost all servers. No cookies. No off site code. No Bull. Version 1.9.10c (5/31/2011)
Version: 1.9.10c
PLEASE DONATE TO KEEP ME FED, IM UNEMPLOYED
Mention TTQ in your donation message!Remember, PayPal takes a cut. Please keep your donates at least $2 or more.(if its too low, PayPal takes it all)

I have spent many many many hours (months even) on this script, the least you can do is send me one or two hours worth of your time.
OMG! I finally made a New Version!!
Yes, its true. After almost a year. I finally made a new version. Its actually quite surprising that the code has remained quite stable all this time. Even so that this update is not really big. Just a few little things mainly. And making it compatible for FireFox 4.This does NOT work for Travian 4
Use Travian Task Queue for Travian 4 instead: http://userscripts.org/scripts/show/102305Features:
Plan ahead as many actions as you wish.- Build new buildings later.
- Upgrade existing buildings later.
- Send troops later.
- Train troops later.
- Research later.
- Demolish later.
- Party later.
- Build Traps later.
- Send Merchants Later.
- Same Server multiple account compatible.
- Multi-Tab Compatible.
- Doesn't use cookies or off-site (remote) code.
- Auto-Refresh (default is currently at 30 mins)
- SendBack/Withdraw Troops Later (new!)
- Auto-Login (new!)
Suggestions:
Add a "Send Later" button to Markets.v1.9.8- Add a looping/auto-repeat option.
- More info why tasks fail.
Gauls auto-traps later.v1.9.7- Set up parties in Palace/Residence.
Add update script option.v1.4.9Variables instead of cookies.v1.5.0- Found New Village Later
Withdrawl/Send Back/Release Troops Laterv1.9.9Auto-Loginv1.9.9- Feast Later in Brewery
- Fast Switch user, possibly Switch user later task
- Add expected finish build time for tasks in task queue.
- Add autofill with time resources will be available.
- Add a way to reset TTQ variables.
- Check for required resources before trying to issue build command.
- Temporarily disable script for capcha screens.
Updates:
- v1.9.10c (5/31/2011)
- Updated French "fr" translation by Krysaphir
- Added "in" translation. - v1.9.10b (4/18/2011)
- Removed the manual update feature for the fear of getting noob slammed by false accusations of "irresponsibility" that suddenly popped up. Feel free to read this entertaining conversation: http://userscripts.org/topics/72395 - v1.9.10 (4/17/2011)
- Fixed issue with Fire Fox 4 compatibility. Now, you can click that OK button.
- Rewrote a bit of the Send Merchant Confirmation code. Now, it should better detect if the merchant was successful or not. Before, if there was a 1 second or more lag, it would falsely say that the merchant was maybe not successful. Now, It allows for upto 9 seconds of lag.
- Fixed autologin. On some of the login pages it would not autologin. This was because the include used *.php, but sometimes the URL your at only shows something like this: http://s1.travian.com (so all i had to do was fix the include)
- Fixed the - Upgrade Later - display, it was saying "ndash Upgrade Later ndash".
- Added error message for in some cases when it could not find an Existing building to upgrade.
- Relocated the TTQ version/timestamp tag. With the new travian look, it was getting covered by the new buttons. - v1.9.9b (5/13/2010)
- Fixed some issues with last version. Catapult targeting should now work.
- Rewrote a bit more of the attack code keeping the new method in mind. Should be more reliable. Ya See, there are like 4 sections to the attack code, and now all but one have been rewritten. The Send Troop confirmation has not been rewritten. It works, but I suspect its capable of false positives.
- Cleaned up some junk I left behind, namely debug logs.
- Fixed Send Troops button. If you were on the Send Troops screen, then changed villages, it would break.
- Fixed some issues where Traps were gumming things up. Traps are listed as a troop (you can train them), but they dont attack and stuff. So, a little patchwork was needed.
- Fixed some code in handleTimerForm (the code that runs when you click OK to schedule the task) that looked really dodgy, it appeared to prevent (accidentally) catapult targeting of buildingID 1.
- Fixed getTroopsInfo to be more compatible with Traps.
- I forgot to mention, some of these fixes in the two v1.9.9 versions also fixed some compatibility issues with running with Travian Beyond.
- Updated Japanese "jp" translation by stchu. - v1.9.9 (5/11/2010)
- World Wonders Rejoice Again! Fixed code that stopped marketplace from working. In fact I rewrote a significant portion of the marketplace/train/send troop code with a new way of doing things, it should be more reliable and a tiny bit faster. In fact, it makes the old way of doing it a bit embarrassing, but now its quite KISS. There are still a few areas I should probably rewrite with this in mind.
- Fixed Scouting, but maybe broke catapult targeting, needs testing.
- New Code fixed train traps too, but like the troops, the confirmation will say it failed (even tho it didnt) if the language array is bad.
- Fixed/Updated the includes/excludes.
- Changed default refresh rate to 30min (with a random up to +/- 5min modifier)
- Auto-Refresh now reloads the window, instead of loading dorf in the background, this should better help to keep it fresh.. yaa...
- Restructured some code, now the languages are closer to the top.
- Added time zone info to the Scheduled Tasks window, this also brings two new entries for the languages. Now, aLangStrings is 68 words/phrases long.
- Cleaned up more code.
- Added HALT message. This message will show when TTQ goes to trigger a task. This is to help prevent you from making a click while TTQ is working. This HALT message shows the task information, if for some reason the task freezes or crashes, you should atleast be able to see what task it was now. (Remember interference with other scripts that are actively doing stuff can cause tasks to fail in TTQ)
- Changed the way many things display, you will see. Namely, task infos.
- Fixed Party later links not showing.
- getVillageName has basically been rewritten. It now caches names its already been told to get on this load. Now, its faster when TTQ is showing the same village name multiple times. getVillageName also now has a short and long way of printing the village name (with or without the extra XY coordinates)
- Added Auto-login. Now, on the standard login screen (which is not true in all cases for some reason), if FireFox has Auto-Filled your username and password, TTQ will kindly click OK for you.
- Updated Latvian "lv" translation by sultans.
- Updated Danish "dk" translation by polle1.
- Updated Malay "my" translation by ocellatus.
- Updated Vietnamese "vn" translation by me.
- Updated International "com" translation by me.
- Updated Australian "au" translation by me.
- Updated Czech "cz" translation by me.
- Updated German "de" translation by me.
- Updated Italian "it" translation by me.
- Updated United States "us" translation by me.
- Added "org" to "de" translations. - v1.9.8 (2/10/2010)
- World Wonders Rejoice! The Send Later button for the Marketplace has finally arrived! Now, you can goto the Marketplace, enter in the XY coordinates (unless its already there), enter in the resources to send, and click "Send Later", in the TTQ window that pops-up, enter in the time to send or time to wait. Click OK. Once your Send Merchants task is in the Task Queue, you can hover your mouse over it to see what resources are scheduled to send. Right now, once you schedule a Send Merchants task you can not change the amount of resources to send on that task, you will have to delete the task and reschedule a new one. But, with recent changes(since v1.8.8), once you schedule any task you can click on it in the Task Queue and create copies with different scheduled times using the Add and Add/Close buttons, so its a little easier to schedule repetitive things like feeding the WW.
- TTQ now stores all settings/tasks/variables according to server AND user id (uid). Now, you should be able to have different task queues for each account, regardless of server. (before, all the tasks queues of all accounts on a single server were one queue)
- Cleaned up various unused or obsolete code. Cleaned up translations; there were some unused arrays added in there somehow.
- Fixed the aLangStrings array for all languages. This array needs to have 66 elements in it now. Many languages were missing chunks of words, or had extra or wrong ones. Now, you should no longer see "undefined" on any TTQ window or button. The English will display in those places where proper translations are not available. All English displayed words should be correct (I cant say the same for translations). WE NEED TRANSLATORS! I also numbered the words in the aLangStrings arrays for all languages to make it easier for the translators to cross reference to get an idea of what its trying to say.
- Added "Send Merchants" (to aLangTasks) and added tribe names to their respective arrays (aLangTroops). Also, created a new language array (aLangResources = ["Lumber","Clay","Iron","Crop"];) to all languages. NEED TRANSLATIONS!
- Added hack to Send Resources screen, now you can enter in resources even if there are no merchants here.
- Added ability to display owned village names when only the XY or Z coordinates are available.
- Refined getActiveVillage, now it only runs once on each load. Instead of whenever TTQ needs it.
- Various slight and minor refinements in places. Just trying to increase reliability/stability/speed.
- Completely rewrote/redesigned the getRace code. Before, TTQ was just randomly looking for troop names on any screen. And assumed if it found one that it was your troop. Obviously, this can cause problems. As if you have reinforcements, it may detect a different race. And sometimes troop names are in plural and not detected. As well, TTQ needs to reload the page when it detects that the race has changed. With the previous problems plaguing TTQ, it would often cause a second reload to happen on clicks in Travian, quite annoying, hopefully this is fixed. Now, TTQ will only set the Race when its sure it knows what it is. Otherwise, it will use the previously saved race for your server/account. TTQ will now detect the race on these screens (assuming your translations are correct):- Player info screen (just added the translation, so most non-english servers will not work).
- Rally Point screen regardless if you have any troops there.
- Barracks/Stables/Workshop screens, only if you can actually build anything there.
- Academy, as long as you have not researched everything
- Armoury/Blacksmith, only when something is listed
- Trapper = Gual
- Updated Czech "cz" translation by me.
- Updated German "de" translation by me. - v1.9.7c (2/5/2010)
- Cleaned up some code.
- Refined the upgrade/build function. Now, it will check the link to make sure its the correct one and only trigger on the correct one. Before, if it did not find the right link, it would build what ever the bottom-most link on the page was (usually this is just fine, but if for some reason the building get changed, or not be there, by the time TTQ goes to build it, then TTQ will now not build the wrong one. It will not build if it cant find the right one. At least, thats the plan.). - v1.9.7 (2/5/2010)
- Got rid of the preloader. The preloader was used (for some reason) on building new buildings and upgrading existing buildings. It downloaded the code to execute the build 20 seconds before the task was to be triggered. This has always plagued TTQ. If you are playing Travian, you may have made a click or two in the past 20 seconds before a build goes to trigger, causing it to fail. Also, with multiple tabs open, TTQ is coming in a multiple times faster for checking for tasks, causing it to get gummed up and fail frequently with multiiple tabs. Especially, if you got a lot going on. Now, the building/upgrade task no longer requires the preload to have finished. So, once it triggers, as long as its not interrupted (could be a couple seconds or less, depending on computer/connection), it should succeed. This should greatly increase stability and reliability in many situations. This new code is also much shorter and simpler, following the KISS ideas. And, I was able to make building and upgrading the same function instead of separate task functions.
- Added Multi-Tab Management. Now TTQ only will actively run in one tab. The other tabs (of the same server) will wait their turn until the controlling tab gives up its control. Any time a click in Travian is made (actually, any unload) will cause the controlling tab to give up control, thus, usually, giving this tab that just reloaded the control. Closing a tab gives control to the first tab to ask for it (one of the ones that was waiting). Ya See, all tabs are asking for control every 10 seconds. And since the tabs were opened at basically random times, then the requests are coming in all the time at random times. It could be possible for another tab to grab the control once control has been released (say, after you make a click) but before your page loads to take the control itself. However, it doenst matter what tab has control, as long as only one is allowed to do anything.
- The Multi-Tab Management and the removal of the preload, coupled together, should greatly increase reliability for you big multi town players with a ton of tabs open and a bazillion things in the task queue going off all the time. LET ME KNOW HOW IT WORKS FOR YA!
- Added the Gual Auto Trap Later feature that has been sitting in the suggested box for forever. It works just like troops. And as mentioned below, you can train a Trap, and if it says it fails, its either because your translation is wrong or you really cant train a Trap right then for some reason. If your translation is wrong, it will always say it failed, even tho it will succeed.
- Refined Troop/Trap Training confirmation. Now it checks the troop name you see building in the queue for confirmation (before it was checking the title of the image, which was something else but not visible for translators).
- Added Great Barracks, Great Stables and Trapper to the list of buildings for troop training. Hopefully, you can train troops/traps in these buildings now.
- Made the trim functions faster/more accurate.
- Updated "ae", "ba", "bg", "br", "cl", "us" and I guess "uk" and "com" translations for traps. All other have "Traps" listed. As this is probably wrong, but the task will still succeed, just not confirm.
- Updated Bulgarian "bg" translation by me.
- Updated Portuguese "br" translation by me. - v1.9.6 (1/31/2010)
- Fixed the confirmation on Troop Training. It should now give a green positive confirmation that your troops were built (before it would always fail on the confirmation, even if the task was successful). Now, if you get a failed Troop Training confirmation (red window), it will be because either your translation is wrong for that troop, or you really can't train those troops for some reason, and the task will have actually failed. If your translation is wrong, the task can still succeed, just the confirmation will always say it failed.
- Cleaned up the debug.
- Updated Arabic "ae" translation by me.
- Updated Croatian "ba" translation by me.
- Updated Chilean "cl" translation by me.
- Fixed "ar" translation, those servers seem to be "cl", so I just removed the old translation and pointed "ar" to "cl". My guess is that they are slowly removing the "ar" servers. - v1.9.5 (1/25/2010)
- Fixed research later not working.
- Updated Indonesia "id" translation by Rahwana.
- Updated Russian "ru" translation by v_kir. - v1.9.4 (1/20/2010)
- Fixed getBuildingID. It was failing to find the building ID on some servers. Causing the script to break in places. Things like building troops were not working on some servers. And is now nicer with Travian Beyond in places.
- Fixed some issue with the TTQ added hero box crashing Travian Beyond. And changed "away" text color to the green with a pointer cursor.
- Updated Romanian "ro" translation again by me this time! Finally, all the buildings should be working now for you guys, enjoy!
- Several changes by dfissue which include:- [feature] You can now demolish a building later (experimental, need testing), also added language strings.
- [feature] Changed style of hero textbox in Send Troops page to match original.
- [feature] Automatically select the value in the textboxes for training sites (e.g. barracks) when they have focus.
- [feature] Changed style of buttons for "Train Later" and "Attack Later".
- [fix] Updated code to work with the new research queue in T3.6
- [fix] Updated code to correctly detect the site ID.
- [fix] Removed extra colon in greasemonkey menu.
- [other] Clean up of code.
- v1.9.3 (12/13/2009)
- Fixed building later not showing for new buildings (by dfissue).
- Updated Romanian "ro" translation by fulga. - v1.9.2 (12/07/2009)
- Even more! Changes/Fixed by dfissue which include:- Updated Hong Kong "hk" translation by dfissue.
- Removed "Upgrade Later" links from buildings/fields that are at maximum.
- Stopped script from trying to add the "Reseach Later/Train Later" links when the building is still building its first level.
- Utilized the new "+1" that is in your armoury when you are currently upgrading a troop. Now the script will remove the "Upgrade Later" link when you are at level 19 and are researching level 20.
- Cleaned up getBuildingId(). Protected against misdirects.
- v1.9.1 (12/04/2009)
- Changes/Fixed by dfissue include:- Fixed Upgrade Later links in Armour/Blacksmith.
- Added kill script at a system message page(from travian).
- v1.9.0 (12/02/2009)
-NEW Redesign written by ATOMIC2 with new sort button design written by dfissue.
- Changes/Fixed by dfissue include:- Sort buttons = new look, also hover over them and they turn light-gray and when clicked it turns white (so you know what you just sorted for)
- Embed images from NEW Redesign (nice!)
- Fixed TTQ windows from under-lapping the h1 Title (say.. your village name)
- Cleaned up some mouse behavior on the TTQ windows. Helped to prevent other browser triggers when we are moving TTQ windows or doubleclicking their title bars.
- Added TTQ logo to Scheduled Tasks
- Changed/Fixed various graphical tweaks.
- Added kill script on logout.
- Added Win the Lottery Button. Click it. Win the Lottery. (sweet!)
- v1.8.9 (11/30/2009)
-NEW Redesign written by ATOMIC2 with new sort button design written by dfissue.
- Fixed (sorta) Town name in task queue with one town accounts.
- Updated Romanian "ro" translation by ATOMIC2. - v1.8.8 (11/28/2009)
-Restructured some code. Reduced the overall total number of lines of code. (And managed to break the Send Later button.. sorry, fixed in v1.8.9)
- Added changes and fixes written by dfissue. These changes and fixes include:- Better task management capabilities. Now you can click on a task in the task list and the "Add/Edit" window opens. There are three buttons. The first one "Edit and close" will save any changes you make on this task and close this window. The second one "Add and close" will create a new task and close this window. And finally, the third button "Add" will create a new task but keep this window open (so you can create more).
- Hopefully fixed issue where sometimes it drags the window when trying to close it.
- Script now kills itself on login screen. (WIKI:possible autologin feature?)
- Few other various fixes/changes. Maybe dfissue could explain better.
- v1.8.7 (11/25/2009)
- Added changes and fixes as suggested by shadowx360. The changes and fixes I wrote include:- Changed "builing" to "building"
- Changed i++ to ++i
- You can now double-click on the Task List to minimize/maximize it.
- v1.8.6 (11/22/2009)
- Fixed Party Later (the task completed will say it failed, but it worked)
- Updated Hong Kong "hk" translation by dfissue.
- Added changes and fixes written by dfissue. These changes and fixes include:- No more moving the set task window around when drag-selecting time denominations (when picking minutes or hours or days by dragging).
- Using proper RegEx to fix issues from 10/29/09 (instead of my hack job).
- Added Title at top of Travian. This title shows TTQ version and load time.
- Stopped script from trying to find town names. It should now show coordinates when setting tasks (as well as in history and confirmation windows).
- Removed "Research Later" links when units are fully researched (at level 20).
- Now you can hit Enter and/or OK button to set Task.
- v1.8.5 (11/17/2009)
- Fixed Send Catapults and Scouts
- Fixed race detection
- Added Hebrew Servers "HE" and "IL".(needs testing) by DMaster - v1.8.4 (11/13/2009)
- Fixed Send Troops (WOOT!)
- Fixed Away-Hero-Box not showing up (WOOT! AGAIN!) - v1.8.3 (11/08/2009)
- Fixed update?
- Updated translations for "th", "asia" (Thai) by off99555. - v1.8.2 (11/06/2009)
- Fixed Party Later Links in Amoury and Blacksmith (removed them).
- Updated some language things. - v1.8.1 (11/05/2009) - First release by Pimp Trizkit.
- Original "Pimp" version.
- Fixed Issues created by Travian on 10/29/09.
- Updated translations for "pt" by nomadewolf. - v1.8.0 (07/27/2009) - Last Release by Nevam.
- Fixed Firefox 3.5 issues.
- Updated translations for "no" by Pimp Trizkit. - v1.6.0 (06/30/2009)
- Added Parties.
- Fixed Research.
- Send Attacks (needs testing).
- Train troops in one town.
- Updated translations for "tr" by sanalbaykus.
- Updated translations for "en" by COKEDUDE.
- Updated translations for "ir" by nekooee.
- Updated translations for "pl" by CamboX.
- Updated translations for "lv" by sultans. - v1.5.7 (06/23/2009)
- Slight changes.
- Updated translations for "it" by iTookUrNick.
- Updated translations for "fi" by zqqou.
- Updated translations for "tr" by kachack.
- Updated translations for "ph" by BenzCode. - v1.5.6 (06/15/2009)
- Try and fix for com server (thanks Dragun).
- Updated translations for "fr" by banana_phone.
- Updated translations for "de" by tera.
- Updated translations for "lv" by sultans. - v1.5.5 (06/07/2009)
- Fix for some of the language issues with strange characters. - v1.5.4 (06/07/2009)
- Fixed for extra div on com servers. - v1.5.3 (06/07/2009)
- Turned off auto-training.
- Fixed sort bug.
- Fix languages
- Added changes to "Send Later" and "Train Later" buttons.
- Updated translations for "jp" by miyako
- Updated translations for "hk" by tedted
- Updated translations for "lv" by sultans
- Updated translations for "mx" by Fidelmty - v1.5.2 (06/01/2009)
- Fixed more language bugs.
- Fixed "Send Later" button.
- Updated translations for "it" by Toto123
- Updated translations for "ee" by hit^ - v1.5.1 (05/31/2009)
- Fixed language bug.
- Updated translations for "dk" by polle1
- Updated translations for "bg" by elephant
- Updated translations for "net" by Kanela - v1.5.0 (05/29/2009)
- Fixed dorf1, and 2 bug.
- Removed wrong language keys. - v1.4.9 (05/27/2009)
- Fixed race check bug.
- Added update link in greasemonkey tools menu.
- Added translations for "kr" by Kim Sung Chang
- Added translations for "vn" by botayhix
- Added resource translations for "br" by cuneopippo - v1.4.8 (05/26/2009)
- Fixed missing break;.
- Added translations for "vn" by botayhix
- Added translations for "ir" by atabak
- Added translations for "ru" by millioner
- Added translations for "br" by danielbc
- Added translations for "ro" by BogdanH14
- Added translations for "it" by iTookUrNick
- Added resource translations for "cn" by congxz6688
- Added resourse translations for "br" by danielbc
- Added resourse translations for "jp" by miyako - v1.4.7 (05/23/2009)
- Fixed main building upgrade.
- Added translations for "se" by storgran - v1.4.4-1.4.6 (05/22/2009)
- More bug fixes.
- Fixed tribe glitch.
- Fixed building later.
- Added translations for "th" by LighTninGBlitZ
- Added translations for "my" by jintempang
- Added translations for "si" by matej505
- Added translations for "bg" by elephant - v1.4.3 (05/21/2009)
- Fixed unknown (thanks danielbc).
- Better race detection.
- Timezone selection fix. - v1.4.2 (05/20/2009)
- Changed server detection. - v1.4.0 (05/19/2009)
- Updated for Travian 3.5. - v1.3.7 - First Release by Nevam.
- Original "Nevam" Version. - ??Missing history??
- v1.2.10 (10/06/2008) - Last Release by Risi.
- Bugfix: Fixed Slovak translation. - v1.2.9 (09/30/2008)
- Added new languages. - v1.2.8 (07/15/2008)
- Bugfix: co.uk server is recognized properly.
- Updated "ae" translation. - v1.2.7 (07/15/2008)
- Improved language detection. If it fails, the script defaults to English. - v1.2.6
- Use of cookies eliminated. Greater privacy.
- Bunch of new languages added. - v1.2.5
- Bugfix: Turkish translation updated. - v1.2.4
- New feature: Croatian translation.
- Bugfix: Polish and Lithuanian translation updated. - v1.2.3
- Bugfix: The success/failure of training and research tasks is now reported correctly.
- Bugfix: Portuguese translation updated. - v1.2.2
- New feature: Double fire for catapults (experimental).
- Bugfix: Training troops didn't work. - v1.2.1
- Bugfix: Multiple translations were added/updated. - v1.2.0
- New feature: Schedule training.
- New feature: Schedule research. - v1.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. - v1.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. - v1.1.12
- Bugfix: Troop actions (reinforcements, attack, raid) were not logged in history. - v1.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. - v1.1.10
- New feature: Sortable tasklist.
- Bugfix: Lithuanian and Hungarian translations updated. - v1.1.9
- New feature: No need to set your race. Detected automatically.
- Bugfix: Polish translation updated.



