SHOW:
|
|
- or go back to the newest paste.
1 | ^hnr (\w+)$ | |
2 | ||
3 | echo(matches[2]) | |
4 | local name = name or target | |
5 | echo(name) | |
6 | local str = "" | |
7 | local toxin, toxin2 = outrider.choose_toxin(name) | |
8 | echo(toxin) | |
9 | echo(toxin2) | |
10 | local t = { | |
11 | north = "s", | |
12 | south = "n", | |
13 | east = "w", | |
14 | west = "e", | |
15 | southwest = "ne", | |
16 | southeast = "nw", | |
17 | northeast = "sw", | |
18 | northwest = "se", | |
19 | up = "d", | |
20 | down = "up", | |
21 | n = "s", | |
22 | s = "n", | |
23 | e = "w", | |
24 | w = "e", | |
25 | ne = "sw", | |
26 | nw = "se", | |
27 | se = "nw", | |
28 | sw = "ne", | |
29 | u = "d", | |
30 | d = "u", | |
31 | ["in"] = "out", | |
32 | out = "in", | |
33 | } | |
34 | local dir = matches[2] | |
35 | echo(dir) | |
36 | echo(t[dir]) | |
37 | ||
38 | str = str..dir..sp.."spear stab "..target..sp.."queue eqbal "..t[dir]..sp | |
39 | ||
40 | str = str:gsub("target",name) | |
41 | send(str) |