- Awards
- 1
Cliloc Changes
Exposed the following functions to LUA for Enhanced Client Custom UI:
PlaySoundByID()
Plays a game sound.
Parameters
type (int) The type of sound: ambient = 0, action =1
id (int) The id of the sound file to play
x (int) The x coordinate of the target location.
y (int) The y coordinate of the target location.
z (int) The z coordinate of the target location.
Returns
Nil No return value
Example:
PlaySoundByID( 1, 23, WindowData.PlayerLocation.x, WindowData.PlayerLocation.y, WindowData.PlayerLocation.z)
GetDistanceFromPlayer()
Returns the distance in tiles from the target to the player
Parameters
Id(int) The id of the target used to measure distance
Returns
distance(number) The numbers of tiles from the player
Example
local distanceFromPlayer = GetDistanceFromPlaye(WindowData.CurrentTarget.TargetId)
GetTerrainType
Returns the terrain type id on the given coordinates
Parameters
x(int) The x coordinate of the target location.
y(int) The y coordinate of the target location.
Z(int) The z coordinate of the target location.
Returns
type(number) The terrain type id of the tile at the given location.
Example
local terrainType = GetTerrainType(WindowData.PlayerLocation.x, WindowData.PlayerLocation.y, WindowData.PlayerLocation.z)
Exposed the following functions to LUA for Enhanced Client Custom UI:
PlaySoundByID()
Plays a game sound.
Parameters
type (int) The type of sound: ambient = 0, action =1
id (int) The id of the sound file to play
x (int) The x coordinate of the target location.
y (int) The y coordinate of the target location.
z (int) The z coordinate of the target location.
Returns
Nil No return value
Example:
PlaySoundByID( 1, 23, WindowData.PlayerLocation.x, WindowData.PlayerLocation.y, WindowData.PlayerLocation.z)
GetDistanceFromPlayer()
Returns the distance in tiles from the target to the player
Parameters
Id(int) The id of the target used to measure distance
Returns
distance(number) The numbers of tiles from the player
Example
local distanceFromPlayer = GetDistanceFromPlaye(WindowData.CurrentTarget.TargetId)
GetTerrainType
Returns the terrain type id on the given coordinates
Parameters
x(int) The x coordinate of the target location.
y(int) The y coordinate of the target location.
Z(int) The z coordinate of the target location.
Returns
type(number) The terrain type id of the tile at the given location.
Example
local terrainType = GetTerrainType(WindowData.PlayerLocation.x, WindowData.PlayerLocation.y, WindowData.PlayerLocation.z)