1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--------------------------
---Teleportation jutsu----
--------------------------
tilex = 23
tiley = 1
--------------------------
----Score requirements----
--------------------------
score_max = 10
kills_max = 0
---------------
-----Setup-----
---------------
ace = {}
for i = 1, 32 do ace[i] = 0 end
addhook("endround","kills_check")
addhook("startround","ace_check")
addhook("ms100","debugger")
---------------
---Functions---
---------------
function debugger()
parse('hudtxt 0 "©255255255P1Ace?: ['..ace[1]..'] P1Kills: ['..player(1,'score')..'] P1Deaths: ['..player(1,'deaths')..']" 100 100 0 0 20')
end
function kills_check()
for i = 1, 32 do
if player(i,'exists') then
if player(i,'score') >= score_max then
if player(i,'deaths') <= kills_max then
ace[i] = 1
end
end
end
end
end
function ace_check()
local x = tilex * 32 + 16
local y = tiley * 32 + 16
for i = 1, 32 do
if ace[i] == 1 then
parse('setpos '..i..' '..x..' '..y)
msg2(i,'©255255255New Place')
end
end
end