Travian: Quick Maps+ v1.2.3

By HaxLi Last update Feb 25, 2008 — Installed 28,601 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 13 posts, 10 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
bendeguz Scriptwright

To mak it work on speeds replace
var svr = location.hostname.match(/travian[.](\w+)/i)[1] + location.hostname.match(/(\d)[.]travian/i)[1];

to

if (location.hostname.indexOf('speed')==-1){
var svr = location.hostname.match(/travian[.](\w+)/i)[1] + location.hostname.match(/(\d)[.]travian/i)[1];
}else{
var svr = location.hostname.match(/travian[.](\w+)/i)[1] + 'x';
}

 
Talena User

Is this not working on speed either??

 
FreeWare_ Scriptwright

GM_openInTab not worked in Opera, only FF

 
Fars33r User

change line to this one to open in tab, not new window

child.setAttribute("onclick", "GM_openInTab('" + url + "', new Date().getTime(),

 
HaxLi Script's Author

@ FreeWare_
if you want to use http://travian.org.ua then you can try to add/replace some lines

to get "ru" from s1.travian.ru
var lang = location.hostname.match(/travian[.](\w+)/i)[1]
to get "s1"
var serv = location.hostname.match(/(\w+)[.]travian/i)[1]
hope this gives the idea..

But the problem is, that your flash map do not understand User and Ally IDs, as travmap.shishnet.org
I know how to read part of url, but not player_nick/ally_name. This should be easy, but not for me :]

You are better coder than me. I'm just edit other coder jobs by adding some my ideas.

Try to look at this site where I found some helpful info of how to mach/read html code:
http://developer.mozilla.org/en/docs/Core_JavaS...

 
Ingek User

No results here too

 
Melhior User

does this scrip hava conflicts eiht any other scripts?
i installed it, but saw no resuls...

 
FreeWare_ Scriptwright

гы, ну я сразуже сделал travian.ws версию просто выкладывать не стал, лень было :) выложил только в форуме коалиции...
а флеш карту пытался сделать, но несмог к сажелению, она имхо лучше чем эта пнг\свг карта, будем надеятся афтар скрипта додумается как её прикрутить :)

2HaxLi add please Flash kart http://travian.org.ua

url = "http://travian.org.ua/"+lang+"/"+serv+"/clans/"+nick;

url = "http://travian.org.ua/"+lang+"/"+serv+"/players/"+nick;

var serv - s1, s2, s3, s4, etc.
var lang - ru, cz, com, etc.

function cannot do, i not programmer :(

 
artleg User

FreeWare, не своровал, а доработал)) Прикрути к своему скрипту http://travian.org.ua/ru и часть из нас вернется к тебе))) К тому же TSU лишился истории, поэтому travian.ws просто необходим.

HaxLi, Thank you! It's very usefull!

 
FreeWare_ Scriptwright

нагло своровал мою идею :)
Good job!

 
[TAJM]Kobra User

and replace url

for allianz:

url = "http://travmap.shishnet.org/map.php?lang=hu&country="+country+"&server="+server+"&alliance="+who+"&groupby=player&zoom=id:"+MyID+"&casen=on&azoom=on&order=dist&format=svg&newpage=on&";

for player:

url = "http://travmap.shishnet.org/map.php?lang=hu&country="+country+"&server="+server+"&player=id:"+MyID+",%20"+who+"&&zoom=id:"+MyID+"&casen=on&azoom=on&order=dist&format=svg&newpage=on&";

 
[TAJM]Kobra User

Nice work!

ADD:

function TopDomain2Country() {
var tld2country = { hu: "Hungary",
pl: "Poland",
lt: "Lithuania"}
return tld2country[window.location.host.match(/[^.]+$/)[0]];
}

var MyID ="<your>

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel