My First User Script – MouseHunt Travel Advisory

The script is already ready, you can found it at MouseHunt Travel Advisory website or visit userscripts.org website.

After more than a week of spending my free time learning and working on user script (also call Greasemoneky script), I finally come out a prototype of MouseHunt Travel Advisory (a temporary name given to my created script). This script build specially for MouseHunt application in Facebook. It is able to calculate the cheapest route from player’s current location to location the player wish to travel to. It work similar to Pooflinger’s Travel Planner, but this script read player location directly from the application and embed the result directly into application instead of opening another tab for travel planner.

Well, this script may not sound so good for hunter who own a lot of gold, but this script should be good enough for hunter who want to save as much as gold yet lazy to open another tab to look for alternative route when travel.

Currently, I was only able to complete the AJAX part (require the whole web page is fully loaded before player click on any location) and yet to complete the HTML part (doesn’t not require the whole web page loaded before player click on any location). The script also face some performance issue where travel to location required a lot of gold such S. S. Huntington II or Dracano (the script need to loop through a lot of route), but I had found a solution for this. The script should be able to complete in this few days (if I’m hardworking enough).

Now, who said play game is bad for learning. Javascript, routing algorithm, performance measurement and… there are many else we can learn from a game!

by Ooi Keng Siang

5 thoughts on “My First User Script – MouseHunt Travel Advisory

  1. i very adore your own posting style, very helpful,
    don’t give up as well as keep posting simply because it just simply worth to read it.
    excited to find out more and more of your current content, have a good one 🙂

    Like

  2. Hi Keng

    I installed it in chrome and it looks and works pro. Great job. I hope you will add some other tools for MH working on Chrome 🙂

    Thanks
    P

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s