Hi there gents, I must admit I am really enjoying writing this Travian code. I initially wrote mine in VBScript (and another version using WGET.EXE) but I found that all the code the Travian Team put in there to catch static URL's to difficult to duplicate (ie/ the FORM POST contained different keywords passed from previous pages, as well as values evaluated by Javascript, all this needed to be duplicated). using IE is SOOO much easier. I am noticing some differences in the approaches and that might be because of my inital heave use of VBScript & Perl, that you guys don't appear to be using regular expressions, but rely on the HTML code to remain relatively static. ie/ you check for a <b> 2332 <\b> to find resource per hour, but if the travian team ever change their HTML (which they could easily do on a daily basis and I am surprised they don't) Whereas you can do something similar using Regular Expressions. For instance, you know the value will follow a HTML closing Tag > by a possible space \s*, some digits \d+, another space \s* or dividers   and eventually another HTML Tag starting with < So you get something like: $array = StringRegExp($body, '>\s*(\d+)(?: )*[^<]<', 3) (\d+) with the surrounding () will capture the number and return it, which is what you're after (?: )* is used to capture based on a group, there might be zero or more, but not return the value, since we don't need it Other gems are: $array = StringRegExp($body, '(\d+)/(\d+)', 3) to find current resources, and the beauty is that it will find the match no matter where it is, or what format its in, or better yet (\d+)[^\d/]*/(\d+) The same applies for any 'scraping', especially Village names: newdid=(\d+) From there its a cinch, calculating your 'empire wide' resource/total and res per hour, parsing what resources are currently required to upgrade resource X (be it a field or a town) and using your merchants to ship the relevant resources where you need it. I am currently working on the logic that priortises resources to level X, before the town buildings and expanding that to having as many villages as you own. Very good fun >\s*(\d+)(?: )