FBMW++

By Pea Cracker Last update Feb 24, 2009 — Installed 39,028 times.

Excluding Beachfront and Container Yard from Undeveloped Land

in
Subscribe to Excluding Beachfront and Container Yard from Undeveloped Land 4 posts, 3 voices



CryptoNight User

Chrisos,

I am moving this out of the bug thread because I think it is a feature request and not a bug. The program is working as designed. Mobwars places these two in the frame on the page with other "Undeveloped" land. FBMW+ is using that as the basis for the decision to be included as Undeveloped or Established land. Literally, the script appears to be pulling the "U" from undeveloped or "E" from established to classify the properties. That U or E is then used throughout the script when making determinations on property type.

I am not close enough to the script to know all of the impacts, but if you want to play around with it and test it out, do the following:

At around line 748 look for this:

        case 'city':
          item = new Cityitem();
          item.subtype = div.parentNode.parentNode.firstChild.nextSibling.firstChild.firstChild.nextSibling.innerHTML.charAt(0);
          break;

If you replace it with the edits below, the Beachfront and Container Yard will have their subtypes set to "E".

        case 'city':
          item = new Cityitem();
          /* These edits change the item types for Beachfront and Container yard.*/
          if (item_id == 'item_29') item.subtype = 'E';
          else if (item_id == 'item_33') item.subtype = 'E';
          else
          	{
          		item.subtype = div.parentNode.parentNode.firstChild.nextSibling.firstChild.firstChild.nextSibling.innerHTML.charAt(0);
          	}      	
          break;

With these edits, my initial testing looks OK. With purchase Undeveloped Land in Auto Buy turned OFF, the Container Yard was correct identified as the best RoR and was purchased correctly.

 
remarkable Scriptwright

Thanks, ive been hoping this would be an addition. Now i've made 3 changes to the current script that i hope PC puts into 1.28

 
Chrisos User

CryptoNight, thanks matey!

Remarkable: You can always create an FBMW+(Temp) script and host it on userscripts.org to share the love, until PC returns from his holidays. Then hopefully he can do a diff and integrate the changes. :)

 
remarkable Scriptwright

Chrisos, here is the FBMW+ that i use.

http://userscripts.org/scripts/show/39510

I did not upload this to take away the attention from Pea Cracker. It was just the only way i could share it - the edited version that is.

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