** Pastebin PRO Accounts Spring Special ** Get 40% discount for a limited time only! Click Here to check it out ;-)Want more features on Pastebin? Sign Up, it's FREE!


By: a guest on Feb 25th, 2012  |  syntax: Lua  |  size: 0.32 KB  |  views: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pattern:^o(\w+)$
  3. script:
  5. orbLimbs={rl="right leg", ra="right arm", ll="left leg", lr="left arm", tt="torso", hh="head",}
  6. for k,v in pairs(orbLimbs) do if k==matches[2] then local orbLimb=v end end
  7. if table.containsk(orbLimbs, matches[2]) then
  8. send("order "..orb.." defend "..orbLimb)
  9. else
  10. send(matches[1],false)
  11. end
clone this paste RAW Paste Data