Advertisement
Guest User

MMA Tycoon New Skills Snapshot

a guest
Nov 7th, 2015
1,262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. // ==UserScript==
  2. // @name MMA Tycoon New Skills Snapshot
  3. // @namespace http://www.tycoontools.com/greasemonkey-scripts
  4. // @description This script lets managers see the exact amount of points fighters have in a specific skill.
  5. // @include http://www.mmatycoon.com/mystatssnapshot.php*
  6. // @include http://mmatycoon.com/mystatssnapshot.php*
  7. // @version 1.0
  8. // @copyright 2015
  9. // @require https://code.jquery.com/jquery-1.11.3.min.js
  10. // ==/UserScript==
  11.  
  12. function Main() {
  13.  
  14. 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>');
  15.  
  16. jQuery("td[background*='images/barred'], td[background*='images/bargreen'], td[background*='images/barblue']").click(function(){
  17. var alertText = '';
  18. var barPercent = jQuery(this).attr('width').replace("%", "");
  19. barPercent = (barPercent * 1.5).toFixed(2);
  20.  
  21. if (barPercent < 5.0) {
  22. alertText = "Ouch! Better luck next time. Hope that fighter didn't cost you any VIP days.";
  23. } else if (barPercent >= 5.0 && barPercent < 5.5) {
  24. alertText = "Unlucky I guess? I mean, it's still a correct learning speed, but you need patience or really good hiddens with that fighter.";
  25. } else if (barPercent >= 5.5 && barPercent <= 6.5) {
  26. alertText = "That's a decent/fast learner you got there. With good hiddens, you may have yourself an org ID restricted beast!";
  27. } else if (barPercent > 6.5 && barPercent <= 7.5) {
  28. 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!";
  29. } else {
  30. 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.";
  31. }
  32.  
  33. alert(barPercent + '\n' + alertText);
  34. });
  35.  
  36. }
  37.  
  38. Main();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement