Large

OGame Build Timer

By alecs Last update Oct 14, 2011 — Installed 6,574 times.

Little Error

in
Subscribe to Little Error 2 posts, 2 voices



ochetski Scriptwright
FirefoxWindows

Sometimes unsafeWindow.resourceTickerMetal, unsafeWindow.resourceTickerCrystal and unsafeWindow.resourceTickerDeuterium cannot be found and it causes errors.
I've fixed your script this way:

if(unsafeWindow.resourceTickerMetal && unsafeWindow.resourceTickerCrystal && unsafeWindow.resourceTickerDeuterium) {
var resource = {
'metal' : new Array(Math.floor(unsafeWindow.resourceTickerMetal['available']), unsafeWindow.resourceTickerMetal['production']),
'crystal' : new Array(Math.floor(unsafeWindow.resourceTickerCrystal['available']), unsafeWindow.resourceTickerCrystal['production']),
'deuterium' : new Array(Math.floor(unsafeWindow.resourceTickerDeuterium['available']), unsafeWindow.resourceTickerDeuterium['production'])
};
}

Hope it helps.
This script is great btw. ;)

 
alecs Script's Author
FirefoxWindows

Thanks
I've added your fix to the script.

Regards,
alecs

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