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

new extended marketplace

Send resources fast and easy from multiple villages in a single click.

Info:
- This should be notably faster than my other script.
- Gives you the possibility to send resources from all you villages fast and easy from one single window.

I've been working on improving the marketplace script. I've recoded much of it and improved the design(i think).
Let me know what you think about it.

I want the design to be self explainable so if you see any room for improvements there let me know.

Future plans:
- overflow protection
- any more?

Instructions:
-Open the popup with ctrl+alt+x. (might need to disable pop up blocking)

Photobucket
Red: Coordinates menu.
Here you insert the coordinates that you want to send resources to and hit submit to paste it all the forms below.
The dropdown contains all you own villages, just select one of them and hit submit afterwards.
NEW:ctrl+alt+m give you the option to add custom villages.

Blue:
Probably the most advanced, but also the best feature!

Here you can choose how much of each resource you want to send out and write the ratios that describe that balance.
example: you want to send one fourth(1\4) of each resource; then you write 1\4 in all the four fields and hit submit. the total need to be below 1. 1/4+1/4+1/4+1/4 = 1
This is great when you want to send loads of resources to one village and train soldiers there. just calculate the ratios and type them inn.

example: The imperians cost: 100 wood, 130 clay, 160 iron and 70 wheat.
100+130+160+70 = 460
This give these ratios: wood: 100/460 clay: 130/460 iron: 160/460 wheat: 70/460
type it in and hit submit and you got a close to perfect balance(roundoff error) between the resources sent!

Yellow:
Here you can chose how many merchants you want to fill up with each resource.
example: You want to send 3 merchants with wood, clay and iron and 11 with wheat
write 3 in the wood, clay and iron field and 11 in the wheat field and hit submit.

Orange:
[Send twice toggle] - Toggles the twice check box on and off.
[Send all] - Starts a loop that submits all the forms for the active villages.(active village explained later)

Photobucket

Green:
Check box that activates\deactivates the village for the sendall loop. The borders go red when deactivated and the infobox changes to 'deactivated'.

Red:
Information about available merchants and their carry capacity.
Forms for how much resources to be sent.

Pink:
When hovering over one of the fields you will get this thing telling you how much resources you have of that particular resource in that village.

Blue:
Forms for the coordinates that the resources is to be sent to.

Yellow:
Activating the check box sends the resources two times, only available for plus accounts.

Orange:
Clicking the button send the amount of resources specified in red to the specified coordinates in blue.
Status box(the one that says 'ready' in the picture):
Gives you the status information about the process.
Possible statuses is:Ready,Processing,Sending,Done,Deactivated

- I don't mind people using the source of this script to create their own, but please give me some credit.
contact: m4rtini89[at]gmail.com ; if you don't want to ask\register here :P






Jul 20, 2008
Stroops User

Hi there... i have a problem with this script, it doesn't work with my username(login) in my pc but it works with other logins at the same browser!! do you know about this problem, hao can i solve it?

 
Jul 15, 2008
Ryan007 User

I will continue troubleshooting, thank you for your quick response!

 
Jul 15, 2008
m4rtini Script's author

it's designed to work on every server.

 
Jul 15, 2008
Ryan007 User

I find that this does not work for me. is it designed to work on speed.travian.us?

 
Jul 13, 2008
m4rtini Script's author

added predefined ratios for all the troops and a 1/4 ratio. Let me know if any of them are wrong or if there is any new ratios you think would be useful.

Just click the images to fill inn their ratio.

 
Jul 9, 2008
m4rtini Script's author

i didn't quite understand the question. You need firefox and greasemonkey to use the script.

 
Jul 9, 2008
Jake Tsalkos User

I installed the script and this is my fisrt time doing so. When I have downloaded the script how to I put it on my Travian account.

 
Jul 7, 2008
m4rtini Script's author

@RoadRunner

Thanks for the bug report, i think I've fixed it now.
Also added the possibility to add custom villages to the list. Hope the creator of the 'Travian MarketPlace auto-helper +' don't mind me borrowing his code.

Fixed a bug that caused the village not to load when opened from some pages.

 
Jul 7, 2008
RoadRunner User

Hi, just want to say that your new extended marketplace rocks!

However... sending to someone elses village does not work for me at all.. tested on several computers.
The first village status goes into processing, and nothing more happens.
For sending to my own villages - it works flawlessly.

I found that it was the check that tests whether you are sending to yourself that caused the script to halt.
I commented these lines in the code, and I have just manually dechecked sending if I am sending to one of my own villages.

//if(DID == form.document.getElementById(X+'|'+Y).value)
//{
//info(DID, "Error: Can't send to yourself.")
//if(sendall){setTimeout(function(){sendAll()},50)}
//return;
//}

A fix would be very welcome. Also... the ability to hardcode or keep a list of favourite sending targets would be great.
Especially when there's endgame.... this function would be extremely handy :)

 
Jun 22, 2008
m4rtini Script's author

Added a overflow function. will keep you from sending more to a village than it can handle. ofc only if it is your own village.
Also a button to refresh all the villages.

 
Jun 19, 2008
viktorius123 User

The "sel = '';" line fixed the problem. thanks :)

 
Jun 19, 2008
m4rtini Script's author

You edited the start?
You can probably fix it by changing line 25 from:

sel = getVillageDropDown();
to:
sel = '';

But you will lose the dropdown menu.
I'm running fx3 and the newest version of grease monkey myself, strange that i don't get the same error after disabling all other scripts.

one other thought is that there might be some differences between the servers. try to open the source and search for 'right dlist1'. should be where the x coordinate is located.

 
Jun 19, 2008
viktorius123 User

I did a clean install of firefox 3.0 and the latest greasemonkey, then installed only this script. This is the error that pops up in the error log, ive edited the start.

Error: thisX is null
Source File: file:///C:/Documents%20and%20Settings/[edited]/components/greasemonkey.js
Line: 569

And there is no line 569, the code is only approx 500 long. Any idea how i can get the script working?

 
Jun 19, 2008
m4rtini Script's author

Check your error console and pop up blocking. The pop up function haven't been changed, only difference is that the combinations have changed from z to x. So that's a bit strange.

 
Jun 19, 2008
viktorius123 User

Cant get the popup window to pop up with the ctrl+alt+x combo. It worked fine in the older version but now its not working.

 
Jun 18, 2008
m4rtini Script's author

Now the mass features should work, report any bugs that you find.
A drop down for the villages that you own is implemented now, only for the mass part for now.

I wrote a guide on how to use this script now, if there is something that is still unclear let me know.
Sorry for my English, I'm from Norway so it ain't my native language.

 
Jun 17, 2008
Foxyhearts User

You want it to be self explainable, well, didn't reach that target yet.
When I access it from the marketplace (build.php?gid=17) it fails to display my villages which I do get when accessing from my resources view (dorf1.php). But since I do not have a description so can't tell if it is what you want it to do.
Then I get my villages stacked up beside each other with a checkbox and the same information as the mass features on top. But I can't understand what the idea is behind it.
Do I *need* to fill in the x-y co-ordinates or does it intuïtively understand that when two villages are checked and the resources are filled in the boxes and the user hits send, the resources have to be moved to the checked village where resources were not filled?

And what happens when I hit the Send button? It only states: done. What is to be expectated? How can one test an app when it is nearly impossible to deduce what the app should do, what the designer *expects* it to do?

 
Jun 17, 2008
Сергей User

Подскажите плиз как он работает, не фига не понимаю. нажимаю ctrl+alt+x выставляю значения и ничего не происходит.

 
Jun 15, 2008
m4rtini Script's author

I'd love if anybody could tell me why the code on line 285-290 don't work anymore.

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