This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

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+)$
  2.  
  3. script:
  4.  
  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