Script Summary: The Pardus Ribbon Hunter's Module (PRIME) displays essential information for ribbon hunters right on the Nav screen in Pardus.
Version: 4.6
Approval status: Version 2.0+ approved by administrators, enjoy!
USAGE INSTRUCTIONS
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
1) Install the script
2) If you had no previous version installed, 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> (x to n)".
NOTE ABOUT LIBRARIES
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
This script @requires (automatically downloads) the production version of jQuery 1.6.1 integrated into it mostly for the event handling functions, and includes a table sorter jQuery plugin for... well... sorting tables.
Version 4.6
¯¯¯¯¯¯¯¯¯¯¯
- Drastically improved recognition of real wormholes to differentiate them from wormhole monsters, pretty much got it from "not working" to "working fine". This means the script should work correctly for new users (where it stopped and did nothing before), record all wormholes, partial refresh or not, record more wormholes thanks to localStorage, and actually tell you whether it is a real wormhole.
Version 4.5
¯¯¯¯¯¯¯¯¯¯¯
- Fixed the old "-1 to -1" error appearing on sorting by XP
- Fixed Hidden Drug Stash image not appearing due to a naming bug
Version 4.4
¯¯¯¯¯¯¯¯¯¯¯
Added a fix to ensure the sortable table starts at the right place.
Version 4.3
¯¯¯¯¯¯¯¯¯¯¯
Added sorting feature in the Overview > Stats page for the list of kills.
Version 4.2
¯¯¯¯¯¯¯¯¯¯¯
Firefox 4 / HTML 5 compatibility fixes, all settings are now available in the user interface, and there is a new way to sort NPCs by their default order in the statistics page (by EXP). Some details:
* Fixed a bug where the settings couldn't be updated because the function didn't exist. This was due to the script tag's behavior having changed in Firefox 4. Took so long to find and fix...
* Killing an NPC for the first time wasn't registered properly because a function that handled the filename didn't return anything. I thereby award myself the Programming Facepalm Award 2011...
* You can now set the number of closest ribbons shown (default is 15), the size of the NPC thumbnail if you use partial refresh (default 16px), and sort the NPCs by XP (newly killed NPCs will appear at the end until the Stats page is visited again).
Version 4.1
¯¯¯¯¯¯¯¯¯¯¯
Many bugs fixed. You will need to visit your statistics page before bug #2 here will be fixed.
* Fixed bug where sometimes "-1 to -1" entries were shown
* Fixed bug that made the script not work with various swarmlings/hatchlings
* Fixed incompatibility with Pardus Quick Commands adding links in the Status box
* Fixed a bug where the ribbons list would disappear never to be seen again if all boundaries were to be unchecked.
Version 4.0
¯¯¯¯¯¯¯¯¯¯¯
Completely revamped ribbons list! What was once an afterthought beta-feature is now a central point of this script. The new closest ribbons list is:
1) Prettier, mimicking the default Pardus interface exactly and being positionned perfectly.
2) More compatible, supporting HTTPS and partial reload.
3) More powerful, allowing users to sort and filter through their closest ribbons
As usual, there's room for improvement:
1) This version is a bit reloady, I want to make the script wait a few seconds before refreshing when checking/unchecking checkboxes to allow several changes in a single reload.
2) Some options have no effect or can't be changed by users (don't show progress on mouseovers, change number of closest ribbons, change NPC thumbnail size).
3) I use unsafeWindow once but I don't think I can avoid that =(
Version 3.7
¯¯¯¯¯¯¯¯¯¯¯
Fixed an issue where Exocrabs wouldn't show properly in the mouse hover tooltip due to being spelled "Exo Crab" in the code.
Version 3.6
¯¯¯¯¯¯¯¯¯¯¯
* Added capability to keep a cross-universal list of known wormholes when visiting them and compares field IDs with this list to differentiate wormholes from wormhole monsters. Should work with X-holes and Y-holes as well. Performance not tested with a large number of wormholes. Could break if there's a size limit to GM_setValues, but as far as I know there isn't or it's enormous (well... like 64kB).
* KNOWN BUG MAYBE: euryale and other swarmlings displaying wrong?
Version 3.5
¯¯¯¯¯¯¯¯¯¯¯
* Fixed a bug where tables wouldn't be cleaned up properly after sorting, resulting in entries showing "-1 kills to -1".
Version 3.4
¯¯¯¯¯¯¯¯¯¯¯
* Adds detection of wormhole monsters
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!)</kills></npc>



