From Stealth Client

Jump to: navigation, search


CloakLayer

function CloakLayer():Byte

Returns the layer number 0x14 - Cloak(Cloak).

Example 1:

if ObjAtLayer(CloakLayer) > 0 then 
  AddToSystemJournal('Cloak ID:' + IntToStr(ObjAtLayer(CloakLayer)));

Example 2:

{If there is something on a layer, then remove}
if ObjAtLayer(CloakLayer) <> 0 then
  begin
    unequip(CloakLayer);
    wait(1000);
  end;