Advertisement
hhaos

forging script

Feb 23rd, 2013
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. For the pattern use:
  2.  
  3. ^forge (\w+)$
  4.  
  5. make sure it is set to perl regex
  6.  
  7. for the body:
  8.  
  9. if matches[2] == "rapier"
  10. --this is where the weapons are--
  11. then
  12. sendAll("outr 5 steel","forge for rapier")
  13.  
  14. elseif matches[2] == "lance"
  15. then
  16. sendAll("outr 2 steel","outr 5 wood","forge for lance")
  17.  
  18. elseif matches[2] == "longsword"
  19. then
  20. sendAll("outr 2 leather","outr 8 steel","forge for longsword")
  21.  
  22. elseif matches[2] == "scimitar"
  23. then
  24. endAll("outr 2 leather","outr 8 steel","forge for scimitar")
  25.  
  26. elseif matches[2] == "broadsword"
  27. then
  28. sendAll("outr 2 leather","outr 8 steel","forge for scimitar")
  29.  
  30. elseif matches[2] == "shortsword"
  31. then
  32. sendAll("outr 1 leather","outr 2 steel","forge for shortsword")
  33.  
  34. elseif matches[2] == "battleaxe"
  35. then
  36. sendAll("outr 1 leather","outr 7 steel","outr 1 wood","forge for battleaxe")
  37.  
  38. elseif matches[2] == "handaxe"
  39. then
  40. sendAll("outr 3 iron","outr 3 wood","forge for axe")
  41.  
  42. elseif matches[2] == "dagger"
  43. then
  44. sendAll("outr obsidian","forge for dagger")
  45.  
  46. elseif matches[2] == "spear"
  47. then
  48. sendAll("outr 3 steel","outr 4 wood","forge for spear")
  49.  
  50. elseif matches[2] == "trident"
  51. then
  52. sendAll("outr 3 steel","outr 4 wood","forge for trident")
  53.  
  54. elseif matches[2] == "bastard"
  55. then
  56. sendAll("outr 2 leather","outr 8 steel","forge for bastard")
  57.  
  58. elseif matches[2] == "halberd"
  59. then
  60. sendAll("outr 5 steel","outr 5 wood","forge for halberd")
  61.  
  62. elseif matches[2] == "bardiche"
  63. then
  64. sendAll("outr 6 steel","outr 5 wood","forge for bardiche")
  65.  
  66. elseif matches[2] == "javelin"
  67. then
  68. sendAll("outr obsidian","outr 3 wood","forge for javelin")
  69.  
  70. elseif matches[2] == "mace"
  71. then
  72. sendAll("outr 3 iron","outr 3 steel","outr 3 wood","forge for mace")
  73.  
  74. elseif matches[2] == "flail"
  75. then
  76. sendAll("outr 3 iron","outr 3 steel","outr 3 wood","forge for flail")
  77.  
  78. elseif matches[2] == "morningstar"
  79. then
  80. sendAll("outr 3 iron","outr 3 steel","outr wood","forge for morningstar")
  81.  
  82. elseif matches[2] == "warhammer"
  83. then
  84. sendAll("outr 5 steel","outr 3 wood","forge for warhammer")
  85.  
  86. --armour section--
  87.  
  88. elseif matches[2] == "leather"
  89. then
  90. sendAll("outr 10 leather","forge for leatherarmour")
  91.  
  92. elseif matches[2] == "ringmail"
  93. then
  94. sendAll("outr 5 leather","outr 3 steel","forge for ringmail")
  95.  
  96. elseif matches[2] == "scalemail"
  97. then
  98. sendAll("outr 5 leather","outr 6 steel","forge for scalemail")
  99.  
  100. elseif matches[2] == "chainmail"
  101. then
  102. sendAll("outr 6 cloth","outr 12 steel","forge for chainmail")
  103.  
  104. elseif matches[2] == "splintmail"
  105. then
  106. sendAll("outr 5 leather","outr 18 steel","forge for splintmail")
  107.  
  108. elseif matches[2] == "fieldplate"
  109. then
  110. sendAll("otur 8 cloth","outr 34 steel","forge for fieldplate")
  111.  
  112. elseif matches[2] == "fullplate"
  113. then
  114. sendAll("outr 10 cloth","outr 10 gold","outr 10 leather","outr 100 steel","forge for fullplate")
  115.  
  116. --Forging Shields--
  117.  
  118. elseif matches[2] == "buckler"
  119. then
  120. sendall("outr leather","outr steel","forge for buckler")
  121.  
  122. elseif matches[2] == "cavalry"
  123. then
  124. sendAll("outr 2 leather","outr steel","forge for cavalry")
  125.  
  126. elseif matches[2] == "banded"
  127. then
  128. sendAll("outr leather","outr 2 steel","forge for banded")
  129.  
  130. elseif matches[2] == "kite"
  131. then
  132. sendAll("outr leather","outr 3 steel","forge for kite")
  133.  
  134. elseif matches[2] == "tower"
  135. then
  136. sendAll("outr leather","outr 4 steel","forge for tower")
  137.  
  138.  
  139. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement