Difference between revisions of "NDOIG"
Line 203: | Line 203: | ||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
− | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetIconId()</p> || . | + | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetIconId()</p>Returns<br>number - the id of the icon for this object || Get the icon id to use in the client user action for this object. |
|} | |} | ||
</center> | </center> | ||
Line 214: | Line 214: | ||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
− | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetIPAddress()</p> || . | + | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetIPAddress()</p>Returns<br>string - ip address of the user if any || Returns the IP address of the user attached to this object if any or . |
|} | |} | ||
</center> | </center> | ||
Line 225: | Line 225: | ||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
− | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetItemCount()</p> || . | + | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetItemCount()</p>returns<br>number - Number of items in the container, including count of containers inside containers. 0 for non containers || Get the total item count currently inside a container, recursively. |
|} | |} | ||
</center> | </center> | ||
Line 236: | Line 236: | ||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
− | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetLoc()</p> || . | + | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetLoc()</p>Returns<br>location - current location of this object || .Returns current location |
|} | |} | ||
</center> | </center> | ||
Line 247: | Line 247: | ||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
− | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetMobileType()</p> || . | + | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">GetMobileType()</p>Returns<br>string - Mobile type (Animal,Monster,Friendly,Player) || Get the mobile type of this object. |
|} | |} | ||
</center> | </center> |
Revision as of 07:02, 27 November 2019
Object Functions & Examples
GetAccessLevel() Returnsaccesslevel - access level of user |
Get the access level of the user attached to this object. |
Example
CODE EXAMPLE BLOCK
GetAllEquippedObjects() Returnstable - 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() Returnstable - 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() Returnstable of all shared object properties |
Returns all shared object properties for the object. |
Example
CODE EXAMPLE BLOCK
GetAllStats() Returnstable - 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() Returnsstring - asset bundle name |
Get the asset bundle name this object is associated with if not the default. |
Example
CODE EXAMPLE BLOCK
GetAttachedUserId() Paramsuserid - 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() Returnsnumber - base movement speed |
Get the base movement speed of this mobile. |
Example
CODE EXAMPLE BLOCK
GetCharacterName() Returnsstring - name of the character |
Returns a characters name regardless if they are online on this region or not. |
Example
CODE EXAMPLE BLOCK
GetColor() Returnsstring - New color in format (FFFFFF) ie: Red,Green,Blue in hexidecimal format |
Gets the color of this object. |
Example
CODE EXAMPLE BLOCK
GetContainedObjects() Returnstable - array of contained objects |
Returns table of objects inside this object if it is a container, this is not recursive. |
Example
CODE EXAMPLE BLOCK
GetCreationTemplateId() Returnsnumber - The ID of the current template the unit was created with |
Get template id this object was created with. Check the templates file for more details. |
Example
CODE EXAMPLE BLOCK
GetCurrentMoveSpeedModifier() Returnsfloat - returns 0 or the current move speed modifier |
Returns the current movement speed modifier of the mobile. |
Example
CODE EXAMPLE BLOCK
GetDest() Returnslocation - Current target destination of the mobile or Loc of zero for no destination set |
Returns the mobile's current target destination if any. |
Example
CODE EXAMPLE BLOCK
GetEquippedObject() Paramsstring - the name of the equipment slot Returns gameobject - the object in the equipped slot |
Get object equipped in the specified slot. |
Example
CODE EXAMPLE BLOCK
GetFacing() Returnsnumber - Returns the angle that a given object is facing |
Returns current facing angle in degrees. In respect to the world origin. |
Example
CODE EXAMPLE BLOCK
GetHue() Returnsnumber - hue value from the palette |
Gets the hue of this object. |
Example
CODE EXAMPLE BLOCK
GetIconId() Returnsnumber - the id of the icon for this object |
Get the icon id to use in the client user action for this object. |
Example
CODE EXAMPLE BLOCK
GetIPAddress() Returnsstring - ip address of the user if any |
Returns the IP address of the user attached to this object if any or . |
Example
CODE EXAMPLE BLOCK
GetItemCount() returnsnumber - Number of items in the container, including count of containers inside containers. 0 for non containers |
Get the total item count currently inside a container, recursively. |
Example
CODE EXAMPLE BLOCK
GetLoc() Returnslocation - current location of this object |
.Returns current location |
Example
CODE EXAMPLE BLOCK
GetMobileType() Returnsstring - Mobile type (Animal,Monster,Friendly,Player) |
Get the mobile type of this object. |
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