mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 01:29:21 +02:00
17 lines
355 B
Lua
17 lines
355 B
Lua
function postostring(pos)
|
|
return pos.x .. " " .. pos.y .. " " .. pos.z
|
|
end
|
|
|
|
function dirtostring(dir)
|
|
for k,v in pairs(Directions) do
|
|
if v == dir then
|
|
return k
|
|
end
|
|
end
|
|
end
|
|
|
|
function comma_value(n)
|
|
local left,num,right = string.match(n,'^([^%d]*%d)(%d*)(.-)$')
|
|
return left..(num:reverse():gsub('(%d%d%d)','%1,'):reverse())..right
|
|
end
|