Difference between revisions of "NDGIG"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
Line 72: Line 72:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetCollisionInfoAtLoc()</p> || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetCollisionInfoAtLoc()</p>Params<br>location - location to test<returns>array - array of strings || Returns an array of strings containing information about the objects with collision at the specified location. This is in the form of the type of object Dynamic Object / Permanent Object and the items ID. If there is also a static collision entry present at this location the AARect2D bounds of this static collision entry are returned
 
|}
 
|}
 
</center>
 
</center>
Line 83: Line 83:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetCurrentModule()</p>Returns<br>string - name of current script || Returns the name of the top-level script/module this function is called in.
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetCurrentModule()</p>Returns<br>string - name of current script || Returns the name of the top-level script/module this function is called in.  
 
|}
 
|}
 
</center>
 
</center>

Revision as of 16:24, 19 November 2019

[Main] [Lua Examples]

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Global Functions & Examples

GetAllRegions()

Params
prefix - prefix (optional)
Returns
table - array of each region's name
Returns a list of all region names.

Example

 CODE EXAMPLE BLOCK

GetAllSeedGroups()

Params
grouptype - All, DefaultOnly, ModOnly
bool - should result include groups that are excluded from the initial load
Returns
table - Array of group names
Get the list of all seed object groups.

Example

 CODE EXAMPLE BLOCK

GetAllTemplateNames()

Params
filter - filter string by category
Returns
table - Array of template names
Get a list of template names.

Example

 CODE EXAMPLE BLOCK

GetBans()

Params
eventid - event identifier for the resulting getbanlist event
Gets a list of all active bans on the server.

Example

 CODE EXAMPLE BLOCK

GetCharacterListForUser()

Params
userid - userid to get the character list for
eventid - event identifier for the resulting characterlistrequestresult event
Returns
table - table of characters names and matching character ids.
.

Example

 CODE EXAMPLE BLOCK

GetClusterRegions()

Returns
table - table of regions in the cluster key = region address, value = {WorldName=worldname, SubregionName=subregion} NOTE: Subregion will be nil if no subregion is being used for that region server
Returns a table containing the available regions in the cluster INCLUDING itself.

Example

 CODE EXAMPLE BLOCK

GetCollisionInfoAtLoc()

Params
location - location to test<returns>array - array of strings
Returns an array of strings containing information about the objects with collision at the specified location. This is in the form of the type of object Dynamic Object / Permanent Object and the items ID. If there is also a static collision entry present at this location the AARect2D bounds of this static collision entry are returned

Example

 CODE EXAMPLE BLOCK

GetCurrentModule()

Returns
string - name of current script
Returns the name of the top-level script/module this function is called in.

Example

 CODE EXAMPLE BLOCK

GetCurrentObject()

Returns
string - objectreference to the currently executing script
Returns the object reference of the object the current script is executing upon.

Example

 CODE EXAMPLE BLOCK

GetInitializerFromTemplate()

.

Example

 CODE EXAMPLE BLOCK

GetLuaExtensionsEnabled()

.

Example

 CODE EXAMPLE BLOCK

GetModName()

.

Example

 CODE EXAMPLE BLOCK

GetPrefabExtents()

.

Example

 CODE EXAMPLE BLOCK

GetLuaProfilingEnabled()

.

Example

 CODE EXAMPLE BLOCK

GetRegion()

.

Example

 CODE EXAMPLE BLOCK

GetPath()

.

Example

 CODE EXAMPLE BLOCK

GetRegionsAtLoc()

.

Example

 CODE EXAMPLE BLOCK

GetSmallestRegionAtLoc()

.

Example

 CODE EXAMPLE BLOCK

GetSeedGroupCount()

.

Example

 CODE EXAMPLE BLOCK

GetSeedGroupData()

.

Example

 CODE EXAMPLE BLOCK

GetTemplateCategories()

.

Example

 CODE EXAMPLE BLOCK

GetTemplateData()

.

Example

 CODE EXAMPLE BLOCK

GetTemplateIconId()

.

Example

 CODE EXAMPLE BLOCK

GetTemplateObjVar()

.

Example

 CODE EXAMPLE BLOCK

GetTemplateObjectBounds()

.

Example

 CODE EXAMPLE BLOCK

GetTempmlateObjectName()

.

Example

 CODE EXAMPLE BLOCK

GetTemplateObjectProperty()

.

Example

 CODE EXAMPLE BLOCK

GetTemplateRoofBounds()

.

Example

 CODE EXAMPLE BLOCK

GetUserdataType()

.

Example

 CODE EXAMPLE BLOCK

GetViewObjectCount()

.

Example

 CODE EXAMPLE BLOCK

GetViewObjects()

.

Example

 CODE EXAMPLE BLOCK

GlobalVarDelete()

.

Example

 CODE EXAMPLE BLOCK

GlobalVarListRecords()

.

Example

 CODE EXAMPLE BLOCK

GlobalVarRead()

.

Example

 CODE EXAMPLE BLOCK

GlobalVarReadKey()

.

Example

 CODE EXAMPLE BLOCK

GlobalVarWrite()

.

Example

 CODE EXAMPLE BLOCK