Originally Posted by
Rojeh
I don't understand what you mean by checking if the item spawn is within the map bounds, the data on the API is a little bit confusing, can you elaborate how it works? or I can add the mapId instead to each spawn if it saves you some time.
Oh I noticed in the file u linked for maps, it has the bounds defined in there:
For example for map 0:
Code:
"mapId": 0, "name": "RuneScape Surface", "bounds": [[1088, 2432], [3968, 4160]]
I think the format is:
Code:
"mapId": Id, "name": "mapName", "bounds": [[x1, y1], [x2, y2]]
^So u would need to load the mapFile and then check if the coordinates for itemspawn position is actually inside the area defined by the map.
+ Also not sure if u have a way to automate all items with field spawns, but theres atleast: potato, cabbage, onion, grain.