From Stealth Client

Jump to: navigation, search


PantsLayer

function PantsLayer():Byte

Returns the layer number 0x04 - Pants(Pants). Example 1:

if ObjAtLayer(PantsLayer) > 0 then 
  AddToSystemJournal('Pants ID:' + IntToStr(ObjAtLayer(PantsLayer)));

Example 2:

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