Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- For the pattern use:
- ^forge (\w+)$
- make sure it is set to perl regex
- for the body:
- if matches[2] == "rapier"
- --this is where the weapons are--
- then
- sendAll("outr 5 steel","forge for rapier")
- elseif matches[2] == "lance"
- then
- sendAll("outr 2 steel","outr 5 wood","forge for lance")
- elseif matches[2] == "longsword"
- then
- sendAll("outr 2 leather","outr 8 steel","forge for longsword")
- elseif matches[2] == "scimitar"
- then
- endAll("outr 2 leather","outr 8 steel","forge for scimitar")
- elseif matches[2] == "broadsword"
- then
- sendAll("outr 2 leather","outr 8 steel","forge for scimitar")
- elseif matches[2] == "shortsword"
- then
- sendAll("outr 1 leather","outr 2 steel","forge for shortsword")
- elseif matches[2] == "battleaxe"
- then
- sendAll("outr 1 leather","outr 7 steel","outr 1 wood","forge for battleaxe")
- elseif matches[2] == "handaxe"
- then
- sendAll("outr 3 iron","outr 3 wood","forge for axe")
- elseif matches[2] == "dagger"
- then
- sendAll("outr obsidian","forge for dagger")
- elseif matches[2] == "spear"
- then
- sendAll("outr 3 steel","outr 4 wood","forge for spear")
- elseif matches[2] == "trident"
- then
- sendAll("outr 3 steel","outr 4 wood","forge for trident")
- elseif matches[2] == "bastard"
- then
- sendAll("outr 2 leather","outr 8 steel","forge for bastard")
- elseif matches[2] == "halberd"
- then
- sendAll("outr 5 steel","outr 5 wood","forge for halberd")
- elseif matches[2] == "bardiche"
- then
- sendAll("outr 6 steel","outr 5 wood","forge for bardiche")
- elseif matches[2] == "javelin"
- then
- sendAll("outr obsidian","outr 3 wood","forge for javelin")
- elseif matches[2] == "mace"
- then
- sendAll("outr 3 iron","outr 3 steel","outr 3 wood","forge for mace")
- elseif matches[2] == "flail"
- then
- sendAll("outr 3 iron","outr 3 steel","outr 3 wood","forge for flail")
- elseif matches[2] == "morningstar"
- then
- sendAll("outr 3 iron","outr 3 steel","outr wood","forge for morningstar")
- elseif matches[2] == "warhammer"
- then
- sendAll("outr 5 steel","outr 3 wood","forge for warhammer")
- --armour section--
- elseif matches[2] == "leather"
- then
- sendAll("outr 10 leather","forge for leatherarmour")
- elseif matches[2] == "ringmail"
- then
- sendAll("outr 5 leather","outr 3 steel","forge for ringmail")
- elseif matches[2] == "scalemail"
- then
- sendAll("outr 5 leather","outr 6 steel","forge for scalemail")
- elseif matches[2] == "chainmail"
- then
- sendAll("outr 6 cloth","outr 12 steel","forge for chainmail")
- elseif matches[2] == "splintmail"
- then
- sendAll("outr 5 leather","outr 18 steel","forge for splintmail")
- elseif matches[2] == "fieldplate"
- then
- sendAll("otur 8 cloth","outr 34 steel","forge for fieldplate")
- elseif matches[2] == "fullplate"
- then
- sendAll("outr 10 cloth","outr 10 gold","outr 10 leather","outr 100 steel","forge for fullplate")
- --Forging Shields--
- elseif matches[2] == "buckler"
- then
- sendall("outr leather","outr steel","forge for buckler")
- elseif matches[2] == "cavalry"
- then
- sendAll("outr 2 leather","outr steel","forge for cavalry")
- elseif matches[2] == "banded"
- then
- sendAll("outr leather","outr 2 steel","forge for banded")
- elseif matches[2] == "kite"
- then
- sendAll("outr leather","outr 3 steel","forge for kite")
- elseif matches[2] == "tower"
- then
- sendAll("outr leather","outr 4 steel","forge for tower")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement