Ikariam kChen Overview

By kchen Last update Feb 18, 2009 — Installed 346,343 times.

Warehouse update

in
Subscribe to Warehouse update 8 posts, 6 voices



";

Rincewind User

Hey all,

One of the first things that got me when the change to 0.3.0 happened was the warehouse readings so I've modified the values according to the Ikariam wiki:

var warehouseWoodCapacities = [0, 8000, 16000, 24000, 32000, 40000, 48000, 56000, 64000, 72000, 80000, 88000, 96000, 104000, 112000, 120000, 128000, 136000, 144000, 152000, 160000, 168000, 176000, 184000, 192000, 200000, 208000, 216000];
var warehouseOtherCapacities = [0, 8000, 16000, 24000, 32000, 40000, 48000, 56000, 64000, 72000, 80000, 88000, 96000, 104000, 112000, 120000, 128000, 136000, 144000, 152000, 160000, 168000, 176000, 184000, 192000, 200000, 208000, 216000];

In case anyone wants to have them in until the whole script get's updated. If I have done it correctly there should be no problems but I'm a hobby programmer in that I just change stuff to see what happens :-)

From my text program these lines are 460 and 461 but you can just do a search for the start. If I've made a mistake please let me know so I can learn! Love the script hope it keeps updating.

 
frechi User

there is a little error in the wiki
warehouse level 0 is 3000 wood other ressources 1500
so the correct code must be:

var warehouseWoodCapacities = [3000, 11000, 19000, 27000, 35000, 43000, 51000, 59000, 67000, 75000, 83000, 91000, 99000, 107000, 115000, 123000, 131000, 139000, 147000, 155000, 163000, 171000, 179000, 187000, 195000, 203000, 211000, 219000];
var warehouseOtherCapacities = [1500, 9500, 17500, 25500, 33500, 41500, 49500, 57500, 65500, 73500, 81500, 89500, 97500, 105500, 113500, 121500, 129500, 137500, 145500, 153500, 161500, 169500, 177500, 185500, 193500, 201500, 209500, 217500];

 
jacs User

frechi error
Rincewind ok,

To modify var warehouseLevel = getArrValue(res.buildings["warehouse"], "level", "0");
var maxcwood = warehouseWoodCapacities[warehouseLevel] + 3000;
var maxcother = warehouseOtherCapacities[warehouseLevel] + 1500;
s += "

 
oliezekat Scriptwright

Hi, I started fix Alarm & Overview...

Don't forget v3 allow to build several warehouse in same city. You just need to sum warehouses levels ;o)

 
Jiraiya User

Bump how can we fix this

 
jacs User

This boy speaks very much but it(he,she) does little, the unique thing that it(he,she) did was to copy this scripts and to put another name.

And ultimately it works badly.

 
Jiraiya User

Clearly I did not read my own post. I am having difficulty with the script not calculating the true amount of storage capacity due to the script only recognizing the smaller warehouse. I am not a scripter nor do I want to learn but I do think there are 2 ways to fix it. 1 is to scan the warehouse page(much like the hideout page) for the capacity. Or you can set up a loop to count the warehouses and calculate the total.

 
kchen Script's Author

To jacs,
Anyway, thank you very much.

To Jiraiya,
I think jacs is not talking about you.

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