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

Travian QP Targets 3.1.0

Quick Scout / Fake / Hero / Farm
Delayed Send Troops
Plus features
Message Autolinks
Enhanced Rally Point / Market / Residence / Palace
Field / Building Levels
Quick Delete Reports
..
All langs & servers

Features

Quick Target Features

  • Quick Scout - binoculars icon - sends scouts to village (configurable)
  • Quick Fake - attack icon - sends fake to village (configurable)
  • Quick Farm - farms village on scout report (ingame configurable)
  • Quick Hero - hero raids oasis - useful for conquering and early hero leveling

Report List Features

  • Select all messages checkbox - like Plus
  • Next Page Shortcut Key - SPACE
  • Auto Report Delete per report type - 1 click deletes all report of that type

Message List Features

  • Select all messages checkbox - like Plus
  • Next Page Shortcut Key - SPACE

Messages / Ingame Forum Messages Features

  • Coordinates Link To Target - ingame format coordinates: X|Y link to the target map location
  • URIs Link To URIs - useful for user, alliance, reports, ...

Dorf1 - Resource Fields

  • Resource Field Levels color coded (max'ed out / upgradeable / not upgradeable / )

Dorf2 - Inner City - Buildings

  • Building Levels color coded (max'ed out / upgradeable / not upgradeable / )

Rally Point Features

  • Village Troops Total - wherever they are
  • Troop Group Links - jump to "troop the the way" or others
  • Village Reinfs Away Coordinates

Marketplace Send Resources Features

  • Overflow/Depletion Times - considering arriving all mercs
  • Cumulative Resource Arrival (with times) - considering arriving all mercs
  • Merchants Used - changing the resources to send shows merchants needed and the excess/available load
  • Autocomplete - like Plus, auto completes own village names
  • SendResourcesConfirmation - send to self autofocuses on ok (hit enter)
  • Market Easy Send Resource Quantities (times 0, plus times 2, plus times 5)

Hero's Mansion Features

  • Complete Hero Status

Residence / Palace Culture Points Features

  • Total Villages available
  • Time for next villages

Send Troops Features

  • Delayed Send Troops - send attack after X time (needs improved interface)
  • Autocomplete - like Plus, auto completes own village names

All Pages

  • Title fix - put page header on title (on tab)
  • Current village resources production
  • Current village resources overflow/deplete timers

Single Village Features

  • Adds Village List - usefull internally (and more, see instructions)

Statistics

  • WW Village coords

Treasury

  • Contruction Plan Village holder coords

Buildings / Fields / Troops / Research

  • Time To Build - Each resource missing and timer to make stuff
  • NPC Time To Build - Resources missing and timer for total resources to make stuff

Script

  • GreaseMonkey Menu Command Check Version - check if userscripts.org already has a more recent version

Instruction details

  • Time To Build
    • If the warehouse and/or granary needs to be upgraded each respective image is shown
    • Else, if any resource is missing some amount to complete any action:
      • show each resource amount that is missing
      • show a timer that indicates when is that amount going to be available
      • when the timer reaches 0, the page refreshes so that the action is available and can be clicked
  • NPC Time To Build
    • If any resource is missing some amount to complete any action:
      • If total available resources (TAR) > total needed resources (TNR):
        • show a gold coin link to the Market, NPC trading
      • Else:
        • show a gold coin with the total missing resources
        • show a timer which indicates when will the TAR reaches the TNR
        • when the timer reaches 0, the gold coin becomes a link and the rest disappears
  • Dorf1 - Resource Field Levels color code
    • Green - max level achieved
    • Yellow - upgradeable building with current resources
    • Red - lack of resources to upgrade building (considers resources on page load)
  • Dorf2 - Inner City Building Levels color code
    • Green - max level achieved
    • Yellow - upgradeable building with current resources
    • Red - lack of resources to upgrade building (considers resources on page load)
  • Rally Point Village Total Troops
    • Additional table at the top of the Rally point (above the "overview | send troops | simulator" links) with the total of troops from this town, no matter where they are at the moment.
  • Message Text to Links
    • Coordinates to Link: ingame coordinates format only (just copy paste from profile): X|Y
    • URI to Link: complete URI only. Accepted format: something before :// and then until a space or minor (a <br/> is placed automatically at the end of a line). (regex: w+://[^s<] )
  • Auto Report Delete
    • Click the button in the new table for the report type you want to delete
    • This will try indefinitely to delete all reports. It will stop when:
      • it reaches an empty reports page
      • the current page is not a reports list page
      • the current page is a reports list page, but not either of these:
        • report list of the type to be deleted
        • report list of the type "all reports" - after deleting 1 page of a type the next page has this url
    • As a result, if it is interrupted for any reason and no other page is visited (eg.: disabling script, ...) it may happen that this is resumed when the report list page is visited.
    • If this happens, just visit any other page while the script is enabled and the action should be stopped
  • Quick Scout / Quick Fake / Quick Hero
    • on village links, the icons appear, just press and there they go
    • if no available troops, troop sending is canceled on SendTroopsPage
    • for now only configurable in the script (at the end, in the "CONFIG" vars)
  • Quick Farm
    • Appears on scout reports (resource scout reports)
    • Raid/Attack pre-selection: raid = romans/teutons; attack = gauls (in case there are traps)
    • Troop amounts pre-selection: based on resources available with extra carrying space (...)
  • Quick Target Features
    • Multitabbing
      • different targets: send troops simultaneously (while other tabs still processing)
      • same target: send troops one after the other (send, wait for all redirections, send next, ...)
    • notice that sending a lot of troops in multiple tabs at the same time may slow the browser a little... yeah, don't send 50 at the same time :P
  • Delayed Send Troops
    • Set the arrival time, press the clock and the seconds to attack will appear
    • Interface needs improving
    • This is not exact... timeout skew, server delays...
  • MarketPlace
    • Resources Overflow/Depletion
      • the script tries to understand which resources are arriving or are own merchants on the way
      • once understood, that info is saved and the script will always be able to distinguish them
      • easiest for the script to learn: make a trade (other town mercs arriving AND own merchants on the way)
  • Complete Hero Status
    • total kills needed for current level
    • total kills needed for next level
    • kills done for current level
    • kills needed to get to the next level
    • on mouse over of the "kills done on this level" cell, you get the total kills done
  • Single Village
    • visit the profile page to retrieve the name and coords of the village
    • visit the dorf3 (Use the "Villages" link) to get the proper village id
    • useful for getting to dorf3 early on
    • useful for other features in this script
    • usefull to activate scripts that only work on multiple villages
    • remember to make sure this script is above all scripts that may need this
  • Configurable variables
    • some features can be enabled / disabled / changed by using the variables at the very end of the script

To Do

  • Possible future features
    • Improve Timers (lightweight timers - not sure how to test - increase load?) (30 - 900 - 5 - 60 - 1)
    • Auto Avoid Attack - move troops away and cancel them to return after an attack (time configurable)
  • Features to be added
    • Quick Farm - improve interface (now it is using english words)
    • Quick Targets - ingame fully configurable: quantities / attack types / cata targets
    • Target "Info" History - save "info" lines from attacks (ingame erasable) to display... somewhere (village link mouse-over?)
    • Quick Targets - if not enough troops, stop redirections at send troops confirmation (for a few seconds with cancel button?)
    • Incoming Attack Slowest Unit Calculation
    • Plus Feature: Archive IGMs/Reports
    • Plus Feature: Notes
    • Delayed Send Troops: Hop village in background so that you can prepare multiple attacks from multiple villages
    • Rally Point: Text to clipboard with the incoming attacks, town, granary, crop prod, curr crop,...
    • Improve general performance ( specially main )
    • Add a mailing list possibility to send IGMs to multiple people
    • Add retrieve all reinforcement reports to a exportable format and put it in QP clipboard
    • Market Send: show each cumulative Arriving Totals per merchant arrival in scrolable table
    • Market Send Resource Timers: when on negative production, add the possibility of the arriving resource maxing out the capacity - the rest it wasted
    • Market Send Resource: limit total resources sent to current merchants in town
    • Rally Point: Troop Group Links: try to make links without having the #
    • NPC Time To Build: On quantities calculate on keyup (troops)
  • Requests
    • Update this with posts information
  • Known bugs
    • delayed send troops timer may show strange values, but sends on time
    • --- Currently none ---

History

  • 3.1.0 - 08-05-10
    • added: GreaseMonkey Menu Command to check for a newer version of this script
    • added: Rally Points Reinfs Distance
    • added: NPC Time To Build now fills the inputs at the NPC Merchant
    • improve: (NPC) Time To Build now compatible with graphic packs
    • bugfix: Market Send: Merchants Used now works after sending the 1st time
  • 3.0.0 - 08-04-29
    • added: Time To Build feature
    • added: NPC Time To Build feature
    • improve: Rally Point Troop Group Links: "Costs" link (to upgrade building) is back
    • improve: Rally Point Troop Group Links: Oasis links mention the oasis and then what type of gourp it is
    • improve: Rally Point Troop Group Links: all links are now working again - oasis links were now links to the oasis page
    • improve: Delete Reports is now safe(r)
    • improve: Market Send Resources code cleanup
    • improve: Less output (on error console) as per default on release version
    • bugfix: Total Troop Table no longer wrong when there are Incoming Troops
    • bugfix: Rally Point Village Reinfs Away Coordinates - only applies on village links, not on user links so those "(NaN|NaN)" should all disappear
  • Previous history inside script

Generic script goals

  • simplify some tasks - repetitive tasks; too-many-steps tasks; ...
  • no support for other browsers - using of firefox GM_set/GM_get to save permanent info
  • no need for language translations - simple new icons OR words/icons from travian
  • low priority on Plus support - Plus users already have benefits over others
  • ultra low priority on country specific HTML support - some travian servers have changed HTML in the game

Script problems?

  • Instructions for newbies
  • Firefox 3 BETA x
    • As long as FF3 is not final do not report any bugs please.
    • FF 3 beta (4) seems to have a problem with showing HTML so there are bound to be problems with scripts.
  • Bugs / problems / etc...
    • Try the following:
      • Disable other GM scripts (for incompatibilities)
      • Check the Error Console - Tools, Error Console (for added info)
      • Change the DEBUG_VERBOSITY level down to DBG_LOWEST (for maximum possible info)
    • If the problem still exists please give me the following information:
      • Browser used, including version
      • Script version
      • Graphic pack used or if none is used
      • Travian server where you see the problem
      • Describe the problem the best you can
      • Information from the Error Console you believe can help

Configurations

  • Enable / Disable Features
    • What: All features can be disabled (1 feature can be a requisite for another feature)
    • Where: Inside the function main()
    • How: Find a function call inside the main function and comment it out
      • To comment code place a // at the beggining of that line
      • Function names are self explanatory
      • If disabling a feature messes some other feature... undo it :)
  • Feature configurations
    • What: Some features can have their behavior work in different ways (few even disabled)
    • Where: At the end of the script
    • How: Find a configuration variable, read the comments, and configure one of its possible values

Read above please!

  • You are responsible for reading all this text above
  • Asking something that is already answered above probably won't get you the answer you wanted...




6 hours ago
WiCiO User

excelent!

KUDOS for QP!! :bow:


 
May 10, 2008
QP Script's author

Forgot a couple of answers..
@kupony: About the Quick Fake Icon, I changed it to the outgoing attack image (which is blinking yellow instead of red), instead of the incoming attack image. This is more correct and hopefully is smoother looking. If in any case you really can't stand it, just go and find the image for it "IMGS_FAKE", and I suggest changing to the att_all.gif, which has no blinking whatsoever.
@steve: This is an exception... but here goes, it is in the "scripts()" function, there is a call to the "TM_ShowMainBuildingNumbers()", just comment this one out.

Nice gaming to all.


 
May 10, 2008
QP Script's author

@WiCiO: Ok, it now works with graphic packs.
@kupony: Read new text above on configurations please.
@godknightx: I don't understand your question, try to explain it a little more...
@steve: Read new text above on configurations please.
@Diego2002: Wow... that is weird... I'm at a loss with that since I don't have any problems... are you sure you weren't turning GM off in some tab (for your own reasons) and then updating that page on another tab... the GM has an overall state, not a per tab state... This is the only thing that I can think of right now. If this is not it, all I can suggest is for me to sit your account...
@godknightx: Great statements... says basically nothing useful!
@krneki: Read new text above on configurations please.
@pinkandroll: Read new text above on configurations please.
@NYCJeffL: Thanks :)

