Difference between revisions of "NDOIG"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
Line 5: Line 5:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetAccessLevel()</p> || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetAccessLevel()</p>Returns<br>accesslevel - access level of user || Get the access level of the user attached to this object.
 
|}
 
|}
 
</center>
 
</center>
Line 16: Line 16:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetAllEquippedObjects()</p> || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetAllEquippedObjects()</p>Returns<br>table - array of all equipped objects in the gameobject || Get object equipped in the specified slot.
 
|}
 
|}
 
</center>
 
</center>
Line 27: Line 27:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetAllModules()</p> || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetAllModules()</p>table - array of all current lua modles || Gets a list of all the script modules that are currently attached to the given object.
 
|}
 
|}
 
</center>
 
</center>
Line 38: Line 38:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetAllObjVars()</p> || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetAllObjVars()</p>Returns<br>table - a table of object variables on the given object || Returns a (table) of all given object variables for a given object.
 
|}
 
|}
 
</center>
 
</center>
Line 49: Line 49:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetAllSharedObjectProperties()</p> || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetAllSharedObjectProperties()</p>Returns<br>table of all shared object properties || Returns all shared object properties for the object.
 
|}
 
|}
 
</center>
 
</center>
Line 60: Line 60:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetAllStats()</p> || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetAllStats()</p>Returns<br>table - a table of an object's given stat variables || Returns a (table) of all given stat variables for a given object. Table fields are dependent on "Type" key. Type maps to either Regen or Simple.(String). All entries have Value -> (double) Regen types include keys MaxValue -> (double) and RegenRate (double).
 
|}
 
|}
 
</center>
 
</center>
Line 71: Line 71:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetAssetBundleName()</p> || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetAssetBundleName()</p>Returns<br>string - asset bundle name || Get the asset bundle name this object is associated with if not the default.
 
|}
 
|}
 
</center>
 
</center>
Line 82: Line 82:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetAttachedUserId()</p> || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetAttachedUserId()</p>Params<br>userid - userid of attached player || If a player is attached to this object, it will return the unique user id for that player. This is a unique identifier for a player. Can be used to identify a player regardless of character. This works even if the character is offline!
 
|}
 
|}
 
</center>
 
</center>
Line 93: Line 93:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetBaseMoveSpeed()</p> || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetBaseMoveSpeed()</p>Returns<br>number - base movement speed || Get the base movement speed of this mobile.
 
|}
 
|}
 
</center>
 
</center>
Line 104: Line 104:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetCharacterName()</p> || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetCharacterName()</p>Returns<br>string - name of the character || Returns a characters name regardless if they are online on this region or not.
 
|}
 
|}
 
</center>
 
</center>
Line 115: Line 115:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetColor()</p> || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetColor()</p>Returns<br>string - New color in format (FFFFFF) ie: Red,Green,Blue in hexidecimal format || Gets the color of this object.
 
|}
 
|}
 
</center>
 
</center>

Revision as of 06:44, 27 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

Object Functions & Examples

GetAccessLevel()

Returns
accesslevel - access level of user
Get the access level of the user attached to this object.

Example

 CODE EXAMPLE BLOCK

GetAllEquippedObjects()

Returns
table - array of all equipped objects in the gameobject
Get object equipped in the specified slot.

Example

 CODE EXAMPLE BLOCK

GetAllModules()

table - array of all current lua modles
Gets a list of all the script modules that are currently attached to the given object.

Example

 CODE EXAMPLE BLOCK

GetAllObjVars()

Returns
table - a table of object variables on the given object
Returns a (table) of all given object variables for a given object.

Example

 CODE EXAMPLE BLOCK

GetAllSharedObjectProperties()

Returns
table of all shared object properties
Returns all shared object properties for the object.

Example

 CODE EXAMPLE BLOCK

GetAllStats()

Returns
table - a table of an object's given stat variables
Returns a (table) of all given stat variables for a given object. Table fields are dependent on "Type" key. Type maps to either Regen or Simple.(String). All entries have Value -> (double) Regen types include keys MaxValue -> (double) and RegenRate (double).

Example

 CODE EXAMPLE BLOCK

GetAssetBundleName()

Returns
string - asset bundle name
Get the asset bundle name this object is associated with if not the default.

Example

 CODE EXAMPLE BLOCK

GetAttachedUserId()

Params
userid - userid of attached player
If a player is attached to this object, it will return the unique user id for that player. This is a unique identifier for a player. Can be used to identify a player regardless of character. This works even if the character is offline!

Example

 CODE EXAMPLE BLOCK

GetBaseMoveSpeed()

Returns
number - base movement speed
Get the base movement speed of this mobile.

Example

 CODE EXAMPLE BLOCK

GetCharacterName()

Returns
string - name of the character
Returns a characters name regardless if they are online on this region or not.

Example

 CODE EXAMPLE BLOCK

GetColor()

Returns
string - New color in format (FFFFFF) ie: Red,Green,Blue in hexidecimal format
Gets the color of this object.

Example

 CODE EXAMPLE BLOCK

GetContainedObjects()

.

Example

 CODE EXAMPLE BLOCK

GetCreationTemplateId()

.

Example

 CODE EXAMPLE BLOCK

GetCurrentMoveSpeedModifier()

.

Example

 CODE EXAMPLE BLOCK

GetDest()

.

Example

 CODE EXAMPLE BLOCK

GetEquippedObject()

.

Example

 CODE EXAMPLE BLOCK

GetFacing()

.

Example

 CODE EXAMPLE BLOCK

GetHue()

.

Example

 CODE EXAMPLE BLOCK

GetIconId()

.

Example

 CODE EXAMPLE BLOCK

GetIPAddress()

.

Example

 CODE EXAMPLE BLOCK

GetItemCount()

.

Example

 CODE EXAMPLE BLOCK

GetLoc()

.

Example

 CODE EXAMPLE BLOCK

GetMobileType()

.

Example

 CODE EXAMPLE BLOCK

GetName()

.

Example

 CODE EXAMPLE BLOCK

GetObjVar()

.

Example

 CODE EXAMPLE BLOCK

GetObjVarType()

.

Example

 CODE EXAMPLE BLOCK

GetObjectOwner()

.

Example

 CODE EXAMPLE BLOCK

GetObjectOwner()

.

Example

 CODE EXAMPLE BLOCK

GetObjectTag()

.

Example

 CODE EXAMPLE BLOCK

GetObjectTags()

.

Example

 CODE EXAMPLE BLOCK

GetPathTarget()

.

Example

 CODE EXAMPLE BLOCK

GetRestrictedStatUpdateLevel()

.

Example

 CODE EXAMPLE BLOCK

GetRotation()

.

Example

 CODE EXAMPLE BLOCK

GetScale()

.

Example

 CODE EXAMPLE BLOCK

GetSharedObjectProperty()

.

Example

 CODE EXAMPLE BLOCK

GetStatMaxValue()

.

Example

 CODE EXAMPLE BLOCK

GetStatRegenRate()

.

Example

 CODE EXAMPLE BLOCK

GetStatValue()

.

Example

 CODE EXAMPLE BLOCK

GetStatVisibility()

.

Example

 CODE EXAMPLE BLOCK

GetTimerDelay()

.

Example

 CODE EXAMPLE BLOCK

GetUpdateRange()

.

Example

 CODE EXAMPLE BLOCK