Archived Comments (locked)
|
|
@QP hi man )
and I have a suggestion... I think, it's possible to make script differ my villages and all other villages, because it's realazed in travian3 beyond. actually I don't need to scout or attack my own villages... I need only send there resources or reinforcements - and travian3 beyond lets do it. attack and scout buttons in my villages list only make a mess and are totally useless.
|
|
|
@ Vendettas
|
|
|
QP: As you've already got a 'delete all trade' function, is there anyway you could implement a 'delete all reinforcement' function? Especially with WWs out and roaring, reinforcement movements are annoying and plentiful. |
|
|
Marketplace fix works, thanks. Some additional configuration options-- I prefer to remove the title prefix all together...
/** transformGenericPage_fixTitle */
function transformGenericPage_fixTitle() {
if ((DEF_CONFIG_TITLEFIX != 1) && (DEF_CONFIG_TITLEFIX != 2) && (DEF_CONFIG_TITLEFIX != 3)) { return; }
var titleInPage = xpathEvaluate('//h1');
if (titleInPage.snapshotLength == 0) { return; } // just in case a page has no title
var titleInPageStr = titleInPage.snapshotItem(0).textContent;
if (document.location.pathname.indexOf('/dorf2.php') == 0) {
titleInPageStr = String.fromCharCode(164, 32) + titleInPageStr;
}
var dTitle = document.title;
if (DEF_CONFIG_TITLEFIX == 2) {
var spacePos = dTitle.indexOf(" ");
dTitle = dTitle.substr(0, 1) + dTitle.substr(spacePos);
}
if (DEF_CONFIG_TITLEFIX == 3) {
document.title = titleInPageStr;
} else {
document.title = dTitle + " - " + titleInPageStr;
}
}
Alter comment at the end..
// ########## Title Fix - 1 = appends title of current page; 2 = additionally shortens 1st word of real title to 1st letter (eg.: "Travian" -> "T"); 3 = remove "Travian Com" all together ########## ----------- I was adding code for another configuration option and found a bug with the field color coding... it doesn't seem to be matching up the link map to the colored circles. the place you click ends up being a little left and up from where the field number is. on my 15 cropper some level 14 fields were red and some were still white as well. and then on the only village that i currently don't have maxed fields, it doesn't show any colors at all. anyway, ultimately I think the feature looks much nicer when you don't show any number for buildings when it is maxed. I added the following: // ########## Color Coding :: 0=All Off, 1=All On, 2=On except for maxed buildings/fields var CONFIG_COLOR_CODING = 2; ... and then in the transformPageDorf2_addBuildingLevels function add this at the beginning:
if (CONFIG_COLOR_CODING == 0) { return; }
and then around where "DIV.style.backgroundColor = DEF_COLOR_RESOURCE_MAXLEVEL;" is, change it to this:
if (CONFIG_COLOR_CODING == 2) { DIV.style.visibility = "hidden";
} else { DIV.style.visibility = "visible"; DIV.style.backgroundColor = DEF_COLOR_RESOURCE_MAXLEVEL;
}
... once the issues are fixed with Dorf1, the same type of options should be added there. ----------- lastly, option to disable delayed troop sending functions (i use attack builder grease monkey script which supports "village hopping") // ########## Disable delayed troop sending features var CONFIG_DISABLE_TROOP_DELAY = true; add to beginning of "transformPageSendTroopsConfirm_addTimeOffArrivalSync" function--
if (CONFIG_DISABLE_TROOP_DELAY == true) { return; }
I hope this all makes sense =P -syn |
|
|
@syntax53: I guess I didn't read your first explanation well :P
@Mijo: Thanks :)
Nice gaming to all.</zcoord></zcoord> |
|
|
Ehh... :D
|
|
|
Hi QP! Your scripts are really good!
I found that the "d" parameter is the koordinates packed together, I found the equations which convert (x|y) <=> z and vice versa. But that mysterious "c" parameter...
|
|
|
i know i'm right because removing the direct link makes the hero's mansion start working. if you use the plus feature you can duplicate it yourself by creating a direct link with any any name "http://s5.travian.com/build.php?id=29&t=3" for the URL. then visit the hero's mansion page. i already have 2 sitters and i can't free up a slot. |
|
|
@syntax53: Taking into account the way the scripts work, that doesn't make much sense. The reason is that the script starts again on each page that is loaded, so if the script "thinks" that it is now on a page of this kind, the next page has no relation to this one. Again, I registred the user _QP_ in that server if you want me to check that out just IGM me there (i'll check it a couple more times, then I'll drop it). |
|
|
RE: My Hero's Mansion not working. I figured out what was causing the problem. I looked at the code for how you were detecting the marketplace and I saw this-- var linksMyProfilePage = xpathEvaluate('//a[contains(@href, "&t=")]'); ... so i went looking at me hero's mansion page where it might be seeing that. then i realized why-- i place my marketplace in the same plot in all of my villages. that enabled me to make a "Direct Links" to the NPC trader using the plus feature. so one of my "Direct Links" is "http://s5.travian.com/build.php?id=29&t=3". Your script is seeing that and I assume thinking all of my pages are the marketplace then. |
|
|
@[TAJM]Kobra:
Come on, if you need help reading and writing please get help because until now most your comments either give me no real info or are confusing, so they are simply lost time to both of us. Use full sentences to explain what is happening in each case and be sure to also script problems chapter above. Nice gaming to all. |
|
|
coords to link very god idea!
|
|
|
@QP
well,
And one more, send resource conflict your other script:( |
|
|
@[TAJM]Kobra:
|
|
|
Hero status don't work at quick fix version |
|
|
Hello again,
|
|
|
@chunkyyluvr53: Are you sure about this? do you know what this feature is really supposed to do? because what you're saying makes no sense for several reasons... this table shows the total troops made in this town even if they are reinforcing / en route to some other place. @[TAJM]Kobra:
@Melhior: Thanks for helping :) Just uploaded a quick fix so that the TitleFix feature works and added links in the "instructions for newbies" area. Nice gaming to all. |
|
|
@[TAJM]Kobra
|
|
|
Title fix - put page header on title (on tab)
where are need configurable the Quick Target Features? |
|
|
i found a bug... i am a Teuton and my village is reinforced with some phalanxes in the rally point page where it shows my total troops at the top of the page it adds up the number of clubswingers and phalanxes and says they are all clubswingers. |
|
|
Btw, just so that you find it easily - configurations are at the end of the script. |
|
|
Ok, just posted a new version... Adds enabling/disabling of some features and increases script interoperability. Also added Treasury Village Coords so that you can easily see where you'd need to target. Nice gaming to all. |
|
|
@syntax53:
@Sam Angus: The resource timer is now configurable (variable at the end of the script). The village center numbers change is not (yet?) configurable just comment out the line that has this:
@Diego21: Yeah, I moved that to the "possible" ones so it should/will take a while, but I think I saw a script around that was supposed to do only that - didn't try it though. @Paitor: I bet you're using FireFox 3 beta 4 - this seems to be a problem with that browser. Most probably FF3 final version will fix that along with whatever else they messed up in the HTML of other pages (some tables show 2 lines without separation, ...). |
|
|
sorry for the multi-posting, but referring again to the auto-deleting of messages i figured out what is causing it because i did it again. it's if you click "delete trade" and then click out of the reports section before it has finished. when you return to the reports it starts deleting all of your reports. |
|
|
Hi, the rings is all on wrong place like in this image. Why? |