Most notably there is now a command in the GreaseMonkey Menu Commands to check if the release you have installed is the most recent version uploaded at this site, if you need to update the script it will open and close a new tab to get the new version - this will in fact trigger the script's new version installation, so the normal "GreaseMonkey Installation" popup will appear. Otherwise it will show the version your script has and the version at the site (showing them as equal).


 
May 7, 2008
NYCJeffL User

Hey Pink,
Open the script in TextEdit. Near the bottom of the script find:var CONFIG_FEATURE_RESOURCES_INFO = true;
Change the true to false and the double resource counter will be gone.
J


 
May 6, 2008
pinkandroll User

I can't use this script together with travian beyond, also..

i have double resource indicator at the top of the page, how can i disable this function, or fix this problem?


 
May 5, 2008
krneki User

I can't use this script together with travian beyond as numbers which show timer when warehouse is going to be full are overlapped. Which line has to be deleted from this script to disable this function?


 
May 3, 2008
godknightx Scriptwright

Háát
Graf Pack alatt a fele nem megy alapból xDDDD


 
May 1, 2008
Diego2002 User

@godknightx
Mire mondod, hogy nem működik? :)

The same thing with the Market. I can't see the overall incoming resources line, only if I click, to another village, and back to the main village.


 
May 1, 2008
godknightx Scriptwright

