Textual Reflexions

30/5/2008

User Scripts FAQ

Filed under: GreaseMonkey, Mob Wars, Monsters Enhancer, Packrat — Piotr P. Karwasz @ 1:01 am

Many people message me with problems in installing the user scripts in their browsers. Here is a little FAQ to help you out:

  • How do I install (GreaseMonkey) user scripts?: You have just to follow these simple steps:
    1. Make sure you use Firefox as your browser. If you don’t have it yet you can dowload it here.
    2. Install the GreaseMonkey Firefox add-on.
    3. Click on the link of the user script. A confirmation dialog for the installation should pop-up. Press the ‘Install’ button and you are done.

    You can find a more detailed walk-through in the Greasemonkey Manual. A common mistake is to still try using Internet Explorer even after the installation of Firefox, I can show you my logs to convince you that people fall into this trap. Yes, downloading Firefox is not enough, you have to use it.

  • When and how should I reinstall the scripts?: The only reason you should ever reinstall a script is if the data stored in your browser becomes inconsistent (for example during an upgrade). If such is the case check the script commands (Tools > GreaseMonkey > Script Commands) to see if there is a command like “Reset preferences”. If you don’t find any you can uninstall the script and install it again, but while uninstalling don’t forget to check the “Also uninstall associated preferences” checkbox: without that your reinstall is useless.
  • What about privacy?: User scripts are installed in your browser, store data on your computer (Firefox preferences) and no information gathered is ever sent. At least this is the policy of my scripts. You can find malicious user scripts on the web, so stay away from them. Some of my scripts (notably the PackRat script) need to download daily a database from my server, I use the number of hits to know the number of daily users.
  • Where can I find other user scripts?: A great resource is UserScripts.org, all my scripts have a page there and you can easily search the site for anything you want.
  • I would like a script for the … application, what should I do?: If it is a Facebook application post a feature request on the Facebook GreaseMonkey SourceForge tracker. We’ll try to answer you as soon as possible. Otherwise ask on the UserScripts.org forums.

8 Comments »

  1. Another piece of advise. Don’t forget to leave greasemonkey ON to download the latest script. It took me a few tries before I realized this simple step was missing. :)

    Comment by HLM — 31/7/2008 @ 5:11 am

  2. I don’t have much of a programming background, but I was wondering if it’s possible to have a script that only runs when I’m attacked? I’d rather money just stayed out in open unless I lose a fight (as it’s assumed I’ll lose several more to same person). I was also reading that only when your health is between 29-20% of max health are you in kill range so only then I’d like to heal. Would it be relatively easy to do something like the following (only with actual programming skill).

    On attack
    Get variables
    - dmg_taken
    - dmg_given
    - free_funds
    - bank_funds
    If dmg_taken > dmg_given check free_funds
    If free_funds >$1000 deposit into bank_funds
    Else do nothing
    Else do nothing
    Get variables
    - max_hps
    - current_hps
    - heal_cost
    If current_hps = 0.29 to 0.20 of max_hps check bank_funds
    If bank_funds >= heal_cost then heal boss
    Else do nothing
    Else do nothing
    Reset variables
    Goto start

    Comment by chickachickawhawha — 10/8/2008 @ 5:41 am

  3. chickachickawhawha: Your comment belongs rather to one of the Mob Wars related posts. I’ll move it there after some time.

    The reason why the script does not bank your fighting winnings is that it’s really annoying to go to the bank after every hit. I can add something like “if you don’t have any more stamina, go to the bank”.

    If you set the healing limit to 30, you’ll always be over the dead zone limit. However I can add a setting that only keeps you out of this zone (i.e. does not heal you when you are in the hospital, but only if your health is between 20% and 30%). Anyway it’s hard to get killed by attacking, most probably you’ll die on the hitlist or by defending yourself.

    Comment by Piotr P. Karwasz — 10/8/2008 @ 12:55 pm

  4. The script was working before, but this morning it’s not visible… Within FF I’ve uninstalled both your script (checking that both that removes all related content too), and Greasemonkey, reinstalled everything again but the small box at the bottom right no longer is visible! I’m not sure what I did (if anything), but any help would be appreciated!

    Thanks!

    Comment by Richie — 4/10/2008 @ 8:41 pm

  5. Error in module ‘page’ on line 53: div is null

    Say what? What does that mean?

    Comment by Merete — 6/10/2008 @ 11:04 am

  6. I’m getting the below:

    Error in module ‘inventory’ on line 788: result is null

    Its concerning the distilling alcholol job, I just end up making a ton of alchohol. I tried uninstalling and reinstalling..

    Comment by Tim — 18/11/2008 @ 9:02 pm

  7. Error in module ‘inventory’ on line 788: result is null

    The script wasd working fine, until now…

    Comment by Dimmy — 20/11/2008 @ 9:47 pm

  8. i left a comment b4 but it hasnt shown up…so i’ll leave one more.

    Error in module ‘jobs’ on line 1253: itemlist[item] has no properties

    script was a dream til now. thanx for making it. its amazing. can you fix this problem?

    Comment by Johnny — 20/11/2008 @ 11:57 pm

RSS feed for comments on this post.

Leave a comment

Powered by WordPress