From Stealth Client

Jump to: navigation, search


O

ObjAtLayer

function ObjAtLayer(LayerType:Byte):Cardinal

Returns Object ID located on your Char to specify the layer LayerType

If there is no connection to the UO server, or in the bed wearing nothing - returns 0.

Example:

if ObjAtLayer(EggsLayer) > 0 then 
  AddToSystemJournal('Skirt ID:' + IntToStr(ObjAtLayer(EggsLayer)));


ObjAtLayerEx

function ObjAtLayerEx(LayerType:Byte; PlayerID:Cardinal):Cardinal

Returns the Object ID to char PlayerID, located on the guidance layer LayerType

If there is no connection to the UO server, or in the bed wearing nothing - returns 0.

Example:

if ObjAtLayerEx(RhandLayer, sparring_partner) = 0 then 
  AddToSystemJournal('Sparring partner has no weapon in hand!');


OpenDoor

Works as a team similar to the client.

Example:

OpenDoor;