This is doesn't working :/
-----
I am Hungarian :P


 
Apr 30, 2008
Diego2002 User

The situation exists only at the main village...


 
Apr 30, 2008
Diego2002 User

You won't belive it. It doesn't work again.

I have a quick link to Rally point. I click to the pending village's Rally point (where it doesn't work), and after that to another village's Rally pont (where it begin to work), and back to the pending village's Rally point, and it works again.

Very unstatic...


 
Apr 30, 2008
Diego2002 User

Weird, it's working now. But I had to click to another village's Rally Point, and after that, I clicked to the village, where it wasn't working, and it began to work. :)


 
Apr 30, 2008
Diego2002 User

Well, it's interesting. On s4.travian.hu it's working. On s5.travian.hu it doesn't.


 
Apr 30, 2008
Diego2002 User

Tha rally point features don't work. There are no more these buttons to the mooving, arriving etc. troops. Anybody else?


 
Apr 30, 2008
stevve User

hi there QP i want to ask you a few thing can you retire the
# Current village resources production
# Current village resources overflow/deplete timers

this because i use the beyond script and its make a sobrepusition of that information...

i like to have your color sistem in the buildings page, but i use the

Travian Mod Kit 1.8

do you know how to remove the number of the buildings to lt yours apears with the color sistem????

