CameronFitzy

Stats

Jul 22nd, 2020 (edited)
2,457
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function makeList(a) {var aList=a.split(",");return aList};
  2.  
  3. function lowerC(c) {var lower=c.toLowerCase();return lower};
  4.  
  5. function upperB(b) {var bList=b.split("_");var bOutput="";for(var bNumber=0;bNumber<bList.length;bNumber++){var bSlice=bList[bNumber];var bCap=bSlice.charAt(0).toUpperCase();bOutput+=" "+bCap+bSlice.slice(1).toLowerCase()};return bOutput.slice(1)};
  6.  
  7. function upperC(c) {return c.charAt(0).toUpperCase()+c.slice(1).toLowerCase()};
  8.  
  9. function upperBU(b) {var bList=b.split("_");var bOutput="";for(var bNumber=0;bNumber<bList.length;bNumber++){var bSlice=bList[bNumber];var bCap=bSlice.charAt(0).toUpperCase();bOutput+="_"+bCap+bSlice.slice(1).toLowerCase()};return bOutput.slice(1)};
  10.  
  11. function upperBS(b) {var bList=b.split("_");var bOutput="";for(var bNumber=0;bNumber<bList.length;bNumber++){var bSlice=bList[bNumber];var bCap=bSlice.charAt(0).toUpperCase();bOutput+="%20"+bCap+bSlice.slice(1).toLowerCase()};return bOutput.slice(3)};
  12.  
  13. var h=makeList(a);
  14.  
  15. var i=parseInt(h[3]);
  16. var j=parseInt(h[5]);
  17. var k=parseInt(h[7]);
  18. var l=parseInt(h[9]);
  19. var m=parseInt(h[11]);
  20. var n=parseInt(h[13]);
  21. var o=parseInt(h[15]);
  22.  
  23. var p=Math.floor(Math.max(Math.floor(13/40*(i+k)+(1/4*(j+l+(n/2)))),Math.floor(13/40*(m*3/2)+(1/4*(j+l+(n/2)))),Math.floor(13/40*(o*3/2)+(1/4*(j+l+(n/2))))));
  24.  
  25. var q=lowerC(c);
  26. var r=upperB(b);
  27. var s=upperC(c);
  28. var t=upperBU(b);
  29. var u=upperBS(b);
  30.  
  31. b.toLowerCase()=="potatoateher"?"I would show you my stats but you’re undeserving of such awesomeness.":
  32.  
  33. h[0]=="Error Connecting To Remote Server"?"Sorry, the RuneScape highscores page is not loading fast enough or it is down. Please try again later.":
  34. h[0]=="Error Connecting To Remote Server "?"Sorry, the RuneScape highscores page is not loading fast enough or it is down. Please try again later.":
  35.  
  36. b==f?"Please check out this link for help with the “!stats” command: https://bit.ly/2Bp8Sfi":
  37.  
  38. h[1]==h[2]?"It appears “"+r+"” does not exist on the highscores. Please make sure you have not misspelled the name.":
  39.  
  40. d!="null"?"Please only fill the first two fields after !stats. (Ex.!stats PotatoAteHer fletching)":
  41.  
  42. q=="total"?r+"’s Total level is "+h[1]+".":
  43.  
  44. q=="attack"?r+"’s Attack level is "+h[3]+".":
  45.  
  46. q=="defense"?r+"’s Defense level is "+h[5]+".":
  47.  
  48. q=="strength"?r+"’s Strength level is "+h[7]+".":
  49.  
  50. q=="hitpoints"?r+"’s Hitpoints level is "+h[9]+".":
  51. q=="hp"?r+"’s Hitpoints level is "+h[9]+".":
  52.  
  53. q=="range"?r+"’s Range level is "+h[11]+".":
  54.  
  55. q=="prayer"?r+"’s Prayer level is "+h[13]+".":
  56.  
  57. q=="magic"?r+"’s Magic level is "+h[15]+".":
  58.  
  59. q=="cooking"?r+"’s Cooking level is "+h[17]+".":
  60.  
  61. q=="woodcutting"?r+"’s Woodcutting level is "+h[19]+".":
  62. q=="wcing"?r+"’s Woodcutting level is "+h[19]+".":
  63.  
  64. q=="fletching"?r+"’s Fletching level is "+h[21]+".":
  65.  
  66. q=="fishing"?r+"’s Fishing level is "+h[23]+".":
  67.  
  68. q=="firemaking"?r+"’s Firemaking level is "+h[25]+".":
  69. q=="fming"?r+"’s Firemaking level is "+h[25]+".":
  70.  
  71. q=="crafting"?r+"’s Crafting level is "+h[27]+".":
  72.  
  73. q=="smithing"?r+"’s Smithing level is "+h[29]+".":
  74.  
  75. q=="mining"?r+"’s Mining level is "+h[31]+".":
  76.  
  77. q=="herblore"?r+"’s Herblore level is "+h[33]+".":
  78.  
  79. q=="agility"?r+"’s Agility level is "+h[35]+".":
  80.  
  81. q=="thieving"?r+"’s Thieving level is "+h[37]+".":
  82.  
  83. q=="slayer"?r+"’s Slayer level is "+h[39]+".":
  84.  
  85. q=="farming"?r+"’s Farming level is "+h[41]+".":
  86.  
  87. q=="runecrafting"?r+"’s Runecrafting level is "+h[43]+".":
  88. q=="rcing"?r+"’s Runecrafting level is "+h[43]+".":
  89.  
  90. q=="hunter"?r+"’s Hunter level is "+h[45]+".":
  91.  
  92. q=="construction"?r+"’s Construction level is "+h[47]+".":
  93. q=="con"?r+"’s Construction level is "+h[47]+".":
  94.  
  95. q=="combat"?r+"’s Combat level is "+p+", and their Combat stats are "+h[3]+" Attack, "+h[5]+" Defense, "+h[7]+" Strength, "+h[9]+" Hitpoints, "+h[11]+" Range, "+h[13]+" Prayer, and "+h[15]+" Magic.":
  96.  
  97. q=="skills1"?r+" has "+h[17]+" Cooking, "+h[19]+" Woodcutting, "+h[21]+" Fletching, "+h[23]+" Fishing, "+h[25]+" Firemaking, and "+h[27]+" Crafting.":
  98.  
  99. q=="skills2"?r+" has "+h[29]+" Smithing, "+h[31]+" Mining, "+h[33]+" Herblore, "+h[35]+" Agility, "+h[37]+" Thieving, and "+h[39]+" Slayer.":
  100.  
  101. q=="skills3"?r+" has "+h[41]+" Farming, "+h[43]+" Runecrafting, "+h[45]+" Hunter, and "+h[47]+" Construction.":
  102.  
  103. b=="list"?"View list of skills and abbreviations here: https://bit.ly/3eX4RfI":
  104.  
  105. c=="null"?"Link to "+r+"’s stats: https://secure.runescape.com/m=hiscore_oldschool/hiscorepersonal?user1="+u:
  106.  
  107. "Sorry, “"+s+"” is either not recognized or you misspelled the skill try the command (!stats list) Or if it is part of a name try “"+t+"_"+s+"” instead."
RAW Paste Data Copied