mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-20 22:53:26 +02:00
Version 1.4 - Websockets and bug fixes
This commit is contained in:
@@ -227,6 +227,9 @@ function checkCreatures()
|
||||
end
|
||||
|
||||
local player = g_game.getLocalPlayer()
|
||||
if not player then
|
||||
return
|
||||
end
|
||||
local dimension = modules.game_interface.getMapPanel():getVisibleDimension()
|
||||
local spectators = g_map.getSpectatorsInRangeEx(player:getPosition(), false, math.floor(dimension.width / 2), math.floor(dimension.width / 2), math.floor(dimension.height / 2), math.floor(dimension.height / 2))
|
||||
|
||||
|
Reference in New Issue
Block a user