SHOW:
|
|
- or go back to the newest paste.
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.": |
31 | + | |
32 | 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.": | |
33 | ||
34 | b==f?"Please check out this link for help with the “!stats” command: https://bit.ly/2QxJjgc": | |
35 | ||
36 | - | b==f?"Please check out this link for help with the “!stats” command: https://bit.ly/2Bp8Sfi": |
36 | + | |
37 | ||
38 | d!="null"?"Please only fill the first two fields after !stats. (Ex.!stats PotatoAteHer fletching)": | |
39 | ||
40 | q=="total"?r+"’s Total level is "+h[1]+".": | |
41 | ||
42 | q=="attack"?r+"’s Attack level is "+h[3]+".": | |
43 | ||
44 | q=="defense"?r+"’s Defense level is "+h[5]+".": | |
45 | ||
46 | q=="strength"?r+"’s Strength level is "+h[7]+".": | |
47 | ||
48 | q=="hitpoints"?r+"’s Hitpoints level is "+h[9]+".": | |
49 | q=="hp"?r+"’s Hitpoints level is "+h[9]+".": | |
50 | ||
51 | q=="range"?r+"’s Range level is "+h[11]+".": | |
52 | ||
53 | q=="prayer"?r+"’s Prayer level is "+h[13]+".": | |
54 | ||
55 | q=="magic"?r+"’s Magic level is "+h[15]+".": | |
56 | ||
57 | q=="cooking"?r+"’s Cooking level is "+h[17]+".": | |
58 | ||
59 | q=="woodcutting"?r+"’s Woodcutting level is "+h[19]+".": | |
60 | q=="wcing"?r+"’s Woodcutting level is "+h[19]+".": | |
61 | ||
62 | q=="fletching"?r+"’s Fletching level is "+h[21]+".": | |
63 | ||
64 | q=="fishing"?r+"’s Fishing level is "+h[23]+".": | |
65 | ||
66 | q=="firemaking"?r+"’s Firemaking level is "+h[25]+".": | |
67 | q=="fming"?r+"’s Firemaking level is "+h[25]+".": | |
68 | ||
69 | q=="crafting"?r+"’s Crafting level is "+h[27]+".": | |
70 | ||
71 | q=="smithing"?r+"’s Smithing level is "+h[29]+".": | |
72 | ||
73 | q=="mining"?r+"’s Mining level is "+h[31]+".": | |
74 | ||
75 | q=="herblore"?r+"’s Herblore level is "+h[33]+".": | |
76 | ||
77 | q=="agility"?r+"’s Agility level is "+h[35]+".": | |
78 | ||
79 | q=="thieving"?r+"’s Thieving level is "+h[37]+".": | |
80 | ||
81 | q=="slayer"?r+"’s Slayer level is "+h[39]+".": | |
82 | ||
83 | q=="farming"?r+"’s Farming level is "+h[41]+".": | |
84 | ||
85 | q=="runecrafting"?r+"’s Runecrafting level is "+h[43]+".": | |
86 | q=="rcing"?r+"’s Runecrafting level is "+h[43]+".": | |
87 | ||
88 | q=="hunter"?r+"’s Hunter level is "+h[45]+".": | |
89 | ||
90 | q=="construction"?r+"’s Construction level is "+h[47]+".": | |
91 | q=="con"?r+"’s Construction level is "+h[47]+".": | |
92 | ||
93 | q=="combat"?r+"’s Combat level is "+p+", y their Combat stats are "+h[3]+" Attack, "+h[5]+" Defense, "+h[7]+" Strength, "+h[9]+" Hitpoints, "+h[11]+" Range, "+h[13]+" Prayer, y "+h[15]+" Magic.": | |
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.": |
95 | + | q=="skills1"?r+" has "+h[17]+" Cooking, "+h[19]+" Woodcutting, "+h[21]+" Fletching, "+h[23]+" Fishing, "+h[25]+" Firemaking, y "+h[27]+" Crafting.": |
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.": |
97 | + | q=="skills2"?r+" has "+h[29]+" Smithing, "+h[31]+" Mining, "+h[33]+" Herblore, "+h[35]+" Agility, "+h[37]+" Thieving, y "+h[39]+" Slayer.": |
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.": |
99 | + | q=="skills3"?r+" has "+h[41]+" Farming, "+h[43]+" Runecrafting, "+h[45]+" Hunter, y "+h[47]+" Construction.": |
100 | ||
101 | - | q=="skills3"?r+" has "+h[41]+" Farming, "+h[43]+" Runecrafting, "+h[45]+" Hunter, and "+h[47]+" Construction.": |
101 | + | b=="list"?"View list of skills and abbreviations here: https://bit.ly/34ASWmt": |
102 | ||
103 | - | b=="list"?"View list of skills and abbreviations here: https://bit.ly/3eX4RfI": |
103 | + | |
104 | ||
105 | "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." |