sorry but i don't know how to do that...


 
Apr 30, 2008
godknightx Scriptwright

How can i change image src in Graphic Pack ?
Please help :(


 
Apr 29, 2008
kupony User

Is there a way to disable the suggestion boxes with troop numbers on the scout reports? That feature is pretty useless for me and I would like to remove it from the package.

Also is there a way to change the fake attack and quick scout icons? The blinking attack icon is a bit too much for me. I have about 30 of my farms bookmarked on the right side of the page so now I have 30 blinking icons as well.


 
Apr 29, 2008
WiCiO User

gee, i don't know which pack it's exactly so i've uploaded it here:
http://aemaeth.webpark.pl/kerberus.7z

i've made some minor changes to unx.css :)

ps.
every time when i update your script i must change the color of the resource counters ;ppp


 
Apr 29, 2008
QP Script's author

@WiCiO:
Thanks :)
I was thinking that the only difference of using a graphic pack was the "src" property of the "img" tags, but looking at the code, I don't see that there could be a problem with that... so, can you give me more information about the graphic pack you're using... so that I can try it out (in the next couple of days) and see it, not working :)


 
Apr 29, 2008
WiCiO User

excelent!

but still.. the 'Time To Build feature' doesn't work with custom graphics ;(
when i disable it i can see the numbers, but when the graphic pack is enabled the feature doesn't seem to work at all ;/


 
Apr 29, 2008
QP Script's author

Hello all,
New big version: 2 bugfixes, 6 improvements, 2 added features.

Some game HTML has been changed so that is why some improvements were needed - mostly the Rally Point ones.
Probably the most wanted improvement is the one related with the Auto Delete Reports which should now be safe(r)... read the instructions section on it.

@Melhior: Sorry about delay, but I was busy as you can see :)
1 - dorf1 color problem: I have no idea other than you being in a town where all fields can be upgraded and the resources are available... I may try to look into it in the future but with just that description it is as strange to me as it is to you :\
2 - title fix: it should be working BUT not all pages of the game are included the script - at least the alliance pages, only the ones in the forum are included so the other ones will not show it. I will try to include the rest - please tell me if I'm missing any other page - but I need to check what is happening in the rest of the pages.

@Diego2002: Please get back to me with this new version... is the autodelete reports ok now? (otherwise just go to the script's "main()" function and about 30 lines below just comment the auto delete action).

@ipefix: Read the instructions above please. @Melhior thanks ;)

@nikoum:
1 - The Rally Point issue should be solved, please tell me if otherwise.
2 - Quick Scout issue: does that happen for all towns?? if that happened for a couple of towns I'd simply say that you had previously tried to QS them but it was interrupted so it was only finishing the job at a later point... please give more details - and read the Script Problems section

That's it, nice gaming to all


 
Apr 29, 2008
RecMe User

and how about an idea to make a script witch can build resource field?


 
Apr 26, 2008
nikoum User

Ijust noticed something...

when I am under attak the follwoing thing happens: instead of seing village troop totals in the rally point for each villae on top... I see a similarbox, but it has the name of thw first person attacking me and NA/NA/NA ..etc at the cells where my troop numbers should be.

Also something more.

when i try to send troops to a village, either mine or someone elses, the "quick scout" option takes over. so for example say i am in the map. I cklick on a village and I'm taken to the village screen. If i press the "send troops here" link instead of being presented with the full rally point screen with options etc, i see it flashing by and it works like if i chose to "quick scout" the village which i'm 100% sure i havent done.


 
Apr 24, 2008
Melhior User

@ipefix
heh

undefind is because you have only one village yet. as far as I remember, go to your profile to make script learn your village name.

and all configurables are in the very end of script... (rtfm, heh ;))


 
Apr 24, 2008
ipefix User

Hello,

nice script there! However I think I have a problem... Instead of my village name, I see "undefined" :/

By the way, maybe it's a stupid question but is there some place to configure this script or something ?


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