Advertisement
ereinion

Pantogram2

May 9th, 2018
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void usePanto(stat statBuff, element eleResBuff, string leftSac, string middleSac, string rightSac) {
  2.     item[3] sacrificialItems;
  3.     int[5] choices;
  4.     int[3] sacrificialAmount;
  5.    
  6.     switch (statBuff) {
  7.         case $stat[muscle]:
  8.             choices[0] = 1;
  9.             break;
  10.         case $stat[mysticality]:
  11.             choices[0] = 2;
  12.             break;
  13.         case $stat[moxie]:
  14.             choices[0] = 3;
  15.             break;
  16.         default:
  17.             print_html("<font color=FF0000>Invalid input for stat to buff.</font>");
  18.             return;
  19.     }
  20.    
  21.     switch (eleResBuff) {
  22.         case $element[hot]:
  23.             choices[1] = 1;
  24.             break;,
  25.         case $element[cold]:
  26.             choices[1] = 2;
  27.             break;
  28.         case $element[spooky]:
  29.             choices[1] = 3;
  30.             break;
  31.         case $element[sleaze]:
  32.             choices[1] = 4;
  33.             break;
  34.         case $element[stench]:
  35.             choices[1] = 5;
  36.             break;
  37.         default:
  38.             print_html("<font color=FF0000>Invalid input for elemental resistance to buff.</font>");
  39.             return;
  40.     }
  41.    
  42.     sacrificialItems[0] = to_item(leftSac);
  43.     sacrificialAmount[0] = 1;
  44.     switch (to_lower_case(leftSac)) {
  45.         case "drops of blood":              # HP+40
  46.             choices[2] = -2;
  47.             sacrificialAmount[0] = 0;
  48.             break;
  49.         case "nail clippings":              # MP+20
  50.             choices[2] = -1;
  51.             sacrificialAmount[0] = 0;
  52.             break;
  53.         case "red pixel potion":            # HP-regen 5-10
  54.         case "royal jelly":                 # HP-regen 5-15
  55.         case "scented massage oil":         # HP-regen 10-20
  56.         case "cherry cloaca cola":          # MP-regen 5-10
  57.         case "bubblin' crude":              # MP-regen 5-15
  58.         case "glowing new age crystal":     # MP-regen 10-20
  59.         case "baconstone":                  # -3 MP to use skills
  60.             choices[2] = to_int(sacrificialItems[0]);
  61.             break;
  62.         default:
  63.             print_html("<font color=FF0000>Invalid input for left sacrifice (HP / MP stuff).</font>");
  64.             return;
  65.     }
  66.    
  67.     sacrificialItems[1] = to_item(middleSac);
  68.     sacrificialAmount[1] = 1;
  69.     switch (to_lower_case(middleSac)) {
  70.         case "some self-respect":           # -combat
  71.             choices[3] = -2;
  72.             sacrificialAmount[1] = 0;
  73.             break;
  74.         case "some self-control":           # +combat
  75.             choices[3] = -1;
  76.             sacrificialAmount[1] = 0;
  77.             break;
  78.         case "bar skin":                    # +50% initiative
  79.         case "hamethyst":                   # +10% crit. chance
  80.         case "huge bowl of candy":          # +100% candy drops
  81.         case "wriggling worm":              # +5 fishing skill
  82.         case "ten-leaf clover":             # -3 MP to use skills
  83.             choices[3] = to_int(sacrificialItems[1]);
  84.             break;
  85.         case "lead necklace":               # +10 lbs familiar weight
  86.         case "sea salt crystal":            # Makes you a better diver
  87.             choices[3] = to_int(sacrificialItems[1]);
  88.             sacrificialAmount[1] = 11;
  89.             break
  90.         case "8-ball":                      # +5 pool skill
  91.             choices[3] = to_int(sacrificialItems[1]);
  92.             sacrificialAmount[1] = 15;
  93.             break
  94.         case "moxie weed":                  # +5 pool skill
  95.             choices[3] = to_int(sacrificialItems[1]);
  96.             sacrificialAmount[1] = 99;
  97.             break;
  98.         default:
  99.             print_html("<font color=FF0000>Invalid input for middle sacrifice (various stuff).</font>");
  100.             return;
  101.     }
  102.    
  103.     sacrificialItems[2] = to_item(rightSac);
  104.     sacrificialAmount[2] = 1;
  105.     switch (to_lower_case(middleSac)) {
  106.         case "your hopes":                  # +20 weapon damage
  107.             choices[4] = -2;
  108.             sacrificialAmount[2] = 0;
  109.             break;
  110.         case "your dreams":                 # +20 spell damage
  111.             choices[4] = -1;
  112.             sacrificialAmount[2] = 0;
  113.             break;
  114.         case "taco shell":                  # +30% meat
  115.         case "porquoise":                   # +60% meat
  116.         case "fairy gravy boat":            # +15% item drop
  117.         case "tiny dancer":                 # +30% item drop
  118.             choices[4] = to_int(sacrificialItems[2]);
  119.             break;
  120.         case "Knob Goblin firecracker":     # +3 muscle stats per fight
  121.         case "razor-sharp can lid":         # +3 myst stats per fight
  122.         case "spider web":                  # +3 moxie stats per fight
  123.             choices[4] = to_int(sacrificialItems[2]);
  124.             sacrificialAmount[2] = 3;
  125.             break
  126.         case "synthetic marrow":            # +25% to all muscle gains
  127.         case "haunted battery":             # +25% to all muscle gains
  128.         case "the funk":                    # +25% to all muscle gains
  129.             choices[4] = to_int(sacrificialItems[2]);
  130.             sacrificialAmount[2] = 5;
  131.             break
  132.         default:
  133.             print_html("<font color=FF0000>Invalid input for right sacrifice (mostly +meat / item / stat stuff).</font>");
  134.             return;
  135.     }  
  136. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement