Advertisement
Guest User

Untitled

a guest
Jan 30th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ^hnr (\w+)$
  2.  
  3. local name = name or target
  4. local str = ""
  5. local toxin, toxin2 = outrider.choose_toxin(name)
  6. echo(matches[2])
  7. local t = {
  8. north = "s",
  9. south = "n",
  10. east = "w",
  11. west = "e",
  12. southwest = "ne",
  13. southeast = "nw",
  14. northeast = "sw",
  15. northwest = "se",
  16. up = "d",
  17. down = "up",
  18. n = "s",
  19. s = "n",
  20. e = "w",
  21. w = "e",
  22. ne = "sw",
  23. nw = "se",
  24. se = "nw",
  25. sw = "ne",
  26. u = "d",
  27. d = "u",
  28. ["in"] = "out",
  29. out = "in",
  30. }
  31. local dir = matches[2]
  32. echo(t[dir])
  33.  
  34. str = str..dir..sp.."spear stab "..target..sp.."queue eqbal "..t[dir]..sp
  35.  
  36. str = str:gsub("target",name)
  37. send(str)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement