FBMW++

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

The level 0 profile fix

in
Subscribe to The level 0 profile fix 1 post, 1 voice

Chris D User

If your script shows level 0 as your boss level on the FBMW+ menu, this fix will update it to show your current level.

searh for these lines:

    case 'profile':
      if (Page.c_page == 'profile' && Page.c_params.user_id == Page.c_user)

under them you will find
        var result = header1.match(/"(.*)", Level [0-9]+ (\w+)/);
        this.name = result[1]; // boss name
        this.type = result[2]; // boss type

change those to:

        var result = header.match(/"(.*)", Level ([0-9]+) (\w+)/);
        this.name = result[1];
	this.level = result[2];
        this.type = result[3];

and you should have your current level showing.

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