Pardus Ribbon Hunter's Module

By Azure Flash Last update Nov 11, 2009 — Installed 120 times. Daily Installs: 25, 18, 11, 6, 6, 3, 14, 3, 2, 0, 2, 5, 7, 2, 2, 2, 2
Script Summary:
The Pardus Ribbon Hunter's Module (PRIME) displays essential information for ribbon hunters right on the Nav screen in Pardus.
Version: 3.3

This script has no discussions.

start the discussion

This script has no reviews.

Approval status: Version 2.0+ approved by administrators, enjoy!

USAGE INSTRUCTIONS:
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
1) Install the script
2) Visit your stats page in each universe
3) Point your mouse over an NPC and wait for the tooltip to come up. Instead of the default "NPC Opponent" there should be "<npc>s killed: <kills>".

Version 3.3
¯¯¯¯¯¯¯¯¯¯¯
* Fixed a regular expressions bug that prevented detection of kills of the X-993 family of NPCs

Version 3.2
¯¯¯¯¯¯¯¯¯¯¯
* Fixed displaying kills to next ribbons when there is no next ribbon (resulting in "-1 to -1").

Version 3.1
¯¯¯¯¯¯¯¯¯¯¯
* Added new features to display the number of kills left until the next ribbon. The first one, enabled by default, displays how many kills are needed to reach the next ribbon right in the tooltip that displays the number of kills.

The second one, disabled by default and experimental, shows a certain number (5 by default) of the closest ribbons as a list under the left column on the navigation screen.

To turn those optional features (debug mode, next ribbon, top ribbons) on or off, open the script (right click in the Greasemonkey contextual menu) and edit the variables at the top of the script.

* I've come up with a name I like for this script! This script shall now be known as the Pardus Ribbon Hunter's Module, or Pardus PRIME, or the PRIME module (like a module you install in your ship's cockpit before going on a ribbon hunt).

Version 3.0
¯¯¯¯¯¯¯¯¯¯¯
Another sizeable update one hour after the last! Please bear with me during this intensive development period.

* Ran my code through JSLint, which found a number of changes to improve the quality of my code. Less implied global variables, less javascript-unfriendly block formats, less unsafe regular expressions, etc.

* Fixed a misspelling that made the script not display kills for "swarm of gorefangling" and "swarm of energy bee". Turns out they don't have an 's' in the stats page while I put one in my table of irregular filenames.

* Fixed an error that made the script say 41 + 1 = 411 instead of 42 (basically, made it so I added numbers and not strings).

Hopefully today we're getting closer and closer to a solid, stable version.

Version 2.5
¯¯¯¯¯¯¯¯¯¯¯
* Hopefully fixed a bug where Medusas, Mutated Medusas and Medusa Swarmlings were all confused because of loose string matching. Having not killed any medusas, however, I am unable to test it, so this is pretty much a blind fix. Cross your fingers!

* Fixed a bug which added an 's' for plural even to "swarmlings", displaying "swarmlingss".

Version 2.4
¯¯¯¯¯¯¯¯¯¯¯
* Fixed a bug which displayed kills for Space Worms instead of Space Worm Albinos (and presumably others like Space Maggots instead of Mutated Space Maggots).

* Fixed a bug which inserted bogus data at the end of the array when killing any monster, resulting in displaying " killed: 1" for monsters that haven't been killed before.

* Forgot to turn debug mode off again (for a few minutes)! If you see a bunch of alert windows, don't hesitate to edit the script and change the first line to say "var debug = false;". If you install this script when I'm done updating, though, debug mode should be off. The latest version of this script should have debug mode off by default.

Version 2.3
¯¯¯¯¯¯¯¯¯¯¯
* Changed the way jQuery is loaded, which brings the filesize down. Requires GreaseMonkey 0.8 or higher.

* Fixed a spelling mistake

* Fixed a bug where a monster killed for the first time wouldn't be saved, causing desynchronisation with the real statistics until the stats page would be loaded again.

Version 2.2
¯¯¯¯¯¯¯¯¯¯¯
Fixed a severe bug in my regular expressions that caused kill counts with only one digit not to be detected. Introduced in an early and clumsy "fix" of kill counts over 1000 (with a comma) not being displayed.

Also added a debug mode which you can activate by switching a debug boolean at the beginning of the script to see some alerts with internal information. (Removed some extra diagnostic alerts in build 8, oops!)

Version 2.1
¯¯¯¯¯¯¯¯¯¯¯
Manually capitalize monster names that aren't found in the stats page.

Version 2.0
¯¯¯¯¯¯¯¯¯¯¯
Version 1.0 was not approved by admins because of the very ajaxy nature of it. Version 2.0, hacked together in about 3 hours, instead stores information about the number of NPC kills locally and updates it whenever you kill an NPC.

After installation, you should visit your stats page to get the number of kills synchronized. Afterwards, with our patented KillTrak(tm) technology, the number of kills should hopefully remain correct even without visiting the stats page as you kill more critters.

Still todo:

1) Test for all NPCs
2) Fix bugs which are reported to me (PM me in Pardus, be as detailed as possible)

This script still has JQuery 1.3.2 integrated into it, so thanks to them!

Version 1.0
¯¯¯¯¯¯¯¯¯¯¯
This script fetches the number of NPCs killed in Pardus (www.pardus.at) from the player's stats page and replaces the rather unhelpful "NPC Opponent" image title by a mention of how many of this NPC the player has killed. Simply hover your mouse over an NPC's picture and wait for the tooltip to appear.

Todo:

1) Test for all kinds of NPCs to hunt down spelling mistakes and such
2) If necessary, implement measures to reduce the number of AJAX requests for the stats page

This script is not yet approved by the Pardus admins, so download it for source code reviewing purposes only! (Update: Version 1.0 NOT APPROVED! Never use this version in the game! You will murder the servers with AJAX stabbing!)

This script has the production version of JQuery 1.3.2 integrated into it mostly for the event handling functions.</kills></npc>