Isoraqathedh

Untitled

Dec 19th, 2016
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    function process()
  2.     {
  3.         var aether = 0;
  4.         var item = 0;
  5.         var glyph = 0;
  6.         var incantation = 0;
  7.         var potion = 0;
  8.         var f = document.f;
  9.         var i = 0;
  10.         var choices;
  11.  
  12.         // [1]
  13.         choices = findChecked(f.fourteen);
  14.         for (choice in choices) {
  15.             switch (choices[choice]) {
  16.                 case "1": incantation++; glyph++; aether++; break;
  17.                 case "2": potion++; item++; glyph++; break;
  18.                 case "3": aether++; item++; incantation++; break;
  19.                 case "4": aether++; incantation++; potion++; break;}}
  20.  
  21.         // [2]
  22.         choices = findChecked(f.one);
  23.         for (choice in choices) {
  24.             switch (choices[choice]) {
  25.                 case "1": glyph++; break;
  26.                 case "2": item++; break;
  27.                 case "3": incantation++; break;
  28.                 case "4": potion++; break;
  29.                 case "5": glyph++; break;
  30.                 case "6": aether++; break;}}
  31.  
  32.         // [3]
  33.         choices = findChecked(f.two);
  34.         for (choice in choices) {
  35.             switch (choices[choice]) {
  36.                 case "1": aether++; potion++; break;
  37.                 case "2":  break;}}
  38.  
  39.         // [4]
  40.         choices = findChecked(f.three);
  41.         for (choice in choices) {
  42.             switch (choices[choice]) {
  43.                 case "1": aether++; break;
  44.                 case "2":  break;}}
  45.  
  46.         // [5]
  47.         choices = findChecked(f.four);
  48.         for (choice in choices) {
  49.             switch (choices[choice]) {
  50.                 case "1": item++; break;
  51.                 case "2":  break;}}
  52.  
  53.         // [6]
  54.         choices = findChecked(f.five);
  55.         for (choice in choices) {
  56.             switch (choices[choice]) {
  57.                 case "1": item++; break;
  58.                 case "2":  break;}}
  59.  
  60.         // [7]
  61.         choices = findChecked(f.six);
  62.         for (choice in choices) {
  63.             switch (choices[choice]) {
  64.                 case "1": incantation++; break;
  65.                 case "2":  break;}}
  66.  
  67.         // [8]
  68.         choices = findChecked(f.seven);
  69.         for (choice in choices) {
  70.             switch (choices[choice]) {
  71.                 case "1": incantation++; break;
  72.                 case "2":  break;}}
  73.  
  74.         // [9]
  75.         choices = findChecked(f.eight);
  76.         for (choice in choices) {
  77.             switch (choices[choice]) {
  78.                 case "1": glyph++; break;
  79.                 case "2":  break;}}
  80.  
  81.         // [10]
  82.         choices = findChecked(f.nine);
  83.         for (choice in choices) {
  84.             switch (choices[choice]) {
  85.                 case "1": glyph++; potion++; break;
  86.                 case "2":  break;}}
  87.  
  88.         // [11]
  89.         choices = findChecked(f.ten);
  90.         for (choice in choices) {
  91.             switch (choices[choice]) {
  92.                 case "1": potion++; break;
  93.                 case "2":  break;}}
  94.  
  95.         // [12]
  96.         choices = findChecked(f.eleven);
  97.         for (choice in choices) {
  98.             switch (choices[choice]) {
  99.                 case "1": potion++; break;
  100.                 case "2":  break;}}
  101.  
  102.         // [13]
  103.         choices = findChecked(f.fifteen);
  104.         for (choice in choices) {
  105.             switch (choices[choice]) {
  106.                 case "1": glyph++; break;
  107.                 case "2":  break;}}
  108.  
  109.         // [14]
  110.         choices = findChecked(f.sixteen);
  111.         for (choice in choices) {
  112.             switch (choices[choice]) {
  113.                 case "1": potion++; item++; break;
  114.                 case "2": glyph++; incantation++; aether++; break;}}
  115.  
  116.         // [15]
  117.         choices = findChecked(f.twelve);
  118.         for (choice in choices) {
  119.             switch (choices[choice]) {
  120.                 case "1": item++; glyph++; potion++; aether++; incantation++; break;
  121.                 case "2": potion++; aether++; incantation++; break;
  122.                 case "3":  break;}}
  123.  
  124.         // [16]
  125.         choices = findChecked(f.thirteen);
  126.         for (choice in choices) {
  127.             switch (choices[choice]) {
  128.                 case "1": incantation++; break;
  129.                 case "2": incantation++; break;
  130.                 case "3": item++; break;
  131.                 case "4": item++; break;
  132.                 case "5": glyph++; break;
  133.                 case "6": potion++; break;
  134.                 case "7": aether++; break;
  135.                 case "8": aether++; break;
  136.                 case "9": potion++; break;
  137.                 case "10": glyph++; break;
  138.                 case "11": aether++; break;}}
  139.  
  140.         var out = "mt-aether";
  141.         i = aether;
  142.         if (item > i) { out = "mt-item"; i = item; }
  143.         if (glyph > i) { out = "mt-glyph"; i = glyph; }
  144.         if (potion > i) { out = "mt-potion"; i = potion; }
  145.         if (incantation > i) { out = "mt-incantation"; i = incantation; }
  146.         //location.href = out + ".htm";
  147.         return [aether, item, glyph,potion, incantation];
  148.     }
Advertisement
Add Comment
Please, Sign In to add comment