Files
2026-06-01 12:46:52 +02:00

67 lines
959 B
Lua

------------------------------------------------------------------------------------------------------------
function dungeon_instance_check_moveable( dungeon_instance_id, x, y )
------------------------------------------------------------------------------------------------------------
end
function fz_check_moveable(x,y)
--152654 77275
--152285 77213
--[[ Off script
tt = inside_box(152653, 77275 , 152833 , 77473 ,x , y)
if tt == true then
cprint("insidebox = true")
return false
else
cprint("insidebox = false")
return true
end
]]--
return true
end
function inside_box(x1, y1 , x2 , y2 ,px , py)
local inx = 0
local iny = 0
if x1 <= x2 then
if px >= x1 and px <= x2 then
inx = 1
end
else
if px >= x2 and px <= x1 then
inx = 1
end
end
if y1 <= y2 then
if py >= y1 and py <= y2 then
iny = 1
end
else
if py >= y2 and py <= y1 then
iny = 1
end
end
if iny == 1 and inx == 1 then
return true
else
return false
end
end