The NPC works with random_path and jump, so it is not stuck.
Full code:
local map = ...
local game = map:get_game()
local hero = map:get_hero()
function map:on_started()
local circle = sol.movement.create("circle")
circle:set_center(chest1,248,357)
circle:set_loop_delay(2000)
circle:set_angle_speed(200)
circle:set_duration(2000)
circle:set_max_rotations(10)
circle:set_initial_angle(360)
circle:set_clockwise(true)
circle:set_radius(360)
circle:set_radius_speed(60)
circle:start(gerf)
end
The only time anything happens is when I do the following.
local map = ...
local game = map:get_game()
local hero = map:get_hero()
function map:on_started()
local circle = sol.movement.create("circle")
circle:set_radius(360)
circle:start(gerf)
end