Advertisement
NicholasThornton

Transmutation Alias

Dec 21st, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.74 KB | None | 0 0
  1. NAME -- Make Minerals Alias            --- The Screenshot of this Alias is - http://snag.gy/HlyZi.jpg
  2. PATTERN -- ^make (\d+) (\w+)$
  3.  
  4.  
  5.  
  6. -------------------------IRON
  7.  
  8. if matches[3] == "iron" then
  9.   enableTrigger("t"..matches[3])
  10.  
  11. end
  12. if matches[3] == "iron" then
  13.    matches[2] = matches[2] / 2
  14.  
  15. end
  16. if matches[3] == "iron" then
  17.   send ("outr "..matches[2].." salt")
  18.   send ("synthesize iron")
  19.  
  20. end
  21.  
  22.  
  23. -------------------------LEAD
  24.  
  25. if matches[3] == "lead" then
  26.   enableTrigger("t"..matches[3])
  27.  
  28. end
  29. if matches[3] == "lead" then
  30.    matches[2] = matches[2] / 2
  31.  
  32. end
  33. if matches[3] == "lead" then
  34.   send ("outr "..matches[2].." salt")
  35.   send ("synthesize lead")
  36.  
  37. end
  38.  
  39.  
  40. -------------------------TIN
  41.  
  42. if matches[3] == "tin" then
  43.   enableTrigger("t"..matches[3])
  44.  
  45. end
  46. if matches[3] == "tin" then
  47.    matches[2] = matches[2] / 2
  48.  
  49. end
  50. if matches[3] == "tin" then
  51.   send ("outr "..matches[2].." sulphur")
  52.   send ("synthesize tin")
  53.  
  54. end
  55.  
  56. -------------------------COPPER
  57.  
  58. if matches[3] == "copper" then
  59.   enableTrigger("t"..matches[3])
  60.  
  61. end
  62. if matches[3] == "copper" then
  63.    matches[2] = matches[2] / 2
  64.  
  65. end
  66. if matches[3] == "copper" then
  67.   send ("outr "..matches[2].." sulphur")
  68.   send ("synthesize copper")
  69.  
  70. end
  71.  
  72. -------------------------GOLD
  73.  
  74. if matches[3] == "gold" then
  75.   enableTrigger("t"..matches[3])
  76.  
  77. end
  78. if matches[3] == "gold" then
  79.    matches[2] = matches[2] / 2
  80.  
  81. end
  82. if matches[3] == "gold" then
  83.   send ("outr "..matches[2].." mercury")
  84.   send ("synthesize gold")
  85.  
  86. end
  87.  
  88. -------------------------SILVER
  89.  
  90. if matches[3] == "silver" then
  91.   enableTrigger("t"..matches[3])
  92.  
  93. end
  94. if matches[3] == "silver" then
  95.    matches[2] = matches[2] / 2
  96.  
  97. end
  98. if matches[3] == "silver" then
  99.   send ("outr "..matches[2].." mercury")
  100.   send ("synthesize silver")
  101.  
  102. end
  103.  
  104.  
  105.  
  106. -------------------------POTASH1
  107.  
  108. if matches[3] == "potash" then
  109.   enableTrigger("t"..matches[3])
  110.  
  111. end
  112. if matches[3] == "potash" then
  113.    matches[2] = matches[2] / 5
  114.  
  115. end
  116. if matches[3] == "potash" then
  117.   send ("outr "..matches[2].." silver")
  118.   send ("outr "..matches[2].." sulphur")
  119.   send ("outr "..matches[2].." gold")
  120.   send ("transmutate potash")
  121.  
  122. end
  123.  
  124. --------------------------CINNABAR2
  125.  
  126. if matches[3] == "cinnabar" then
  127.   enableTrigger("t"..matches[3])
  128.  
  129. end
  130. if matches[3] == "cinnabar" then
  131.    matches[2] = matches[2] / 5 * 2
  132.  
  133. end
  134. if matches[3] == "cinnabar" then
  135.   send ("outr "..matches[2].." mercury")
  136.   send ("outr "..matches[2].." sulphur")
  137.   send ("transmutate cinnabar")
  138.  
  139. end
  140.  
  141.  
  142. --------------------------AURUM3
  143.  
  144. if matches[3] == "aurum" then
  145.   enableTrigger("t"..matches[3])
  146.  
  147. end
  148. if matches[3] == "aurum" then
  149.    matches[2] = matches[2] / 5
  150.  
  151. end
  152. if matches[3] == "aurum" then
  153.   send ("outr "..matches[2].." gold")
  154.   send ("outr "..matches[2].." sulphur")
  155.   send ("outr "..matches[2].." gold")
  156.   send ("transmutate aurum")
  157.  
  158. end
  159.  
  160. --------------------------  QUICKSILVER4
  161.  
  162. if matches[3] == "quicksilver" then
  163.   enableTrigger("t"..matches[3])
  164.  
  165. end
  166. if matches[3] == "quicksilver" then
  167.    matches[2] = matches[2] / 5
  168.  
  169. end
  170. if matches[3] == "quicksilver" then
  171.   send ("outr "..matches[2].." mercury")
  172.   send ("outr "..matches[2].." silver")
  173.   send ("outr "..matches[2].." mercury")
  174.   send ("transmutate quicksilver")
  175.  
  176. end
  177.  
  178.  
  179. --------------------------  GYPSUM5
  180.  
  181. if matches[3] == "gypsum" then
  182.   enableTrigger("t"..matches[3])
  183.  
  184. end
  185. if matches[3] == "gypsum" then
  186.    matches[2] = matches[2] / 5
  187.  
  188. end
  189. if matches[3] == "gypsum" then
  190.   send ("outr "..matches[2].." sulphur")
  191.   send ("outr "..matches[2].." silver")
  192.   send ("outr "..matches[2].." iron")
  193.   send ("transmutate gypsum")
  194.  
  195. end
  196.  
  197.  
  198. --------------------------  QUARTZ6
  199.  
  200. if matches[3] == "quartz" then
  201.   enableTrigger("t"..matches[3])
  202.  
  203. end
  204. if matches[3] == "quartz" then
  205.    matches[2] = matches[2] / 5
  206.  
  207. end
  208. if matches[3] == "quartz" then
  209.   send ("outr "..matches[2].." salt")
  210.   send ("outr "..matches[2].." tin")
  211.   send ("outr "..matches[2].." gold")
  212.   send ("transmutate quartz")
  213.  
  214. end
  215.  
  216.  
  217. --------------------------  FERRUM7
  218.  
  219. if matches[3] == "ferrum" then
  220.   enableTrigger("t"..matches[3])
  221.  
  222. end
  223. if matches[3] == "ferrum" then
  224.    matches[2] = matches[2] / 5
  225.  
  226. end
  227. if matches[3] == "ferrum" then
  228.   send ("outr "..matches[2].." iron")
  229.   send ("outr "..matches[2].." sulphur")
  230.   send ("outr "..matches[2].." iron")
  231.   send ("transmutate ferrum")
  232.  
  233. end
  234.  
  235.  
  236. --------------------------  Calamine8
  237.  
  238. if matches[3] == "calamine" then
  239.   enableTrigger("t"..matches[3])
  240.  
  241. end
  242. if matches[3] == "calamine" then
  243.    matches[2] = matches[2] / 5
  244.  
  245. end
  246. if matches[3] == "calamine" then
  247.   send ("outr "..matches[2].." iron")
  248.   send ("outr "..matches[2].." sulphur")
  249.   send ("outr "..matches[2].." gold")
  250.   send ("transmutate calamine")
  251.  
  252. end
  253.  
  254.  
  255. --------------------------  Arsenic9
  256.  
  257. if matches[3] == "arsenic" then
  258.   enableTrigger("t"..matches[3])
  259.  
  260. end
  261. if matches[3] == "arsenic" then
  262.    matches[2] = matches[2] / 5
  263.  
  264. end
  265. if matches[3] == "arsenic" then
  266.   send ("outr "..matches[2].." iron")
  267.   send ("outr "..matches[2].." sulphur")
  268.   send ("outr "..matches[2].." gold")
  269.   send ("transmutate arsenic")
  270.  
  271. end
  272.  
  273. --------------------------  Stannum10
  274.  
  275. if matches[3] == "stannum" then
  276.   enableTrigger("t"..matches[3])
  277.  
  278. end
  279. if matches[3] == "stannum" then
  280.    matches[2] = matches[2] / 5
  281.  
  282. end
  283. if matches[3] == "stannum" then
  284.   send ("outr "..matches[2].." tin")
  285.   send ("outr "..matches[2].." salt")
  286.   send ("outr "..matches[2].." tin")
  287.   send ("transmutate stannum")
  288.  
  289. end
  290.  
  291.  
  292. --------------------------  Plumbum11
  293.  
  294. if matches[3] == "plumbum" then
  295.   enableTrigger("t"..matches[3])
  296.  
  297. end
  298. if matches[3] == "plumbum" then
  299.    matches[2] = matches[2] / 5
  300.  
  301. end
  302. if matches[3] == "plumbum" then
  303.   send ("outr "..matches[2].." lead ")
  304.   send ("outr "..matches[2].." sulphur")
  305.   send ("outr "..matches[2].." lead")
  306.   send ("transmutate plumbum")
  307.  
  308. end
  309.  
  310.  
  311. --------------------------  Argentum12
  312.  
  313. if matches[3] == "argentum" then
  314.   enableTrigger("t"..matches[3])
  315.  
  316. end
  317. if matches[3] == "argentum" then
  318.    matches[2] = matches[2] / 5
  319.  
  320. end
  321. if matches[3] == "argentum" then
  322.   send ("outr "..matches[2].." silver ")
  323.   send ("outr "..matches[2].." salt")
  324.   send ("outr "..matches[2].." silver")
  325.   send ("transmutate argentum")
  326.  
  327. end
  328.  
  329.  
  330. --------------------------  Azurite13
  331.  
  332. if matches[3] == "azurite" then
  333.   enableTrigger("t"..matches[3])
  334.  
  335. end
  336. if matches[3] == "azurite" then
  337.    matches[2] = matches[2] / 5
  338.  
  339. end
  340. if matches[3] == "azurite" then
  341.   send ("outr "..matches[2].." copper ")
  342.   send ("outr "..matches[2].." sulphur")
  343.   send ("outr "..matches[2].." copper")
  344.   send ("transmutate azurite")
  345.  
  346. end
  347.  
  348.  
  349. --------------------------  Calcite14
  350.  
  351. if matches[3] == "calcite" then
  352.   enableTrigger("t"..matches[3])
  353.  
  354. end
  355. if matches[3] == "calcite" then
  356.    matches[2] = matches[2] / 5
  357.  
  358. end
  359. if matches[3] == "calcite" then
  360.   send ("outr "..matches[2].." iron ")
  361.   send ("outr "..matches[2].." salt")
  362.   send ("outr "..matches[2].." copper")
  363.   send ("transmutate calcite")
  364.  
  365. end
  366.  
  367.  
  368. --------------------------  Dolomite15
  369.  
  370. if matches[3] == "dolomite" then
  371.   enableTrigger("t"..matches[3])
  372.  
  373. end
  374. if matches[3] == "dolomite" then
  375.    matches[2] = matches[2] / 5
  376.  
  377. end
  378. if matches[3] == "dolomite" then
  379.   send ("outr "..matches[2].." iron ")
  380.   send ("outr "..matches[2].." salt")
  381.   send ("outr "..matches[2].." lead")
  382.   send ("transmutate dolomite")
  383.  
  384. end
  385.  
  386.  
  387. --------------------------  Antimony16
  388.  
  389. if matches[3] == "antimony" then
  390.   enableTrigger("t"..matches[3])
  391.  
  392. end
  393. if matches[3] == "antimony" then
  394.    matches[2] = matches[2] / 5
  395.  
  396. end
  397. if matches[3] == "antimony" then
  398.   send ("outr "..matches[2].." lead ")
  399.   send ("outr "..matches[2].." salt")
  400.   send ("outr "..matches[2].." silver")
  401.   send ("transmutate antimony")
  402.  
  403. end
  404.  
  405.  
  406. --------------------------  Cuprum17
  407. if matches[3] == "cuprum" then
  408.   enableTrigger("t"..matches[3])
  409.  
  410. end
  411. if matches[3] == "cuprum" then
  412.    matches[2] = matches[2] / 5
  413.  
  414. end
  415. if matches[3] == "cuprum" then
  416.   send ("outr "..matches[2].." copper")
  417.   send ("outr "..matches[2].." salt")
  418.   send ("outr "..matches[2].." copper")
  419.   send ("transmutate cuprum")
  420.  
  421. end
  422.  
  423.  
  424. --------------------------  Bisemutum18
  425. if matches[3] == "bisemutum" then
  426.   enableTrigger("t"..matches[3])
  427.  
  428. end
  429. if matches[3] == "bisemutum" then
  430.    matches[2] = matches[2] / 5
  431.  
  432. end
  433. if matches[3] == "bisemutum" then
  434.   send ("outr "..matches[2].." iron")
  435.   send ("outr "..matches[2].." sulphur")
  436.   send ("outr "..matches[2].." tin")
  437.   send ("transmutate bisemutum")
  438.  
  439. end
  440.  
  441.  
  442. --------------------------  Malachite19
  443. if matches[3] == "malachite" then
  444.   enableTrigger("t"..matches[3])
  445.  
  446. end
  447. if matches[3] == "malachite" then
  448.    matches[2] = matches[2] / 5
  449.  
  450. end
  451. if matches[3] == "malachite" then
  452.   send ("outr "..matches[2].." salt")
  453.   send ("outr "..matches[2].." copper")
  454.   send ("outr "..matches[2].." salt")
  455.   send ("outr "..matches[2].." copper")
  456.   send ("transmutate malachite")
  457.  
  458. end
  459.  
  460. --------------------------  Realgar20
  461. if matches[3] == "realgar" then
  462.   enableTrigger("t"..matches[3])
  463.  
  464. end
  465. if matches[3] == "realgar" then
  466.    matches[2] = matches[2] / 5
  467.  
  468. end
  469. if matches[3] == "realgar" then
  470.   send ("outr "..matches[2].." sulphur")
  471.   send ("outr "..matches[2].." tin")
  472.   send ("outr "..matches[2].." sulphur")
  473.   send ("outr "..matches[2].." tin")
  474.   send ("transmutate realgar")
  475.  
  476. end
  477.  
  478. --------------------------  Magnesium21
  479. if matches[3] == "magnesium" then
  480.   enableTrigger("t"..matches[3])
  481.  
  482. end
  483. if matches[3] == "magnesium" then
  484.    matches[2] = matches[2] / 5
  485.  
  486. end
  487. if matches[3] == "magnesium" then
  488.   send ("outr "..matches[2].." sulphur")
  489.   send ("outr "..matches[2].." tin")
  490.   send ("outr "..matches[2].." silver")
  491.   send ("transmutate magnesium")
  492.  
  493. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement