Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function process()
- {
- var aether = 0;
- var item = 0;
- var glyph = 0;
- var incantation = 0;
- var potion = 0;
- var f = document.f;
- var i = 0;
- var choices;
- // [1]
- choices = findChecked(f.fourteen);
- for (choice in choices) {
- switch (choices[choice]) {
- case "1": incantation++; glyph++; aether++; break;
- case "2": potion++; item++; glyph++; break;
- case "3": aether++; item++; incantation++; break;
- case "4": aether++; incantation++; potion++; break;}}
- // [2]
- choices = findChecked(f.one);
- for (choice in choices) {
- switch (choices[choice]) {
- case "1": glyph++; break;
- case "2": item++; break;
- case "3": incantation++; break;
- case "4": potion++; break;
- case "5": glyph++; break;
- case "6": aether++; break;}}
- // [3]
- choices = findChecked(f.two);
- for (choice in choices) {
- switch (choices[choice]) {
- case "1": aether++; potion++; break;
- case "2": break;}}
- // [4]
- choices = findChecked(f.three);
- for (choice in choices) {
- switch (choices[choice]) {
- case "1": aether++; break;
- case "2": break;}}
- // [5]
- choices = findChecked(f.four);
- for (choice in choices) {
- switch (choices[choice]) {
- case "1": item++; break;
- case "2": break;}}
- // [6]
- choices = findChecked(f.five);
- for (choice in choices) {
- switch (choices[choice]) {
- case "1": item++; break;
- case "2": break;}}
- // [7]
- choices = findChecked(f.six);
- for (choice in choices) {
- switch (choices[choice]) {
- case "1": incantation++; break;
- case "2": break;}}
- // [8]
- choices = findChecked(f.seven);
- for (choice in choices) {
- switch (choices[choice]) {
- case "1": incantation++; break;
- case "2": break;}}
- // [9]
- choices = findChecked(f.eight);
- for (choice in choices) {
- switch (choices[choice]) {
- case "1": glyph++; break;
- case "2": break;}}
- // [10]
- choices = findChecked(f.nine);
- for (choice in choices) {
- switch (choices[choice]) {
- case "1": glyph++; potion++; break;
- case "2": break;}}
- // [11]
- choices = findChecked(f.ten);
- for (choice in choices) {
- switch (choices[choice]) {
- case "1": potion++; break;
- case "2": break;}}
- // [12]
- choices = findChecked(f.eleven);
- for (choice in choices) {
- switch (choices[choice]) {
- case "1": potion++; break;
- case "2": break;}}
- // [13]
- choices = findChecked(f.fifteen);
- for (choice in choices) {
- switch (choices[choice]) {
- case "1": glyph++; break;
- case "2": break;}}
- // [14]
- choices = findChecked(f.sixteen);
- for (choice in choices) {
- switch (choices[choice]) {
- case "1": potion++; item++; break;
- case "2": glyph++; incantation++; aether++; break;}}
- // [15]
- choices = findChecked(f.twelve);
- for (choice in choices) {
- switch (choices[choice]) {
- case "1": item++; glyph++; potion++; aether++; incantation++; break;
- case "2": potion++; aether++; incantation++; break;
- case "3": break;}}
- // [16]
- choices = findChecked(f.thirteen);
- for (choice in choices) {
- switch (choices[choice]) {
- case "1": incantation++; break;
- case "2": incantation++; break;
- case "3": item++; break;
- case "4": item++; break;
- case "5": glyph++; break;
- case "6": potion++; break;
- case "7": aether++; break;
- case "8": aether++; break;
- case "9": potion++; break;
- case "10": glyph++; break;
- case "11": aether++; break;}}
- var out = "mt-aether";
- i = aether;
- if (item > i) { out = "mt-item"; i = item; }
- if (glyph > i) { out = "mt-glyph"; i = glyph; }
- if (potion > i) { out = "mt-potion"; i = potion; }
- if (incantation > i) { out = "mt-incantation"; i = incantation; }
- //location.href = out + ".htm";
- return [aether, item, glyph,potion, incantation];
- }
Advertisement
Add Comment
Please, Sign In to add comment