IkaResourceSort

By raindrops Last update Oct 25, 2008 — Installed 23,067 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 6 posts, 5 voices



Jesse Andrews Admin

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

 
raindrops Script's Author

2008-10-22

New version: bugfixes for leecher checking, and it now it properly handles 1 player with multiple towns on the same island

 
Johan Sundström Scriptwright

Your "Breafuios - based on Wiisley's script" script logic seems to bug out for sawmills of level 21; the iteration first goes above the length of the array indices (trying to index undefined with 0); surrounding that part up to the return with a try{ ... }catch(e){} block at least prevents it from killing script execution.

Also, the script seems to break on islands you have more than one city on.

(Friendly tip: instead of cut&paste:ing the ugly unreadable document.evaluate DOM API code a dozen+ times, @require http://ecmanaut.googlecode.com/svn/trunk/lib/gm/$x$X.js and use $X(xpath) for picking out a single node or $x(xpath) for an array of nodes. Supply an additional node parameter if you want to find something with a relative xpath expression instead. Tons more readable code, for free.)

 
Hidy User

Love it works great !

 
raindrops Script's Author

Leecher checking is on the TO-DO list. They broke the old leecher checker with the 0.2.8 update (I think they broke a lot of scripts, actually).

Update should be done in a day or 2, depending on how much free time I have. ;-)

 
VinWij User

Combine this with the leecher-checker functionality offered by another script around here, and you're my man!

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