Difference between revisions of "Client Patch 4.0.27.66"
m (Created page with "{{Client Patch |client=ec |date=November 1, 2012 |size=72,434,189 |notes= |patchnotes=Cliloc Changes ===Exposed the following functions to LUA for Enhanced Client Custom UI:=== =...") |
m |
||
Line 37: | Line 37: | ||
*local terrainType = GetTerrainType(WindowData.PlayerLocation.x, WindowData.PlayerLocation.y, WindowData.PlayerLocation.z) | *local terrainType = GetTerrainType(WindowData.PlayerLocation.x, WindowData.PlayerLocation.y, WindowData.PlayerLocation.z) | ||
|previous=4.0.27.9 | |previous=4.0.27.9 | ||
+ | |next=4.0.28.0 | ||
}} | }} |
Latest revision as of 16:27, 6 November 2012
This patch was for the Enhanced Client.
Statistics
- Date: November 1, 2012
- Size: 72,434,189 bytes
- Notes: None
Patch Notes
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)
See Also
Enhanced Client Patches | |||||
---|---|---|---|---|---|
|