See also: ...
See also: ...

GetFieldId

Usage:

GetFieldId(coords)

Example:

coords = "460,355"
echo GetFieldId(coords)

This function converts coordinates into a field id.

The field id is a number between 0-63999. Each number directly corresponds to a square on the 800x800 grid map. The game server uses field ids to reference all the squares on the map... 0,0 has field id of 0.... 1,0 has field id of 1... 799,0 has field id of 799... 1,1 is field id 800... and so on. Many of the advanced scripting functions require you to convert your coordinates into fieldIds to use them.

FieldIdToCoords

Usage:

FieldIdToCoords(fieldId)

Example:

fid = 284460
echo FieldIdToCoords(fid)

This function converts a field id into coordinates. This example finds the coordinates of a field id:


CategoryFunctions

MapFunctions (last edited 2014-12-26 20:12:07 by Inanna)