Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name MMA Tycoon New Skills Snapshot
- // @namespace http://www.tycoontools.com/greasemonkey-scripts
- // @description This script lets managers see the exact amount of points fighters have in a specific skill.
- // @include http://www.mmatycoon.com/mystatssnapshot.php*
- // @include http://mmatycoon.com/mystatssnapshot.php*
- // @version 1.0
- // @copyright 2015
- // @require https://code.jquery.com/jquery-1.11.3.min.js
- // ==/UserScript==
- function Main() {
- jQuery('h1:contains("Fighter Skills - Snapshot")').parent().append('<div>Select the skill you want to check, then click on the colored bar to see the exact skill amount.</div>');
- jQuery("td[background*='images/barred'], td[background*='images/bargreen'], td[background*='images/barblue']").click(function(){
- var alertText = '';
- var barPercent = jQuery(this).attr('width').replace("%", "");
- barPercent = (barPercent * 1.5).toFixed(2);
- if (barPercent < 5.0) {
- alertText = "Ouch! Better luck next time. Hope that fighter didn't cost you any VIP days.";
- } else if (barPercent >= 5.0 && barPercent < 5.5) {
- alertText = "Unlucky I guess? I mean, it's still a correct learning speed, but you need patience or really good hiddens with that fighter.";
- } else if (barPercent >= 5.5 && barPercent <= 6.5) {
- alertText = "That's a decent/fast learner you got there. With good hiddens, you may have yourself an org ID restricted beast!";
- } else if (barPercent > 6.5 && barPercent <= 7.5) {
- alertText = "Crazy fast learner dude. Seriously, give that guy a few months training, sign him up to an ID restricted org, and you'll be crushing cans like the Vendetta crew!";
- } else {
- alertText = "Keep in mind that this is not a fighter's learning speed. Learning speed is tested in 1 training session (with 1 point in the specific skill), at 100% energy/morale, 1 on 1 with an elite coach.";
- }
- alert(barPercent + '\n' + alertText);
- });
- }
- Main();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement