-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathparticleCreator.lua
More file actions
30 lines (26 loc) · 1.01 KB
/
particleCreator.lua
File metadata and controls
30 lines (26 loc) · 1.01 KB
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
tfm.exec.disableAutoShaman(true)
tfm.exec.newGame("@7735241")
tfm.exec.setGameTime(10000)
tfm.exec.disableAfkDeath(true)
function showDashParticles(types, direction, x, y)
for i = 1, #types do
tfm.exec.displayParticle(types[i], x, y, math.random() * direction, math.random(), 0, 0, nil)
tfm.exec.displayParticle(types[i], x, y, math.random() * direction, -math.random(), 0, 0, nil)
tfm.exec.displayParticle(types[i], x, y, math.random() * direction, -math.random(), 0, 0, nil)
tfm.exec.displayParticle(types[i], x, y, math.random() * direction, -math.random(), 0, 0, nil)
end
end
function eventChatCommand(playerName, message)
local arg = {}
for argument in message:gmatch("[^%s]+") do
table.insert(arg, argument)
end
arg[1] = string.lower(arg[1])
if arg[1] == "p" and arg[2] ~= nil then
local types = {arg[2]}
for i = 3, #arg do
table.insert(types, arg[i])
end
showDashParticles(types, 1, 400, 200)
end
end